diff --git a/packages/app/examples/strict-error-handling.ts b/packages/app/examples/strict-error-handling.ts index 06b2419..fbd9b58 100644 --- a/packages/app/examples/strict-error-handling.ts +++ b/packages/app/examples/strict-error-handling.ts @@ -31,8 +31,8 @@ const apiClient = createClientEffect(clientOptions) const listPetsProgram = apiClient.GET("/pets", { params: { query: { limit: 10 } } }).pipe( - Effect.flatMap((success) => - Match.value(success).pipe( + Effect.flatMap((success) => + Match.value(success).pipe( Match.when({ status: 200 }, ({ body }) => Console.log(`Got ${body.length} pets`)), Match.exhaustive ) diff --git a/packages/app/vite.config.ts b/packages/app/vite.config.ts index 51bd760..870cc27 100644 --- a/packages/app/vite.config.ts +++ b/packages/app/vite.config.ts @@ -19,8 +19,7 @@ const pkgPath = path.resolve(__dirname, "package.json") const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8")) as Pkg const dependencies = [...Object.keys(pkg.dependencies ?? {}), ...Object.keys(pkg.peerDependencies ?? {})] -const isExternal = (id: string): boolean => - dependencies.some((dep) => id === dep || id.startsWith(`${dep}/`)) +const isExternal = (id: string): boolean => dependencies.some((dep) => id === dep || id.startsWith(`${dep}/`)) export default defineConfig({ plugins: [tsconfigPaths()],