antigravity-seo-kit 3.1.0 → 3.1.2

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/lib/downloader.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const https = require('https');
4
+ const http = require('http');
4
5
  const zlib = require('zlib');
5
6
  const fs = require('fs');
6
7
  const path = require('path');
@@ -21,11 +22,11 @@ function downloadBuffer(url, headers = {}, { timeout = 60000, maxRedirects = 5 }
21
22
  const parsed = new URL(url);
22
23
 
23
24
  // SECURITY: Reject HTTP — license key must never travel over cleartext
24
- if (parsed.protocol !== 'https:') {
25
+ if (parsed.protocol !== 'https:' && parsed.hostname !== '127.0.0.1' && parsed.hostname !== 'localhost') {
25
26
  return reject(new Error('HTTPS required for secure asset downloads. Refusing HTTP connection.'));
26
27
  }
27
28
 
28
- const transport = https;
29
+ const transport = parsed.protocol === 'https:' ? https : http;
29
30
 
30
31
  const options = {
31
32
  hostname: parsed.hostname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-seo-kit",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Professional Agentic SEO Platform for Google Antigravity 2 AI Agent — 44 specialized skills covering technical audit, E-E-A-T, schema, GEO, local SEO & more",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {
@@ -37,6 +37,8 @@
37
37
  "scripts": {
38
38
  "pack-assets": "node scripts/pack-assets.js",
39
39
  "pack-npm": "npm pack --pack-destination dist",
40
- "pack-all": "node scripts/pack-assets.js && npm pack --pack-destination dist"
40
+ "pack-all": "node scripts/pack-assets.js && npm pack --pack-destination dist",
41
+ "test-install": "node tests/test_live_install.js",
42
+ "test": "node tests/installer.test.js && node tests/test_live_install.js && python tests/test_verify_agents.py"
41
43
  }
42
44
  }