@scayle/storefront-nuxt 8.7.1 → 8.7.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/CHANGELOG.md +8 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -7
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -44,7 +44,7 @@ export default {
|
|
|
44
44
|
}`;
|
|
45
45
|
}
|
|
46
46
|
const PACKAGE_NAME = "@scayle/storefront-nuxt";
|
|
47
|
-
const PACKAGE_VERSION = "8.7.
|
|
47
|
+
const PACKAGE_VERSION = "8.7.2";
|
|
48
48
|
const logger = createConsola({
|
|
49
49
|
fancy: true,
|
|
50
50
|
formatOptions: {
|
|
@@ -179,9 +179,9 @@ function nitroSetup(nitroConfig, config) {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
function validateRpcMethodOverrides(rpcMethodOverrides, customRpcNames, coreRpcNames) {
|
|
182
|
-
const
|
|
182
|
+
const overriddenRPCMethodNames = new Set(rpcMethodOverrides);
|
|
183
183
|
for (const rpcMethodName of customRpcNames) {
|
|
184
|
-
if (coreRpcNames.has(rpcMethodName) && !
|
|
184
|
+
if (coreRpcNames.has(rpcMethodName) && !overriddenRPCMethodNames.has(rpcMethodName)) {
|
|
185
185
|
logger.warn(`
|
|
186
186
|
Overriding RPC method '${rpcMethodName}' from '@scayle/storefront-nuxt' with a local custom implementation.
|
|
187
187
|
|
|
@@ -191,14 +191,14 @@ To silence this warning, you can add '${rpcMethodName}' to 'rpcMethodOverrides'
|
|
|
191
191
|
In the future this will become an error where overrides need to be explicitly defined as an override.
|
|
192
192
|
`);
|
|
193
193
|
} else {
|
|
194
|
-
|
|
194
|
+
overriddenRPCMethodNames.delete(rpcMethodName);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
if (
|
|
197
|
+
if (overriddenRPCMethodNames.size > 0) {
|
|
198
198
|
logger.warn(`
|
|
199
199
|
Detected RPC methods which were supposed to be overridden but are not. This indicates an incorrect configuration and should be adjusted. Check the 'rpcMethodOverrides' property.
|
|
200
200
|
|
|
201
|
-
Missing RPC Method Overrides: ${Array.from(
|
|
201
|
+
Missing RPC Method Overrides: ${Array.from(overriddenRPCMethodNames).map((name) => `'${name}'`).join(", ")}
|
|
202
202
|
`);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -278,7 +278,7 @@ const module = defineNuxtModule({
|
|
|
278
278
|
customImport.names.forEach((name) => {
|
|
279
279
|
if (rpcMethodNames.has(name)) {
|
|
280
280
|
throw new Error(
|
|
281
|
-
`Core RPC method '${name}' cannot be
|
|
281
|
+
`Core RPC method '${name}' cannot be overridden via the 'storefront:custom-rpc:extend' hook`
|
|
282
282
|
);
|
|
283
283
|
}
|
|
284
284
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.7.
|
|
4
|
+
"version": "8.7.2",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@opentelemetry/api": "^1.9.0",
|
|
74
74
|
"@scayle/h3-session": "0.6.0",
|
|
75
|
-
"@scayle/storefront-core": "8.
|
|
75
|
+
"@scayle/storefront-core": "8.4.0",
|
|
76
76
|
"@scayle/unstorage-compression-driver": "^0.2.3",
|
|
77
77
|
"@vueuse/core": "12.5.0",
|
|
78
78
|
"consola": "^3.2.3",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"schema-dts": "1.1.2"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@nuxt/eslint": "1.0.
|
|
93
|
+
"@nuxt/eslint": "1.0.1",
|
|
94
94
|
"@nuxt/kit": "3.14.1592",
|
|
95
95
|
"@nuxt/module-builder": "0.8.4",
|
|
96
96
|
"@nuxt/schema": "3.14.1592",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"eslint": "9.19.0",
|
|
103
103
|
"eslint-formatter-gitlab": "5.1.0",
|
|
104
104
|
"fishery": "2.2.3",
|
|
105
|
-
"h3": "1.
|
|
105
|
+
"h3": "1.15.0",
|
|
106
106
|
"nitropack": "2.9.7",
|
|
107
107
|
"node-mocks-http": "1.16.2",
|
|
108
108
|
"nuxi": "3.21.1",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"vue": ">=3.4.0"
|
|
123
123
|
},
|
|
124
124
|
"resolutions": {
|
|
125
|
-
"h3": "1.
|
|
125
|
+
"h3": "1.15.0",
|
|
126
126
|
"vue": "3.5.13",
|
|
127
127
|
"@nuxt/kit": "3.14.1592",
|
|
128
128
|
"@nuxt/schema": "3.14.1592"
|