@supersdk/jssdk 1.0.0 → 3.0.5-SNAPSHOT

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersdk/jssdk",
3
- "version": "1.0.0",
3
+ "version": "3.0.5-SNAPSHOT",
4
4
  "description": "Environment-neutral SuperSDK runtime for Web and Hybrid applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,20 +23,41 @@
23
23
  "import": "./dist/global.js",
24
24
  "require": "./dist/global.cjs"
25
25
  },
26
+ "./protocol": {
27
+ "types": "./dist/protocol.d.ts",
28
+ "import": "./dist/protocol.js",
29
+ "require": "./dist/protocol.cjs"
30
+ },
31
+ "./mock": {
32
+ "types": "./dist/mock.d.ts",
33
+ "import": "./dist/mock.js",
34
+ "require": "./dist/mock.cjs"
35
+ },
26
36
  "./supersdk.js": "./dist/supersdk.js"
27
37
  },
28
38
  "files": [
29
39
  "dist",
30
40
  "README.md",
31
41
  "LICENSE",
32
- "CHANGELOG.md"
42
+ "CHANGELOG.md",
43
+ "JSBridge.md",
44
+ "protocol"
33
45
  ],
34
46
  "scripts": {
47
+ "generate:bridge": "node scripts/generate-bridge-contract.mjs",
48
+ "check:bridge-generated": "node scripts/generate-bridge-contract.mjs --check",
49
+ "generate:monitoring": "node scripts/generate-monitoring-contract.mjs",
50
+ "check:monitoring-generated": "node scripts/generate-monitoring-contract.mjs --check",
51
+ "generate:suenc": "node scripts/generate-suenc-contract.mjs",
52
+ "check:suenc-generated": "node scripts/generate-suenc-contract.mjs --check",
35
53
  "build": "node scripts/build.mjs",
36
- "test": "npm run build && node --test tests/analytics-flush.test.mjs tests/analytics-params.test.mjs tests/analytics-persistence.test.mjs tests/analytics-queue.test.mjs tests/consent-migration.test.mjs tests/runtime.test.mjs tests/settings-cache.test.mjs tests/settings-contract.test.mjs tests/settings-errors.test.mjs tests/settings-security.test.mjs && node supersdk.test.cjs",
37
- "test:browser": "npm run build && node --test tests/browser.e2e.test.mjs",
38
- "test:pack": "npm run build && node --test tests/public-entry-smoke.test.mjs tests/public-export-gate.test.mjs tests/public-pack-clean-install.test.mjs tests/release-provenance.e2e.test.mjs",
39
- "test:public": "npm run build && node --test tests/public-docs-smoke.test.mjs",
54
+ "test:bridge": "npm run check:bridge-generated && node --test --test-timeout=120000 tests/bridge-*.test.mjs tests/native-contract.test.mjs tests/runtime-compat.test.mjs tests/jsb-workflow.test.mjs",
55
+ "test:monitoring": "npm run check:monitoring-generated && node --test --test-timeout=120000 tests/monitoring-lifecycle.test.mjs tests/monitoring-consent.test.mjs tests/monitoring-errors.test.mjs tests/monitoring-performance.test.mjs tests/monitoring-jsb.test.mjs tests/monitoring-budget.test.mjs tests/monitoring-budget.performance.test.mjs tests/monitoring-privacy.test.mjs tests/monitoring-public-contract.test.mjs tests/monitoring-public-entry.test.mjs tests/monitoring-compat.test.mjs tests/monitoring-remote-adapter.test.mjs",
56
+ "test": "npm run build && npm run test:bridge && npm run test:monitoring && npm run check:suenc-generated && node --test --test-timeout=120000 tests/suenc.test.mjs tests/analytics-flush.test.mjs tests/api-environment.test.mjs tests/analytics-params.test.mjs tests/analytics-persistence.test.mjs tests/analytics-queue.test.mjs tests/consent-migration.test.mjs tests/runtime.test.mjs tests/settings-cache.test.mjs tests/settings-contract.test.mjs tests/settings-errors.test.mjs tests/settings-security.test.mjs tests/feedback.test.mjs tests/push.test.mjs tests/push-docs.test.mjs tests/experiment.test.mjs && node supersdk.test.cjs",
57
+ "test:browser": "npm run build && node --test --test-timeout=300000 tests/browser.e2e.test.mjs tests/monitoring-browser.e2e.test.mjs",
58
+ "test:pack": "npm run build && node --test --test-timeout=300000 tests/public-entry-smoke.test.mjs tests/public-export-gate.test.mjs tests/public-pack-clean-install.test.mjs tests/monitoring-public-pack.test.mjs tests/release-provenance.e2e.test.mjs",
59
+ "test:native-contract": "node --test --test-timeout=300000 tests/native-contract.test.mjs tests/monitoring-native-contract.e2e.test.mjs",
60
+ "test:public": "npm run build && node --test --test-timeout=120000 tests/public-docs-smoke.test.mjs",
40
61
  "verify:public-tree": "node scripts/verify-public-tree.mjs",
41
62
  "verify:release": "node scripts/verify-release.mjs --candidate",
42
63
  "verify": "npm run verify:public-tree && npm run test && npm run test:browser && npm run test:pack && npm run test:public && npm run verify:public-tree"