@scayle/storefront-nuxt 7.40.2 → 7.40.3
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.40.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Introduce `nitro` server plugin to override `x-powered-by` header default value of `Nuxt` with `SCAYLE Storefront by SCAYLE Commerce Engine - www.scayle.com`
|
|
8
|
+
|
|
3
9
|
## 7.40.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, extendViteConfig, addServerHandler, addTypeTemplate, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, extendViteConfig, addServerHandler, addTypeTemplate, addServerPlugin, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
import yn from 'yn';
|
|
3
3
|
import { rpcMethods } from '@scayle/storefront-core';
|
|
4
4
|
import { defu } from 'defu';
|
|
@@ -145,6 +145,9 @@ const module = defineNuxtModule({
|
|
|
145
145
|
nuxt.hook("prepare:types", ({ references }) => {
|
|
146
146
|
references.push({ path: template.dst });
|
|
147
147
|
});
|
|
148
|
+
addServerPlugin(
|
|
149
|
+
resolve("./runtime/server/plugins/nitroSetXPoweredByHeader")
|
|
150
|
+
);
|
|
148
151
|
nuxt.hooks.hook("nitro:config", (nitroConfig) => {
|
|
149
152
|
nitroConfig.externals = nitroConfig.externals || {};
|
|
150
153
|
nitroConfig.externals.inline = nitroConfig.externals.inline || [];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineNitroPlugin } from "#imports";
|
|
2
|
+
export default defineNitroPlugin((nitroApp) => {
|
|
3
|
+
nitroApp.hooks.hook("render:response", (response) => {
|
|
4
|
+
if (response?.headers?.["x-powered-by"]) {
|
|
5
|
+
response.headers["x-powered-by"] = "SCAYLE Storefront by SCAYLE Commerce Engine - www.scayle.com";
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.40.
|
|
4
|
+
"version": "7.40.3",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"defu": "6.1.3",
|
|
70
70
|
"h3": "1.9.0",
|
|
71
71
|
"jose": "4.15.4",
|
|
72
|
+
"nitropack": "2.8.0",
|
|
72
73
|
"ofetch": "1.3.3",
|
|
73
74
|
"radash": "11.0.0",
|
|
74
75
|
"uncrypto": "0.1.3",
|