@speedkit/cli 4.9.0 → 4.11.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [4.11.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.10.0...v4.11.0) (2026-06-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** add accelerated checkout from shopify to ignore list to fix change detection ([0c05910](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/0c0591050fce08c7268c48a2ce43c7992bf99914))
|
|
7
|
+
|
|
8
|
+
# [4.10.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.9.0...v4.10.0) (2026-06-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **onboarding:** use nonce for install if present ([eb9de23](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/eb9de232b2b867e43f5d77ad6af3467b40eb51a7))
|
|
14
|
+
|
|
1
15
|
# [4.9.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.8.0...v4.9.0) (2026-06-13)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -102,7 +102,11 @@ const config = {
|
|
|
102
102
|
{{#if isPlentymarkets}}
|
|
103
103
|
stripComments: false, // Plentymarkets specific
|
|
104
104
|
{{/if}}
|
|
105
|
+
{{#if isShopify}}
|
|
106
|
+
ignoreAssets: ["accelerated-checkout-backwards-compat.css"],
|
|
107
|
+
{{else}}
|
|
105
108
|
ignoreAssets: [],
|
|
109
|
+
{{/if}}
|
|
106
110
|
{{#if activateCfRocketLoaderPlugin}}
|
|
107
111
|
handleRocketLoader: true,
|
|
108
112
|
{{/if}}
|
|
@@ -144,14 +144,15 @@ export class CustomerDomainDocumentResponse {
|
|
|
144
144
|
text = text.replace(SpeedKitInstallRegex, "");
|
|
145
145
|
const matchOpeningHead = /<\s*head\b[^>]*>/;
|
|
146
146
|
const matchClosingHead = /<\/\s*head\s*>/;
|
|
147
|
+
const nonceMatch = text.match(/<script\s(?:[^>]*?\s)?nonce\s*=\s*["']?([^\s"'>]*)/i);
|
|
147
148
|
if (matchOpeningHead.test(text)) {
|
|
148
149
|
return text.replace(matchOpeningHead, (head) => {
|
|
149
|
-
return `${head}\n<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
|
|
150
|
+
return `${head}\n<script ${nonceMatch ? 'nonce="' + nonceMatch[1] + '"' : ""} src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
153
|
if (matchClosingHead.test(text)) {
|
|
153
154
|
return text.replace(matchClosingHead, (head) => {
|
|
154
|
-
return `<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>${head}\n`;
|
|
155
|
+
return `<script ${nonceMatch ? 'nonce="' + nonceMatch[1] + '"' : ""} src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>${head}\n`;
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
return text;
|
package/oclif.manifest.json
CHANGED