Skip to content

Commit

Permalink
Rydder
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-nom committed Sep 2, 2024
1 parent 8903755 commit 484369b
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fetchMock, { enableFetchMocks } from "jest-fetch-mock";
import { SsrResponse } from "./fetch-elements";
import { getDecoratorElements } from "./elements-service";
import { SsrResponse } from "./fetch-decorator-elements";
import { getDecoratorElements } from "./decorator-elements-service";
import { getCsrElements } from "../../common/csr-elements";
import { addDecoratorUpdateListener } from "./version-watcher";
import { addDecoratorUpdateListener } from "./decorator-version-watcher";

const validResponse = {
headAssets: '<link type="text/css" rel="stylesheet" href="main.css">',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
DecoratorEnvProps,
DecoratorFetchProps,
} from "../../common/common-types";
import { addDecoratorUpdateListener } from "./version-watcher";
import { addDecoratorUpdateListener } from "./decorator-version-watcher";
import { getDecoratorEndpointUrl } from "../../common/urls";
import { fetchSsrElements } from "./fetch-elements";
import { fetchSsrElements } from "./fetch-decorator-elements";
import { getCsrElements } from "../../common/csr-elements";

type CacheEntry = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetchMock, { enableFetchMocks } from "jest-fetch-mock";
import { addDecoratorUpdateListener } from "./version-watcher";
import { addDecoratorUpdateListener } from "./decorator-version-watcher";

describe("Version watcher", () => {
enableFetchMocks();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ssr/functions/ssr-document-injection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DecoratorFetchProps } from "../../common/common-types";
import { getDecoratorElements } from "./elements-service";
import { getDecoratorElements } from "./decorator-elements-service";

type InjectWithDocument = DecoratorFetchProps & {
document: Document;
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/functions/ssr-html.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DecoratorElements, DecoratorFetchProps } from "../../common/common-types";
import { getDecoratorElements } from "./elements-service";
import { getDecoratorElements } from "./decorator-elements-service";

export const fetchDecoratorHtml = async (
props: DecoratorFetchProps,
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/functions/ssr-injection.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetchMock, { enableFetchMocks } from "jest-fetch-mock";
import fsMock from "mock-fs";
import { SsrResponse } from "./fetch-elements";
import { SsrResponse } from "./fetch-decorator-elements";
import { JSDOM } from "jsdom";
import { injectDecoratorServerSideDocument } from "./ssr-document-injection";
import { injectDecoratorServerSide } from "./ssr-file-injection";
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/functions/ssr-react-components.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DecoratorFetchProps } from "../../common/common-types";
import htmlReactParser from "html-react-parser";
import React, { FunctionComponent } from "react";
import { getDecoratorElements } from "./elements-service";
import { getDecoratorElements } from "./decorator-elements-service";

// @ts-expect-error Property 'default' exists on type
const parse = htmlReactParser.default;
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
addDecoratorUpdateListener,
getDecoratorVersionId,
removeDecoratorUpdateListener,
} from "./functions/version-watcher";
} from "./functions/decorator-version-watcher";
import { fetchDecoratorHtml } from "./functions/ssr-html";
import { injectDecoratorServerSide } from "./functions/ssr-file-injection";

Expand Down

0 comments on commit 484369b

Please sign in to comment.