@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
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/2.65.1 linux-x64 node-v20.18.0
24
+ @speedkit/cli/2.65.2 linux-x64 node-v20.18.0
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -113,9 +113,19 @@ class CustomerDomainDocumentResponse {
113
113
  }
114
114
  rewriteInstallResource(text) {
115
115
  text = text.replace(onboarding_model_1.SpeedKitInstallRegex, "");
116
- return text.replace(/<\s*head\b[^>]*>/, (head) => {
117
- return `${head}\n<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
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;
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.65.1"
715
+ "version": "2.65.2"
716
716
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "2.65.1",
4
+ "version": "2.65.2",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"