@speedkit/cli 4.12.0 → 4.13.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 +7 -0
- package/README.md +1 -1
- package/dist/helpers/site-analyzer.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [4.13.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.12.0...v4.13.0) (2026-06-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **site-analyzer:** rocket loader check ([229a037](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/229a037e0dc7eebb6bd46ac934799b6874556c88))
|
|
7
|
+
|
|
1
8
|
# [4.12.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.11.0...v4.12.0) (2026-06-19)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -9,11 +9,11 @@ const EMPTY_FLAGS = {
|
|
|
9
9
|
hasSoftNavigations: false,
|
|
10
10
|
handleUsercentrics: false,
|
|
11
11
|
};
|
|
12
|
-
function detectFeatures(html
|
|
12
|
+
function detectFeatures(html) {
|
|
13
13
|
return {
|
|
14
14
|
useGATracking: /dataLayer|gtm\.js|googletagmanager\.com|gtag\/js/.test(html),
|
|
15
15
|
withGoogleOptimize: /googleoptimize\.com|optimize\.google\.com/.test(html),
|
|
16
|
-
activateCfRocketLoaderPlugin: /data-cfasync|rocket-loader/.test(html)
|
|
16
|
+
activateCfRocketLoaderPlugin: /data-cfasync|rocket-loader/.test(html),
|
|
17
17
|
includeServiceWorker: /navigator\.serviceWorker\.register|serviceWorker\.register/.test(html),
|
|
18
18
|
removeLazyLoading: /loading=["']lazy["']|data-src=|class=["'][^"']*lazyload|lazysizes/.test(html),
|
|
19
19
|
hasSoftNavigations: /__NEXT_DATA__|__NUXT__|vue-router|react-router|history\.pushState/.test(html),
|
|
@@ -98,7 +98,7 @@ async function fetchAndAnalyze(host, log) {
|
|
|
98
98
|
const homePage = await fetchPage(`https://${host}`, controller.signal);
|
|
99
99
|
if (!homePage)
|
|
100
100
|
return null;
|
|
101
|
-
featureResults.push(detectFeatures(homePage.html
|
|
101
|
+
featureResults.push(detectFeatures(homePage.html));
|
|
102
102
|
// 2. Detect shop system from homepage
|
|
103
103
|
const shopSystem = detectShopSystem(homePage.html);
|
|
104
104
|
// 3. Check install.js presence in homepage HTML
|
|
@@ -112,7 +112,7 @@ async function fetchAndAnalyze(host, log) {
|
|
|
112
112
|
log(`Fetching PLP: ${plpUrl}`);
|
|
113
113
|
plpPage = await fetchPage(plpUrl, controller.signal);
|
|
114
114
|
if (plpPage) {
|
|
115
|
-
featureResults.push(detectFeatures(plpPage.html
|
|
115
|
+
featureResults.push(detectFeatures(plpPage.html));
|
|
116
116
|
// 6. If homepage didn't have a PDP link, try extracting one from PLP
|
|
117
117
|
if (!pdpUrl) {
|
|
118
118
|
pdpUrl = findUrl(plpPage.html, host, PDP_PATTERN);
|
|
@@ -124,7 +124,7 @@ async function fetchAndAnalyze(host, log) {
|
|
|
124
124
|
log(`Fetching PDP: ${pdpUrl}`);
|
|
125
125
|
const pdpPage = await fetchPage(pdpUrl, controller.signal);
|
|
126
126
|
if (pdpPage) {
|
|
127
|
-
featureResults.push(detectFeatures(pdpPage.html
|
|
127
|
+
featureResults.push(detectFeatures(pdpPage.html));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return {
|
package/oclif.manifest.json
CHANGED