@emulators/adapter-nuxt 0.12.0 → 0.12.2

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
@@ -126,6 +126,6 @@ If the mount path cannot be detected from the URL, pass `routePrefix`:
126
126
  export default defineEventHandler(createEmulateHandler(config, { routePrefix: '/api/emulate' }))
127
127
  ```
128
128
 
129
- ## Custom HTTP APIs
129
+ ## Custom emulators
130
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 API guide](https://emulate.dev/docs/custom-apis).
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulators/adapter-nuxt",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
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.12.0"
33
+ "@emulators/core": "0.12.2"
32
34
  },
33
35
  "devDependencies": {
34
36
  "tsup": "^8",
35
37
  "typescript": "^5.7",
36
38
  "vitest": "^4.1.0",
37
- "@emulators/github": "0.12.0"
39
+ "@emulators/github": "0.12.2"
38
40
  },
39
41
  "scripts": {
40
42
  "build": "tsup --clean",