@vue-storefront/nuxt 9.0.0 → 9.1.0-next.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/dist/module.json +1 -1
- package/dist/module.mjs +14 -7
- package/package.json +8 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,19 +2,15 @@ import { defineNuxtModule, createResolver, installModule, addTypeTemplate, addIm
|
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
import { genInlineTypeImport } from 'knitwork';
|
|
4
4
|
|
|
5
|
+
const RUNTIME_CONFIG = {
|
|
6
|
+
public: {}
|
|
7
|
+
};
|
|
5
8
|
const module = defineNuxtModule({
|
|
6
9
|
defaults: {
|
|
7
10
|
logger: {
|
|
8
11
|
includeStackTrace: false,
|
|
9
12
|
verbosity: "debug"
|
|
10
13
|
},
|
|
11
|
-
/**
|
|
12
|
-
* In the `middleware` object, both `apiUrl` and `ssrApiUrl` keys have to be
|
|
13
|
-
* present to allow Nuxt replacing them with the actual values from the
|
|
14
|
-
* .env file at runtime.
|
|
15
|
-
*
|
|
16
|
-
* https://nuxt.com/docs/guide/going-further/runtime-config
|
|
17
|
-
*/
|
|
18
14
|
middleware: {
|
|
19
15
|
apiUrl: "",
|
|
20
16
|
cdnCacheBustingId: "no-cache-busting-id-set",
|
|
@@ -41,6 +37,16 @@ const module = defineNuxtModule({
|
|
|
41
37
|
nuxt.options.runtimeConfig.public?.alokai,
|
|
42
38
|
options
|
|
43
39
|
);
|
|
40
|
+
Object.assign(
|
|
41
|
+
nuxt.options.appConfig,
|
|
42
|
+
defu(nuxt.options.appConfig, {
|
|
43
|
+
alokaiVersion: process.env.NUXT_PUBLIC_ALOKAI_VERSION
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
Object.assign(
|
|
47
|
+
nuxt.options.runtimeConfig,
|
|
48
|
+
defu(nuxt.options.runtimeConfig, RUNTIME_CONFIG)
|
|
49
|
+
);
|
|
44
50
|
nuxt.options.app.head.meta = [
|
|
45
51
|
...nuxt.options.app.head.meta ?? [],
|
|
46
52
|
{
|
|
@@ -119,6 +125,7 @@ export type SdkConfig = ${genInlineTypeImport(
|
|
|
119
125
|
src: localResolver.resolve("./runtime/plugin.template"),
|
|
120
126
|
write: true
|
|
121
127
|
});
|
|
128
|
+
await installModule("@alokai/instrumentation-nuxt3-module");
|
|
122
129
|
addImportsSources([
|
|
123
130
|
{
|
|
124
131
|
from: buildDirectoryResolver.resolve("useSdk.ts"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-storefront/nuxt",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.1.0-next.1",
|
|
4
4
|
"description": "Alokai dedicated features for Nuxt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"version": "cp CHANGELOG.md ../../docs/enterprise/content/storefront/6.change-log/nuxt.md"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@alokai/instrumentation-nuxt3-module": "1.0.0-next.15",
|
|
26
27
|
"@nuxt/kit": "^3.7.4",
|
|
27
28
|
"@nuxt/schema": "^3.7.4",
|
|
28
29
|
"@pinia/nuxt": "^0.5.1",
|
|
@@ -31,14 +32,16 @@
|
|
|
31
32
|
"pinia": "^2.1.7"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@alokai/connect": "^1.0.0",
|
|
35
|
-
"@types/node": "^22.0.0",
|
|
35
|
+
"@alokai/connect": "^1.1.0-next.0",
|
|
36
36
|
"@nuxt/devtools": "1.7.0",
|
|
37
37
|
"@nuxt/module-builder": "1.0.1",
|
|
38
|
-
"
|
|
38
|
+
"@types/node": "^22.0.0",
|
|
39
|
+
"eslint": "9.23.0",
|
|
40
|
+
"nuxt": "3.13.2",
|
|
41
|
+
"prettier": "3.3.2"
|
|
39
42
|
},
|
|
40
43
|
"peerDependencies": {
|
|
41
|
-
"@alokai/connect": "^1.0.0"
|
|
44
|
+
"@alokai/connect": "^1.1.0-next.0"
|
|
42
45
|
},
|
|
43
46
|
"publishConfig": {
|
|
44
47
|
"access": "public"
|