@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 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
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/4.12.0 linux-x64 node-v22.23.0
24
+ @speedkit/cli/4.13.0 linux-x64 node-v22.23.1
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -9,11 +9,11 @@ const EMPTY_FLAGS = {
9
9
  hasSoftNavigations: false,
10
10
  handleUsercentrics: false,
11
11
  };
12
- function detectFeatures(html, headers) {
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) || "cf-ray" in headers,
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, homePage.headers));
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, plpPage.headers));
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, pdpPage.headers));
127
+ featureResults.push(detectFeatures(pdpPage.html));
128
128
  }
129
129
  }
130
130
  return {
@@ -759,5 +759,5 @@
759
759
  ]
760
760
  }
761
761
  },
762
- "version": "4.12.0"
762
+ "version": "4.13.0"
763
763
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "4.12.0",
4
+ "version": "4.13.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"