@speedkit/cli 2.92.0 → 2.93.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 +15 -0
- package/README.md +1 -1
- package/dist/services/customer-config/templates/config_documentHandler.js.hbs +10 -7
- package/dist/services/integration-api/validator/customer-config-validator.d.ts +1 -0
- package/dist/services/integration-api/validator/customer-config-validator.js +8 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [2.93.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.92.1...v2.93.0) (2025-07-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **wizard:** ssr ([072fb92](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/072fb926421fa6453197bdb928d9b9571aa1a7f4))
|
|
7
|
+
* **wizard:** ssr ([2e9b753](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/2e9b7537bef33ee1a8d783ea1534432e23b1f846))
|
|
8
|
+
|
|
9
|
+
## [2.92.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.92.0...v2.92.1) (2025-07-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **configFileValidation:** check config_customer.origins for spaces ([fe5aaf1](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/fe5aaf1755e8fc7456e72244b2f7eeacbf92943c))
|
|
15
|
+
|
|
1
16
|
# [2.92.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.91.0...v2.92.0) (2025-07-22)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -138,17 +138,20 @@ const config = {
|
|
|
138
138
|
preRender: {
|
|
139
139
|
lambdaUrl: '<generate-new-lambda-function-and-paste-url-endpoint-here>',
|
|
140
140
|
elements: [
|
|
141
|
-
// this will be the main element to extract from the rendered DOM
|
|
142
|
-
{ selector: "body > #app", appendTo: ".sk-container template" },
|
|
143
141
|
// append all extracted styles to all pre-rendered elements (as they are capsuled in shadow doms)
|
|
142
|
+
// TODO check if all necessary styles are extracted by this rule
|
|
144
143
|
{
|
|
145
|
-
selector:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
selector: [
|
|
145
|
+
"head > style",
|
|
146
|
+
"head > link[rel='stylesheet'][href]",
|
|
147
|
+
"body > style",
|
|
148
|
+
"body > link[rel='stylesheet'][href]",
|
|
149
|
+
].join(","),
|
|
150
150
|
appendTo: ".sk-container template",
|
|
151
151
|
},
|
|
152
|
+
// this will be the main element to extract from the rendered DOM
|
|
153
|
+
// TODO change selector to the main element of your page
|
|
154
|
+
{ selector: "body > #app", appendTo: ".sk-container template" },
|
|
152
155
|
],
|
|
153
156
|
guards: [
|
|
154
157
|
{
|
|
@@ -25,6 +25,9 @@ class CustomerConfigValidator {
|
|
|
25
25
|
if (this.hasPathCheck(config.origins)) {
|
|
26
26
|
throw new origin_error_1.default("There was at least one origin having a path. Origin must have the following format: https://domain.tld");
|
|
27
27
|
}
|
|
28
|
+
if (this.containsWhiteSpace(config.origins)) {
|
|
29
|
+
throw new origin_error_1.default(`There was at least one origin having spaces. Origin must have the following format: "https://domain.tld" without spaces`);
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
checkIfDuplicateExists(origins) {
|
|
30
33
|
return new Set(origins).size !== origins.length;
|
|
@@ -39,5 +42,10 @@ class CustomerConfigValidator {
|
|
|
39
42
|
const withoutProtocol = origins.filter((origin) => !origin.startsWith("http"));
|
|
40
43
|
return withoutProtocol.length > 0;
|
|
41
44
|
}
|
|
45
|
+
containsWhiteSpace(origins) {
|
|
46
|
+
return origins.some((origin) => {
|
|
47
|
+
return /\s/.test(origin);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
exports.default = CustomerConfigValidator;
|
package/oclif.manifest.json
CHANGED