@speedkit/cli 2.65.1 → 2.65.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.65.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.65.1...v2.65.2) (2024-11-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **speed-kit-cli:** missing opening tag in force install ([dbee840](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/dbee840057c2ebbd00d032bf482297592025a818))
|
|
7
|
+
|
|
1
8
|
## [2.65.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.65.0...v2.65.1) (2024-11-08)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -113,9 +113,19 @@ class CustomerDomainDocumentResponse {
|
|
|
113
113
|
}
|
|
114
114
|
rewriteInstallResource(text) {
|
|
115
115
|
text = text.replace(onboarding_model_1.SpeedKitInstallRegex, "");
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
const matchOpeningHead = /<\s*head\b[^>]*>/;
|
|
117
|
+
const matchClosingHead = /<\/\s*head\s*>/;
|
|
118
|
+
if (matchOpeningHead.test(text)) {
|
|
119
|
+
return text.replace(matchOpeningHead, (head) => {
|
|
120
|
+
return `${head}\n<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (matchClosingHead.test(text)) {
|
|
124
|
+
return text.replace(matchClosingHead, (head) => {
|
|
125
|
+
return `<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>${head}\n`;
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return text;
|
|
119
129
|
}
|
|
120
130
|
rewriteHtmlToLocalConfig(html) {
|
|
121
131
|
const DF_CONFIG_PATTERN = /(<script[^>]* id="speed-kit-df-config"[^>]*>)([\S\s]*?)(<\/script>)/g;
|
package/oclif.manifest.json
CHANGED