@speedkit/cli 2.62.0 → 2.62.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.62.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.62.0...v2.62.1) (2024-11-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **onboarding:** set correct userAgents from orestest-project ([d3f4287](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/d3f428701b55a2dd8ceeb53bab5f9d13db3fd59a))
7
+
1
8
  # [2.62.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.61.1...v2.62.0) (2024-11-01)
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.62.0 linux-x64 node-v20.18.0
24
+ @speedkit/cli/2.62.1 linux-x64 node-v20.18.0
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -102,5 +102,7 @@ export type DevelopmentToolsMessage = {
102
102
  export declare const USER_AGENT: {
103
103
  DESKTOP: string;
104
104
  MOBILE: string;
105
+ TABLET: string;
106
+ TV: string;
105
107
  };
106
108
  export declare const SpeedKitInstallRegex: RegExp;
@@ -111,7 +111,9 @@ class OnboardingContext {
111
111
  }
112
112
  exports.OnboardingContext = OnboardingContext;
113
113
  exports.USER_AGENT = {
114
- DESKTOP: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36 (compatible; SpeedKit/1.0)",
115
- MOBILE: "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A5000 Build/NMF26X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.107 Mobile Safari/537.36 (compatible; SpeedKit/1.0)",
114
+ DESKTOP: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15 (compatible; SpeedKit/1.0)",
115
+ MOBILE: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1 (compatible; SpeedKit/1.0)",
116
+ TABLET: "Mozilla/5.0 (iPad; CPU OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1 (compatible; SpeedKit/1.0)",
117
+ TV: "Mozilla/5.0 (Linux; NetCast; U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36 SmartTV/10.0 Colt/2.0 (compatible; SpeedKit/1.0)",
116
118
  };
117
119
  exports.SpeedKitInstallRegex = /<script(?:(?!<\/script>).)*app\.baqend\.com\/v1\/speedkit\/install.js(?:(?!<\/script>).)*<\/script>/s;
@@ -39,6 +39,12 @@ class Crawler {
39
39
  if (variation.includes("MOBILE")) {
40
40
  return onboarding_model_1.USER_AGENT.MOBILE;
41
41
  }
42
+ if (variation.includes("TABLET")) {
43
+ return onboarding_model_1.USER_AGENT.TABLET;
44
+ }
45
+ if (variation.includes("TV")) {
46
+ return onboarding_model_1.USER_AGENT.TV;
47
+ }
42
48
  return onboarding_model_1.USER_AGENT.DESKTOP;
43
49
  }
44
50
  prepareOriginRequest(originUrl, variationParameter, init) {
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.62.0"
715
+ "version": "2.62.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.62.0",
4
+ "version": "2.62.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"