@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 +7 -0
- package/README.md +1 -1
- package/dist/services/onboarding/onboarding-model.d.ts +2 -0
- package/dist/services/onboarding/onboarding-model.js +4 -2
- package/dist/services/onboarding/virtual-orestes-app/crawler.js +6 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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
|
@@ -111,7 +111,9 @@ class OnboardingContext {
|
|
|
111
111
|
}
|
|
112
112
|
exports.OnboardingContext = OnboardingContext;
|
|
113
113
|
exports.USER_AGENT = {
|
|
114
|
-
DESKTOP: "Mozilla/5.0 (
|
|
115
|
-
MOBILE: "Mozilla/5.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) {
|
package/oclif.manifest.json
CHANGED