Skip to content

Commit

Permalink
fix: fixed a typo in the endpoints sample (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance authored Nov 14, 2023
1 parent bdcaeb2 commit 3f80132
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion samples/basic/another-remote-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/another-remote-module",
"author": "Workleap",
"version": "0.0.0",
"description": "Another remote module to showcase @squide.",
"description": "Another remote module to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/host",
"author": "Workleap",
"version": "0.0.0",
"description": "Host application to showcase @squide.",
"description": "Host application to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/local-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/local-module",
"author": "Workleap",
"version": "0.0.0",
"description": "Local module to showcase @squide.",
"description": "Local module to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/remote-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/remote-module",
"author": "Workleap",
"version": "0.0.0",
"description": "Remote module to showcase @squide.",
"description": "Remote module to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/shared",
"author": "Workleap",
"version": "0.0.0",
"description": "Shared package to showcase @squide.",
"description": "Shared package to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@basic/shell",
"author": "Workleap",
"version": "0.0.0",
"description": "Application shell package to showcase @squide.",
"description": "Application shell package to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/endpoints/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endpoints/host",
"author": "Workleap",
"version": "0.0.0",
"description": "Host application to showcase @squide.",
"description": "Host application to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
6 changes: 2 additions & 4 deletions samples/endpoints/host/src/register.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMswPlugin, type FireflyRuntime, type ModuleRegisterFunction } from "@squide/firefly";
import type { FireflyRuntime, ModuleRegisterFunction } from "@squide/firefly";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import type { ReactNode } from "react";

Expand Down Expand Up @@ -42,13 +42,11 @@ function registerRoutes(runtime: FireflyRuntime) {

async function registerMsw(runtime: FireflyRuntime) {
if (process.env.USE_MSW) {
const mswPlugin = getMswPlugin(runtime);

// Files including an import to the "msw" package are included dynamically to prevent adding
// MSW stuff to the bundled when it's not used.
const requestHandlers = (await import("../mocks/handlers.ts")).requestHandlers;

mswPlugin.registerRequestHandlers(requestHandlers);
runtime.registerRequestHandlers(requestHandlers);
}
}

Expand Down
2 changes: 1 addition & 1 deletion samples/endpoints/local-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endpoints/local-module",
"author": "Workleap",
"version": "0.0.0",
"description": "Local module to showcase @squide.",
"description": "Local module to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/endpoints/remote-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endpoints/remote-module",
"author": "Workleap",
"version": "0.0.0",
"description": "Remote module to showcase @squide.",
"description": "Remote module to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/endpoints/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endpoints/shared",
"author": "Workleap",
"version": "0.0.0",
"description": "Shared package to showcase @squide.",
"description": "Shared package to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion samples/endpoints/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endpoints/shell",
"author": "Workleap",
"version": "0.0.0",
"description": "Application shell package to showcase @squide.",
"description": "Application shell package to showcase Squide.",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down

0 comments on commit 3f80132

Please sign in to comment.