@emulators/adapter-nuxt 0.13.0 → 0.13.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +10 -13
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { AdapterHandlerConfig, AdapterEmulatorEntry, AdapterEmulatorModule, GeneratedSecret } from '@emulators/core';
2
- export { GeneratedSecret, PersistenceAdapter, PreparedServiceSeed } from '@emulators/core';
3
-
4
- type EmulatorModule = AdapterEmulatorModule;
5
- type EmulatorEntry = AdapterEmulatorEntry;
6
- type EmulateHandlerConfig = AdapterHandlerConfig;
7
-
8
- interface NuxtAdapterOptions {
1
+ import { type AdapterEmulatorEntry, type AdapterEmulatorModule, type AdapterHandlerConfig, type GeneratedSecret, type PreparedServiceSeed } from "@emulators/core";
2
+ export type { PersistenceAdapter } from "@emulators/core";
3
+ export type EmulatorModule = AdapterEmulatorModule;
4
+ export type EmulatorEntry = AdapterEmulatorEntry;
5
+ export type EmulateHandlerConfig = AdapterHandlerConfig;
6
+ export type { GeneratedSecret, PreparedServiceSeed };
7
+ export interface NuxtAdapterOptions {
9
8
  param?: string;
10
9
  routePrefix?: string;
11
10
  }
@@ -15,7 +14,7 @@ interface NodeRequestLike {
15
14
  url?: string;
16
15
  headers?: Record<string, HeaderValue>;
17
16
  }
18
- interface NuxtEventLike {
17
+ export interface NuxtEventLike {
19
18
  req?: Request;
20
19
  node?: {
21
20
  req?: NodeRequestLike;
@@ -25,11 +24,9 @@ interface NuxtEventLike {
25
24
  path?: string;
26
25
  };
27
26
  }
28
- declare function createEmulateHandler(config: EmulateHandlerConfig, options?: NuxtAdapterOptions): {
27
+ export declare function createEmulateHandler(config: EmulateHandlerConfig, options?: NuxtAdapterOptions): {
29
28
  (event: NuxtEventLike): Promise<Response>;
30
29
  generatedSecrets: () => Promise<readonly GeneratedSecret[]>;
31
30
  close: () => Promise<void>;
32
31
  };
33
- declare function withEmulate<T>(nuxtConfig: T): T;
34
-
35
- export { type EmulateHandlerConfig, type EmulatorEntry, type EmulatorModule, type NuxtAdapterOptions, type NuxtEventLike, createEmulateHandler, withEmulate };
32
+ export declare function withEmulate<T>(nuxtConfig: T): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulators/adapter-nuxt",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,20 +30,20 @@
30
30
  "THIRD_PARTY_NOTICES.md"
31
31
  ],
32
32
  "dependencies": {
33
- "@emulators/core": "0.13.0"
33
+ "@emulators/core": "0.13.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8",
37
- "typescript": "^5.7",
37
+ "typescript": "^7.0.2",
38
38
  "vitest": "^4.1.0",
39
- "@emulators/github": "0.13.0"
39
+ "@emulators/github": "0.13.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsup --clean",
43
- "dev": "tsup --watch",
43
+ "dev": "tsup --watch src",
44
44
  "clean": "rm -rf dist .turbo",
45
45
  "test": "vitest run",
46
46
  "type-check": "tsc --noEmit",
47
- "lint": "eslint src"
47
+ "lint": "oxlint src"
48
48
  }
49
49
  }