@speedkit/cli 4.41.1 → 4.41.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
+ ## [4.41.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.41.1...v4.41.2) (2026-10-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * wrong template escape for generate-pop-config ([c0689e1](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/c0689e1af52e16e40065a5bafbcc1735c498b79d))
7
+
1
8
  ## [4.41.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.41.0...v4.41.1) (2026-10-05)
2
9
 
3
10
 
@@ -129,7 +129,14 @@ export default class GeneratePopConfig extends SkCommand {
129
129
  const revalidationTemplate = await readFile(path.resolve(__dirname, "../templates/speedKit.Revalidated.js"), "utf-8");
130
130
  const pops = await readFile(path.resolve(__dirname, "../templates/pops.js"), "utf-8");
131
131
  popConfig = pops + popConfig;
132
- return revalidationTemplate.replace("{{config}}", popConfig);
132
+ // Inside a comment so that a formatter leaves it alone: as a bare
133
+ // `{{config}}` it was once reformatted into a block statement, and the
134
+ // module was generated without any PoPs.
135
+ const placeholder = "/* {{config}} */";
136
+ if (!revalidationTemplate.includes(placeholder)) {
137
+ this.error(`speedKit.Revalidated.js template lacks ${placeholder}`);
138
+ }
139
+ return revalidationTemplate.replace(placeholder, () => popConfig);
133
140
  }
134
141
  async deployPrewarmingConfig(app, config, deploy) {
135
142
  const moduleName = "speedKit.Revalidated";
@@ -5,11 +5,7 @@ const https = require("node:https");
5
5
 
6
6
  const agent = new https.Agent({ rejectUnauthorized: false });
7
7
 
8
- {
9
- {
10
- config;
11
- }
12
- } // eslint-disable-line
8
+ /* {{config}} */ // eslint-disable-line
13
9
 
14
10
  const ORIGIN_PATHS = Object.keys(ORIGIN_POPS).filter((origin) =>
15
11
  origin.endsWith("/"),
@@ -1761,5 +1761,5 @@
1761
1761
  ]
1762
1762
  }
1763
1763
  },
1764
- "version": "4.41.1"
1764
+ "version": "4.41.2"
1765
1765
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "4.41.1",
4
+ "version": "4.41.2",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"