@speedkit/cli 2.92.0 → 2.92.1

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.92.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.92.0...v2.92.1) (2025-07-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **configFileValidation:** check config_customer.origins for spaces ([fe5aaf1](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/fe5aaf1755e8fc7456e72244b2f7eeacbf92943c))
7
+
1
8
  # [2.92.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.91.0...v2.92.0) (2025-07-22)
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.92.0 linux-x64 node-v20.19.4
24
+ @speedkit/cli/2.92.1 linux-x64 node-v20.19.4
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -6,4 +6,5 @@ export default class CustomerConfigValidator {
6
6
  private checkIfDuplicateExists;
7
7
  private hasPathCheck;
8
8
  private hasProtocol;
9
+ private containsWhiteSpace;
9
10
  }
@@ -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;
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.92.0"
715
+ "version": "2.92.1"
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.92.0",
4
+ "version": "2.92.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"