@vue-storefront/nuxt 9.0.0-rc.5 → 9.0.0
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/dist/module.json +3 -3
- package/dist/runtime/defineSdkConfig.template +0 -2
- package/dist/runtime/serverMiddleware.d.ts +1 -1
- package/dist/runtime/serverMiddleware.js +1 -0
- package/dist/types.d.mts +4 -38
- package/package.json +12 -14
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -43
- package/dist/types.d.ts +0 -41
package/dist/module.json
CHANGED
|
@@ -58,7 +58,6 @@ const moduleConfig: AlokaiModuleOptions = <%= options.moduleConfig %>;
|
|
|
58
58
|
*
|
|
59
59
|
* @example Using a record of modules:
|
|
60
60
|
* ```ts
|
|
61
|
-
* import { defineSdkModule } from '@vue-storefront/nuxt';
|
|
62
61
|
* import type { UnifiedEndpoints } from 'storefront-middleware/types';
|
|
63
62
|
* import { getConfigSwitcherHeader } from './utils';
|
|
64
63
|
*
|
|
@@ -136,7 +135,6 @@ type DefineSdkModule = (
|
|
|
136
135
|
*
|
|
137
136
|
* @example
|
|
138
137
|
* ```ts
|
|
139
|
-
* import { defineSdkModule } from '@vue-storefront/nuxt';
|
|
140
138
|
* import type { UnifiedEndpoints } from 'storefront-middleware/types';
|
|
141
139
|
* import { getConfigSwitcherHeader } from './utils';
|
|
142
140
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, void>;
|
|
2
2
|
export default _default;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,41 +1,7 @@
|
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
1
2
|
|
|
2
|
-
import type {
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
logger: {
|
|
6
|
-
/** @default false */
|
|
7
|
-
includeStackTrace: boolean,
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
verbosity: string,
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
middleware: {
|
|
14
|
-
/** @default "" */
|
|
15
|
-
apiUrl: string,
|
|
16
|
-
|
|
17
|
-
/** @default "no-cache-busting-id-set" */
|
|
18
|
-
cdnCacheBustingId: string,
|
|
19
|
-
|
|
20
|
-
/** @default "" */
|
|
21
|
-
ssrApiUrl: string,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
multistore: {
|
|
25
|
-
/** @default false */
|
|
26
|
-
enabled: boolean,
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare module '@nuxt/schema' {
|
|
31
|
-
interface NuxtConfig { ['alokai']?: Partial<ModuleOptions> }
|
|
32
|
-
interface NuxtOptions { ['alokai']?: ModuleOptions }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare module 'nuxt/schema' {
|
|
36
|
-
interface NuxtConfig { ['alokai']?: Partial<ModuleOptions> }
|
|
37
|
-
interface NuxtOptions { ['alokai']?: ModuleOptions }
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export type { default } from './module.js'
|
|
7
|
+
export { default } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-storefront/nuxt",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Alokai dedicated features for Nuxt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"types": "./dist/types.d.
|
|
10
|
-
"import": "./dist/module.mjs"
|
|
11
|
-
"require": "./dist/module.cjs"
|
|
9
|
+
"types": "./dist/types.d.mts",
|
|
10
|
+
"import": "./dist/module.mjs"
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
|
-
"
|
|
15
|
-
"types": "./dist/types.d.ts",
|
|
13
|
+
"types": "./dist/types.d.mts",
|
|
16
14
|
"files": [
|
|
17
15
|
"dist"
|
|
18
16
|
],
|
|
19
17
|
"scripts": {
|
|
20
|
-
"build": "nuxt-module-build build",
|
|
21
|
-
"lint": "eslint",
|
|
22
|
-
"lint:fix": "eslint --fix",
|
|
18
|
+
"build": "yarn prepare && nuxt-module-build build",
|
|
19
|
+
"lint": "yarn prepare && eslint",
|
|
20
|
+
"lint:fix": "yarn prepare && eslint --fix",
|
|
23
21
|
"format": "prettier --write .",
|
|
24
22
|
"prepare": "nuxi prepare",
|
|
25
23
|
"version": "cp CHANGELOG.md ../../docs/enterprise/content/storefront/6.change-log/nuxt.md"
|
|
@@ -33,14 +31,14 @@
|
|
|
33
31
|
"pinia": "^2.1.7"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|
|
36
|
-
"@alokai/connect": "^1.0.0
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
"@nuxt/devtools": "1.
|
|
39
|
-
"@nuxt/module-builder": "0.
|
|
34
|
+
"@alokai/connect": "^1.0.0",
|
|
35
|
+
"@types/node": "^22.0.0",
|
|
36
|
+
"@nuxt/devtools": "1.7.0",
|
|
37
|
+
"@nuxt/module-builder": "1.0.1",
|
|
40
38
|
"nuxt": "3.12.2"
|
|
41
39
|
},
|
|
42
40
|
"peerDependencies": {
|
|
43
|
-
"@alokai/connect": "^1.0.0
|
|
41
|
+
"@alokai/connect": "^1.0.0"
|
|
44
42
|
},
|
|
45
43
|
"publishConfig": {
|
|
46
44
|
"access": "public"
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
|
|
3
|
-
interface MiddlewareConfig {
|
|
4
|
-
/**
|
|
5
|
-
* The URL of the middleware.
|
|
6
|
-
* @example "http://localhost:4000"
|
|
7
|
-
*/
|
|
8
|
-
apiUrl: string;
|
|
9
|
-
/**
|
|
10
|
-
* This is identifier used to invalidate the cache on CDN when the assets change.
|
|
11
|
-
* Usually it's a commit hash.
|
|
12
|
-
* @example "2c106d9619c71c3082c9b59b1d72817363c8ecb9"
|
|
13
|
-
* @default "no-cache-busting-id-set"
|
|
14
|
-
*/
|
|
15
|
-
cdnCacheBustingId?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The URL of the middleware for server-side rendering.
|
|
18
|
-
* @example "http://localhost:4000"
|
|
19
|
-
*/
|
|
20
|
-
ssrApiUrl: string;
|
|
21
|
-
}
|
|
22
|
-
interface MultistoreConfig {
|
|
23
|
-
/**
|
|
24
|
-
* Whether the multistore is enabled or not.
|
|
25
|
-
* @example false
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
enabled: boolean;
|
|
29
|
-
}
|
|
30
|
-
type LogVerbosity = "alert" | "critical" | "debug" | "emergency" | "error" | "info" | "notice" | "warning";
|
|
31
|
-
type LoggerOptions = Partial<{
|
|
32
|
-
includeStackTrace: boolean;
|
|
33
|
-
verbosity: LogVerbosity;
|
|
34
|
-
}>;
|
|
35
|
-
interface AlokaiModuleOptions {
|
|
36
|
-
logger?: LoggerOptions;
|
|
37
|
-
middleware: MiddlewareConfig;
|
|
38
|
-
multistore?: MultistoreConfig;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare const _default: _nuxt_schema.NuxtModule<AlokaiModuleOptions, AlokaiModuleOptions, false>;
|
|
42
|
-
|
|
43
|
-
export { _default as default };
|
package/dist/types.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { } from './module'
|
|
3
|
-
|
|
4
|
-
export interface ModuleOptions {
|
|
5
|
-
logger: {
|
|
6
|
-
/** @default false */
|
|
7
|
-
includeStackTrace: boolean,
|
|
8
|
-
|
|
9
|
-
/** @default "debug" */
|
|
10
|
-
verbosity: string,
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
middleware: {
|
|
14
|
-
/** @default "" */
|
|
15
|
-
apiUrl: string,
|
|
16
|
-
|
|
17
|
-
/** @default "no-cache-busting-id-set" */
|
|
18
|
-
cdnCacheBustingId: string,
|
|
19
|
-
|
|
20
|
-
/** @default "" */
|
|
21
|
-
ssrApiUrl: string,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
multistore: {
|
|
25
|
-
/** @default false */
|
|
26
|
-
enabled: boolean,
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare module '@nuxt/schema' {
|
|
31
|
-
interface NuxtConfig { ['alokai']?: Partial<ModuleOptions> }
|
|
32
|
-
interface NuxtOptions { ['alokai']?: ModuleOptions }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare module 'nuxt/schema' {
|
|
36
|
-
interface NuxtConfig { ['alokai']?: Partial<ModuleOptions> }
|
|
37
|
-
interface NuxtOptions { ['alokai']?: ModuleOptions }
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export type { default } from './module'
|