@emulators/adapter-nuxt 0.11.2 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -125,3 +125,7 @@ If the mount path cannot be detected from the URL, pass `routePrefix`:
125
125
  ```typescript
126
126
  export default defineEventHandler(createEmulateHandler(config, { routePrefix: '/api/emulate' }))
127
127
  ```
128
+
129
+ ## Custom emulators
130
+
131
+ Pass a definition created with `defineEmulator` from `emulate` to `services[name].emulator` in framework adapters. The same definition runs through the CLI and `createEmulator({ service: definition, listen: false })` in tests. Custom entries accept an optional inspector and persistence adapter. Root-relative redirects stay under the service mount, while custom HTML bodies pass through unchanged. Keep state inside the definition's state factory, and await the handler's `close()` in tests. See the [custom emulator guide](https://emulate.dev/docs/custom-emulators).
@@ -0,0 +1,39 @@
1
+ # Third-party notices
2
+
3
+ emulate is licensed under the Apache License, Version 2.0. The following notice
4
+ recognizes Hono's contribution to the internal HTTP layer and accompanies
5
+ distributions of emulate and its packages.
6
+
7
+ ## Hono
8
+
9
+ The internal HTTP layer in `packages/@emulators/core/src/http.ts` builds on
10
+ [Hono](https://github.com/honojs/hono)'s API and design. We thank Yusuke Wada and
11
+ the Hono contributors for their work. Hono's copyright and MIT license notice
12
+ are reproduced below.
13
+
14
+ Source: https://github.com/honojs/hono
15
+ License: https://github.com/honojs/hono/blob/v4.12.12/LICENSE
16
+
17
+ ```text
18
+ MIT License
19
+
20
+ Copyright (c) 2021 - present, Yusuke Wada and Hono contributors
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
+ SOFTWARE.
39
+ ```
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ interface NuxtEventLike {
28
28
  declare function createEmulateHandler(config: EmulateHandlerConfig, options?: NuxtAdapterOptions): {
29
29
  (event: NuxtEventLike): Promise<Response>;
30
30
  generatedSecrets: () => Promise<readonly GeneratedSecret[]>;
31
+ close: () => Promise<void>;
31
32
  };
32
33
  declare function withEmulate<T>(nuxtConfig: T): T;
33
34
 
package/dist/index.js CHANGED
@@ -71,6 +71,7 @@ function createEmulateHandler(config, options = {}) {
71
71
  return runtime.handle(request, path, mountPath);
72
72
  };
73
73
  handler.generatedSecrets = runtime.generatedSecrets;
74
+ handler.close = runtime.close;
74
75
  return handler;
75
76
  }
76
77
  function copyCoreFonts(nitro) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { cpSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport {\n createAdapterRuntime,\n debug,\n type AdapterEmulatorEntry,\n type AdapterEmulatorModule,\n type AdapterHandlerConfig,\n type GeneratedSecret,\n type PreparedServiceSeed,\n} from \"@emulators/core\";\nexport type { PersistenceAdapter } from \"@emulators/core\";\nexport type EmulatorModule = AdapterEmulatorModule;\nexport type EmulatorEntry = AdapterEmulatorEntry;\nexport type EmulateHandlerConfig = AdapterHandlerConfig;\nexport type { GeneratedSecret, PreparedServiceSeed };\nexport interface NuxtAdapterOptions {\n param?: string;\n routePrefix?: string;\n}\ntype HeaderValue = string | string[] | number | undefined;\ninterface NodeRequestLike {\n method?: string;\n url?: string;\n headers?: Record<string, HeaderValue>;\n}\nexport interface NuxtEventLike {\n req?: Request;\n node?: { req?: NodeRequestLike };\n context?: { params?: Record<string, unknown>; path?: string };\n}\nfunction normalizePrefix(prefix: string): string {\n return (prefix.startsWith(\"/\") ? prefix : `/${prefix}`).replace(/\\/+$/, \"\") || \"/\";\n}\nfunction joinPath(base: string, segment: string): string {\n return base === \"/\" ? `/${segment}` : `${base}/${segment}`;\n}\nfunction splitPath(path: string): string[] {\n return path.split(\"/\").filter(Boolean);\n}\nfunction getPathSegments(event: NuxtEventLike, param: string, routePrefix?: string): string[] {\n const params = event.context?.params ?? {};\n const value = params[param] ?? params._ ?? params.path;\n if (Array.isArray(value)) return value.flatMap((part) => splitPath(String(part)));\n if (typeof value === \"string\" && value) return splitPath(value);\n if (routePrefix && event.context?.path) {\n const path = event.context.path;\n return splitPath(path.startsWith(routePrefix) ? path.slice(routePrefix.length) : path);\n }\n return [];\n}\nfunction firstHeader(value: HeaderValue): string | undefined {\n const raw = Array.isArray(value) ? value[0] : value;\n return raw === undefined ? undefined : String(raw).split(\",\")[0]?.trim();\n}\nfunction requestFromEvent(event: NuxtEventLike): Request {\n if (\n event.req &&\n typeof event.req.url === \"string\" &&\n typeof event.req.method === \"string\" &&\n typeof event.req.headers?.get === \"function\"\n ) {\n return event.req;\n }\n const nodeRequest = event.node?.req;\n if (!nodeRequest) throw new Error(\"Nuxt event must provide `req` or `node.req`\");\n const sourceHeaders = nodeRequest.headers ?? {};\n const protocol = firstHeader(sourceHeaders[\"x-forwarded-proto\"]) ?? \"http\";\n const host = firstHeader(sourceHeaders[\"x-forwarded-host\"]) ?? firstHeader(sourceHeaders.host) ?? \"localhost\";\n const headers = new Headers();\n for (const [name, value] of Object.entries(sourceHeaders)) {\n if (Array.isArray(value)) value.forEach((item) => headers.append(name, item));\n else if (value !== undefined) headers.set(name, String(value));\n }\n const method = nodeRequest.method ?? \"GET\";\n const init: RequestInit & { duplex?: string } = { method, headers };\n if (method !== \"GET\" && method !== \"HEAD\") {\n init.body = nodeRequest as unknown as RequestInit[\"body\"];\n init.duplex = \"half\";\n }\n return new Request(new URL(nodeRequest.url ?? \"/\", `${protocol}://${host}`), init);\n}\nfunction detectPrefix(url: string, pathSegments: string[]): string {\n const pathname = new URL(url).pathname;\n const index = pathname.lastIndexOf(\"/\" + pathSegments.join(\"/\"));\n if (index >= 0) return pathname.slice(0, index) || \"/\";\n throw new Error(`Could not detect mount path from URL: ${url}`);\n}\nexport function createEmulateHandler(config: EmulateHandlerConfig, options: NuxtAdapterOptions = {}) {\n const param = options.param ?? \"path\";\n const configuredMountPath = options.routePrefix ? normalizePrefix(options.routePrefix) : null;\n const runtime = createAdapterRuntime(config, joinPath);\n let mountPath = configuredMountPath;\n const handler = async (event: NuxtEventLike): Promise<Response> => {\n const request = requestFromEvent(event);\n const path = getPathSegments(event, param, configuredMountPath ?? undefined);\n if (path.length === 0) return new Response(\"Not found\", { status: 404 });\n mountPath ??= detectPrefix(request.url, path);\n return runtime.handle(request, path, mountPath);\n };\n handler.generatedSecrets = runtime.generatedSecrets;\n return handler;\n}\ninterface NitroInstanceLike {\n options?: { output?: { serverDir?: string } };\n}\nfunction copyCoreFonts(nitro: NitroInstanceLike): void {\n const serverDir = nitro.options?.output?.serverDir;\n if (!serverDir) return;\n try {\n const corePackage = createRequire(import.meta.url).resolve(\"@emulators/core/package.json\");\n cpSync(join(dirname(corePackage), \"dist\", \"fonts\"), join(serverDir, \"fonts\"), { recursive: true });\n } catch (error) {\n debug(\"nuxt\", \"font copy failed: %o\", error);\n }\n}\nexport function withEmulate<T>(nuxtConfig: T): T {\n const config = nuxtConfig as Record<string, unknown>;\n const nitro = { ...((config.nitro as Record<string, unknown> | undefined) ?? {}) };\n const hooks = (nitro.hooks as Record<string, unknown> | undefined) ?? {};\n const previous = hooks.compiled as ((nitro: NitroInstanceLike) => unknown) | undefined;\n return {\n ...config,\n nitro: {\n ...nitro,\n hooks: {\n ...hooks,\n async compiled(instance: NitroInstanceLike) {\n if (previous) await previous(instance);\n copyCoreFonts(instance);\n },\n },\n },\n } as T;\n}\n"],"mappings":";AAAA,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,SAAS,YAAY;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,OAMK;AAqBP,SAAS,gBAAgB,QAAwB;AAC/C,UAAQ,OAAO,WAAW,GAAG,IAAI,SAAS,IAAI,MAAM,IAAI,QAAQ,QAAQ,EAAE,KAAK;AACjF;AACA,SAAS,SAAS,MAAc,SAAyB;AACvD,SAAO,SAAS,MAAM,IAAI,OAAO,KAAK,GAAG,IAAI,IAAI,OAAO;AAC1D;AACA,SAAS,UAAU,MAAwB;AACzC,SAAO,KAAK,MAAM,GAAG,EAAE,OAAO,OAAO;AACvC;AACA,SAAS,gBAAgB,OAAsB,OAAe,aAAgC;AAC5F,QAAM,SAAS,MAAM,SAAS,UAAU,CAAC;AACzC,QAAM,QAAQ,OAAO,KAAK,KAAK,OAAO,KAAK,OAAO;AAClD,MAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,QAAQ,CAAC,SAAS,UAAU,OAAO,IAAI,CAAC,CAAC;AAChF,MAAI,OAAO,UAAU,YAAY,MAAO,QAAO,UAAU,KAAK;AAC9D,MAAI,eAAe,MAAM,SAAS,MAAM;AACtC,UAAM,OAAO,MAAM,QAAQ;AAC3B,WAAO,UAAU,KAAK,WAAW,WAAW,IAAI,KAAK,MAAM,YAAY,MAAM,IAAI,IAAI;AAAA,EACvF;AACA,SAAO,CAAC;AACV;AACA,SAAS,YAAY,OAAwC;AAC3D,QAAM,MAAM,MAAM,QAAQ,KAAK,IAAI,MAAM,CAAC,IAAI;AAC9C,SAAO,QAAQ,SAAY,SAAY,OAAO,GAA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B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { cpSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport {\n createAdapterRuntime,\n debug,\n type AdapterEmulatorEntry,\n type AdapterEmulatorModule,\n type AdapterHandlerConfig,\n type GeneratedSecret,\n type PreparedServiceSeed,\n} from \"@emulators/core\";\nexport type { PersistenceAdapter } from \"@emulators/core\";\nexport type EmulatorModule = AdapterEmulatorModule;\nexport type EmulatorEntry = AdapterEmulatorEntry;\nexport type EmulateHandlerConfig = AdapterHandlerConfig;\nexport type { GeneratedSecret, PreparedServiceSeed };\nexport interface NuxtAdapterOptions {\n param?: string;\n routePrefix?: string;\n}\ntype HeaderValue = string | string[] | number | undefined;\ninterface NodeRequestLike {\n method?: string;\n url?: string;\n headers?: Record<string, HeaderValue>;\n}\nexport interface NuxtEventLike {\n req?: Request;\n node?: { req?: NodeRequestLike };\n context?: { params?: Record<string, unknown>; path?: string };\n}\nfunction normalizePrefix(prefix: string): string {\n return (prefix.startsWith(\"/\") ? prefix : `/${prefix}`).replace(/\\/+$/, \"\") || \"/\";\n}\nfunction joinPath(base: string, segment: string): string {\n return base === \"/\" ? `/${segment}` : `${base}/${segment}`;\n}\nfunction splitPath(path: string): string[] {\n return path.split(\"/\").filter(Boolean);\n}\nfunction getPathSegments(event: NuxtEventLike, param: string, routePrefix?: string): string[] {\n const params = event.context?.params ?? {};\n const value = params[param] ?? params._ ?? params.path;\n if (Array.isArray(value)) return value.flatMap((part) => splitPath(String(part)));\n if (typeof value === \"string\" && value) return splitPath(value);\n if (routePrefix && event.context?.path) {\n const path = event.context.path;\n return splitPath(path.startsWith(routePrefix) ? path.slice(routePrefix.length) : path);\n }\n return [];\n}\nfunction firstHeader(value: HeaderValue): string | undefined {\n const raw = Array.isArray(value) ? value[0] : value;\n return raw === undefined ? undefined : String(raw).split(\",\")[0]?.trim();\n}\nfunction requestFromEvent(event: NuxtEventLike): Request {\n if (\n event.req &&\n typeof event.req.url === \"string\" &&\n typeof event.req.method === \"string\" &&\n typeof event.req.headers?.get === \"function\"\n ) {\n return event.req;\n }\n const nodeRequest = event.node?.req;\n if (!nodeRequest) throw new Error(\"Nuxt event must provide `req` or `node.req`\");\n const sourceHeaders = nodeRequest.headers ?? {};\n const protocol = firstHeader(sourceHeaders[\"x-forwarded-proto\"]) ?? \"http\";\n const host = firstHeader(sourceHeaders[\"x-forwarded-host\"]) ?? firstHeader(sourceHeaders.host) ?? \"localhost\";\n const headers = new Headers();\n for (const [name, value] of Object.entries(sourceHeaders)) {\n if (Array.isArray(value)) value.forEach((item) => headers.append(name, item));\n else if (value !== undefined) headers.set(name, String(value));\n }\n const method = nodeRequest.method ?? \"GET\";\n const init: RequestInit & { duplex?: string } = { method, headers };\n if (method !== \"GET\" && method !== \"HEAD\") {\n init.body = nodeRequest as unknown as RequestInit[\"body\"];\n init.duplex = \"half\";\n }\n return new Request(new URL(nodeRequest.url ?? \"/\", `${protocol}://${host}`), init);\n}\nfunction detectPrefix(url: string, pathSegments: string[]): string {\n const pathname = new URL(url).pathname;\n const index = pathname.lastIndexOf(\"/\" + pathSegments.join(\"/\"));\n if (index >= 0) return pathname.slice(0, index) || \"/\";\n throw new Error(`Could not detect mount path from URL: ${url}`);\n}\nexport function createEmulateHandler(config: EmulateHandlerConfig, options: NuxtAdapterOptions = {}) {\n const param = options.param ?? \"path\";\n const configuredMountPath = options.routePrefix ? normalizePrefix(options.routePrefix) : null;\n const runtime = createAdapterRuntime(config, joinPath);\n let mountPath = configuredMountPath;\n const handler = async (event: NuxtEventLike): Promise<Response> => {\n const request = requestFromEvent(event);\n const path = getPathSegments(event, param, configuredMountPath ?? undefined);\n if (path.length === 0) return new Response(\"Not found\", { status: 404 });\n mountPath ??= detectPrefix(request.url, path);\n return runtime.handle(request, path, mountPath);\n };\n handler.generatedSecrets = runtime.generatedSecrets;\n handler.close = runtime.close;\n return handler;\n}\ninterface NitroInstanceLike {\n options?: { output?: { serverDir?: string } };\n}\nfunction copyCoreFonts(nitro: NitroInstanceLike): void {\n const serverDir = nitro.options?.output?.serverDir;\n if (!serverDir) return;\n try {\n const corePackage = createRequire(import.meta.url).resolve(\"@emulators/core/package.json\");\n cpSync(join(dirname(corePackage), \"dist\", \"fonts\"), join(serverDir, \"fonts\"), { recursive: true });\n } catch (error) {\n debug(\"nuxt\", \"font copy failed: %o\", error);\n }\n}\nexport function withEmulate<T>(nuxtConfig: T): T {\n const config = nuxtConfig as Record<string, unknown>;\n const nitro = { ...((config.nitro as Record<string, unknown> | undefined) ?? {}) };\n const hooks = (nitro.hooks as Record<string, unknown> | undefined) ?? {};\n const previous = hooks.compiled as ((nitro: NitroInstanceLike) => unknown) | undefined;\n return {\n ...config,\n nitro: {\n ...nitro,\n hooks: {\n ...hooks,\n async compiled(instance: NitroInstanceLike) {\n if (previous) await previous(instance);\n copyCoreFonts(instance);\n },\n },\n },\n } as T;\n}\n"],"mappings":";AAAA,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,SAAS,YAAY;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,OAMK;AAqBP,SAAS,gBAAgB,QAAwB;AAC/C,UAAQ,OAAO,WAAW,GAAG,IAAI,SAAS,IAAI,MAAM,IAAI,QAAQ,QAAQ,EAAE,KAAK;AACjF;AACA,SAAS,SAAS,MAAc,SAAyB;AACvD,SAAO,SAAS,MAAM,IAAI,OAAO,KAAK,GAAG,IAAI,IAAI,OAAO;AAC1D;AACA,SAAS,UAAU,MAAwB;AACzC,SAAO,KAAK,MAAM,GAAG,EAAE,OAAO,OAAO;AACvC;AACA,SAAS,gBAAgB,OAAsB,OAAe,aAAgC;AAC5F,QAAM,SAAS,MAAM,SAAS,UAAU,CAAC;AACzC,QAAM,QAAQ,OAAO,KAAK,KAAK,OAAO,KAAK,OAAO;AAClD,MAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM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,KAAK,CAAC;AAAA,EACnG,SAAS,OAAO;AACd,UAAM,QAAQ,wBAAwB,KAAK;AAAA,EAC7C;AACF;AACO,SAAS,YAAe,YAAkB;AAC/C,QAAM,SAAS;AACf,QAAM,QAAQ,EAAE,GAAK,OAAO,SAAiD,CAAC,EAAG;AACjF,QAAM,QAAS,MAAM,SAAiD,CAAC;AACvE,QAAM,WAAW,MAAM;AACvB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO;AAAA,MACL,GAAG;AAAA,MACH,OAAO;AAAA,QACL,GAAG;AAAA,QACH,MAAM,SAAS,UAA6B;AAC1C,cAAI,SAAU,OAAM,SAAS,QAAQ;AACrC,wBAAc,QAAQ;AAAA,QACxB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulators/adapter-nuxt",
3
- "version": "0.11.2",
3
+ "version": "0.12.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,16 +25,18 @@
25
25
  "access": "public"
26
26
  },
27
27
  "files": [
28
- "dist"
28
+ "dist",
29
+ "LICENSE",
30
+ "THIRD_PARTY_NOTICES.md"
29
31
  ],
30
32
  "dependencies": {
31
- "@emulators/core": "0.11.2"
33
+ "@emulators/core": "0.12.1"
32
34
  },
33
35
  "devDependencies": {
34
36
  "tsup": "^8",
35
37
  "typescript": "^5.7",
36
38
  "vitest": "^4.1.0",
37
- "@emulators/github": "0.11.2"
39
+ "@emulators/github": "0.12.1"
38
40
  },
39
41
  "scripts": {
40
42
  "build": "tsup --clean",