@ai-ecoverse/slicc-browsers 1.51.0 → 1.52.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/README.md +2 -2
- package/engine/builtins.mjs +34 -0
- package/engine/engine-js.mjs +1 -0
- package/engine/runtime.mjs +12 -0
- package/engine.mjs +38 -28
- package/guard-vectors.json +1 -1
- package/package.json +12 -6
- package/protected-js.mjs +1 -0
- package/protected.mjs +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import bytes from './engine-wasm.mjs';
|
|
2
|
+
|
|
3
|
+
let compiled;
|
|
4
|
+
|
|
5
|
+
export function createInstance() {
|
|
6
|
+
compiled ??= new WebAssembly.Module(bytes);
|
|
7
|
+
return new WebAssembly.Instance(compiled).exports;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function prepare() {
|
|
11
|
+
compiled ??= await WebAssembly.compile(bytes);
|
|
12
|
+
}
|
package/engine.mjs
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
every,
|
|
3
|
+
exec,
|
|
4
|
+
includes,
|
|
5
|
+
list,
|
|
6
|
+
method,
|
|
7
|
+
startsWith,
|
|
8
|
+
typedLength,
|
|
9
|
+
typedSet,
|
|
10
|
+
wellFormed,
|
|
11
|
+
} from './engine/builtins.mjs';
|
|
12
|
+
import { createInstance, prepare } from './engine/runtime.mjs';
|
|
2
13
|
|
|
3
14
|
const encoder = new TextEncoder();
|
|
4
15
|
const decoder = new TextDecoder('utf-8', { fatal: true });
|
|
16
|
+
const encodeText = method(encoder.encode);
|
|
17
|
+
const decodeText = method(decoder.decode);
|
|
5
18
|
const roles = [
|
|
6
19
|
'seven',
|
|
7
20
|
'slicc',
|
|
@@ -12,7 +25,6 @@ const roles = [
|
|
|
12
25
|
'unparseable',
|
|
13
26
|
'ordinary',
|
|
14
27
|
];
|
|
15
|
-
let compiled;
|
|
16
28
|
|
|
17
29
|
const captureDecision = (v) => v === 'allow' || v === 'blank';
|
|
18
30
|
const record = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
@@ -24,7 +36,7 @@ function valid(request, result) {
|
|
|
24
36
|
case 'urlClass':
|
|
25
37
|
return (
|
|
26
38
|
typeof result?.protected === 'boolean' &&
|
|
27
|
-
|
|
39
|
+
includes(roles, result.role) &&
|
|
28
40
|
(result.origin === null || typeof result.origin === 'string')
|
|
29
41
|
);
|
|
30
42
|
case 'info':
|
|
@@ -32,18 +44,19 @@ function valid(request, result) {
|
|
|
32
44
|
result?.abi === 1 &&
|
|
33
45
|
Number.isInteger(result.catalogSchema) &&
|
|
34
46
|
typeof result.digest === 'string' &&
|
|
35
|
-
/^[0-9a-f]{16}
|
|
47
|
+
exec(/^[0-9a-f]{16}$/, result.digest) !== null
|
|
36
48
|
);
|
|
37
49
|
case 'page':
|
|
38
50
|
return (
|
|
39
51
|
typeof result?.mixed === 'boolean' &&
|
|
40
52
|
record(result.frames) &&
|
|
41
53
|
Object.keys(result.frames).length === request.frames.length &&
|
|
42
|
-
request.frames
|
|
43
|
-
|
|
54
|
+
every(request.frames, (f) => Object.hasOwn(result.frames, f.id)) &&
|
|
55
|
+
every(
|
|
56
|
+
Object.values(result.frames),
|
|
44
57
|
(v) =>
|
|
45
58
|
typeof v?.protected === 'boolean' &&
|
|
46
|
-
|
|
59
|
+
includes(roles, v.role) &&
|
|
47
60
|
captureDecision(v.capture)
|
|
48
61
|
)
|
|
49
62
|
);
|
|
@@ -60,7 +73,7 @@ function valid(request, result) {
|
|
|
60
73
|
typeof result.reason === 'string'))
|
|
61
74
|
);
|
|
62
75
|
case 'refusal':
|
|
63
|
-
return typeof result === 'string' &&
|
|
76
|
+
return typeof result === 'string' && startsWith(result, 'slicc: refused: ');
|
|
64
77
|
case 'har':
|
|
65
78
|
return result === 'include' || result === 'exclude';
|
|
66
79
|
case 'storageKey':
|
|
@@ -71,14 +84,15 @@ function valid(request, result) {
|
|
|
71
84
|
}
|
|
72
85
|
|
|
73
86
|
function exchange(wasm, method, input) {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
const size = typedLength(input);
|
|
88
|
+
const ptr = wasm.engine_alloc(size) >>> 0;
|
|
89
|
+
typedSet(new Uint8Array(wasm.memory.buffer, ptr, size), input);
|
|
90
|
+
const packed = wasm[method](ptr, size);
|
|
77
91
|
const start = Number(BigInt.asUintN(64, packed) >> 32n);
|
|
78
92
|
const length = Number(packed & 0xffffffffn);
|
|
79
|
-
const answer = JSON.parse(decoder
|
|
93
|
+
const answer = JSON.parse(decodeText(decoder, new Uint8Array(wasm.memory.buffer, start, length)));
|
|
80
94
|
wasm.engine_free(start, length);
|
|
81
|
-
wasm.engine_free(ptr,
|
|
95
|
+
wasm.engine_free(ptr, size);
|
|
82
96
|
if (typeof answer?.error === 'string') throw new Error(answer.error);
|
|
83
97
|
if (!answer || Object.keys(answer).length !== 1 || !Object.hasOwn(answer, 'ok'))
|
|
84
98
|
throw new Error('invalid engine response');
|
|
@@ -86,14 +100,15 @@ function exchange(wasm, method, input) {
|
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
function encode(value) {
|
|
89
|
-
return
|
|
90
|
-
|
|
103
|
+
return encodeText(
|
|
104
|
+
encoder,
|
|
105
|
+
JSON.stringify(value, (_, v) => (typeof v === 'string' ? wellFormed(v) : v))
|
|
91
106
|
);
|
|
92
107
|
}
|
|
93
108
|
|
|
94
109
|
function preserveFailedURL(request) {
|
|
95
110
|
if (
|
|
96
|
-
!['target', 'frame', 'targetClass', 'frameClass']
|
|
111
|
+
!includes(['target', 'frame', 'targetClass', 'frameClass'], request?.op) ||
|
|
97
112
|
typeof request.url !== 'string'
|
|
98
113
|
)
|
|
99
114
|
return request;
|
|
@@ -101,16 +116,16 @@ function preserveFailedURL(request) {
|
|
|
101
116
|
if (
|
|
102
117
|
typeof failed !== 'string' ||
|
|
103
118
|
failed === request.url ||
|
|
104
|
-
failed
|
|
119
|
+
wellFormed(failed) !== wellFormed(request.url)
|
|
105
120
|
)
|
|
106
121
|
return request;
|
|
107
122
|
return { ...request, documentURL: undefined };
|
|
108
123
|
}
|
|
109
124
|
|
|
110
|
-
function
|
|
125
|
+
export function engine(config = {}) {
|
|
111
126
|
const input = encode(config);
|
|
112
127
|
function create() {
|
|
113
|
-
const wasm =
|
|
128
|
+
const wasm = createInstance();
|
|
114
129
|
if (wasm.engine_abi() !== 1) throw new Error('unsupported engine ABI');
|
|
115
130
|
if (exchange(wasm, 'engine_init', input) !== true)
|
|
116
131
|
throw new Error('engine initialization failed');
|
|
@@ -122,14 +137,14 @@ function binding(module, config) {
|
|
|
122
137
|
instance ??= create();
|
|
123
138
|
const wire =
|
|
124
139
|
request.op === 'batch' && Array.isArray(request.calls)
|
|
125
|
-
? { ...request, calls: request.calls
|
|
140
|
+
? { ...request, calls: list(request.calls, preserveFailedURL) }
|
|
126
141
|
: preserveFailedURL(request);
|
|
127
142
|
const result = exchange(instance, 'engine_call', encode(wire));
|
|
128
143
|
const ok =
|
|
129
144
|
request.op === 'batch'
|
|
130
145
|
? Array.isArray(result) &&
|
|
131
146
|
result.length === request.calls.length &&
|
|
132
|
-
|
|
147
|
+
every(result, (v, i) => valid(request.calls[i], v))
|
|
133
148
|
: valid(request, result);
|
|
134
149
|
if (!ok) throw new Error(`invalid engine result for ${request.op}`);
|
|
135
150
|
return result;
|
|
@@ -165,12 +180,7 @@ function binding(module, config) {
|
|
|
165
180
|
};
|
|
166
181
|
}
|
|
167
182
|
|
|
168
|
-
export function engine(config = {}) {
|
|
169
|
-
compiled ??= new WebAssembly.Module(bytes);
|
|
170
|
-
return binding(compiled, config);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
183
|
export async function loadEngine(config = {}) {
|
|
174
|
-
|
|
175
|
-
return
|
|
184
|
+
await prepare();
|
|
185
|
+
return engine(config);
|
|
176
186
|
}
|
package/guard-vectors.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"./schema/engine-vectors.schema.json": "./schema/engine-vectors.schema.json",
|
|
31
31
|
"./debugger-stage1.json": "./debugger-stage1.json",
|
|
32
32
|
"./protected.mjs": "./protected.mjs",
|
|
33
|
+
"./protected-js.mjs": "./protected-js.mjs",
|
|
34
|
+
"./engine-js": "./engine/engine-js.mjs",
|
|
33
35
|
"./engine": "./engine.mjs",
|
|
34
36
|
"./engine.mjs": "./engine.mjs",
|
|
35
37
|
"./engine/engine-wasm.mjs": "./engine/engine-wasm.mjs",
|
|
@@ -56,6 +58,10 @@
|
|
|
56
58
|
"engine-vectors.json",
|
|
57
59
|
"debugger-stage1.json",
|
|
58
60
|
"protected.mjs",
|
|
61
|
+
"protected-js.mjs",
|
|
62
|
+
"engine/engine-js.mjs",
|
|
63
|
+
"engine/builtins.mjs",
|
|
64
|
+
"engine/runtime.mjs",
|
|
59
65
|
"engine.mjs",
|
|
60
66
|
"engine/engine-wasm.mjs",
|
|
61
67
|
"engine/engine.wasm",
|
|
@@ -87,9 +93,9 @@
|
|
|
87
93
|
"corpus": "node scripts/corpus.mjs",
|
|
88
94
|
"engine": "PATH=\"$HOME/.cargo/bin:$PATH\" node scripts/engine.mjs",
|
|
89
95
|
"validate": "node scripts/validate.mjs",
|
|
90
|
-
"lint": "export PATH=\"$HOME/.cargo/bin:$PATH\" && if [ \"$(uname -s)\" = Darwin ]; then echo 'Skipping byte comparison on macOS; Linux CI owns the wasm bytes.'; else
|
|
96
|
+
"lint": "export PATH=\"$HOME/.cargo/bin:$PATH\" && if [ \"$(uname -s)\" = Darwin ]; then echo 'Skipping byte comparison on macOS; Linux CI owns the wasm bytes.'; else artifacts='engine/engine.wasm engine/engine-wasm.mjs protected.mjs engine/engine-js.mjs protected-js.mjs' && git ls-files --error-unmatch $artifacts > /dev/null && npm run engine && git diff --exit-code -- $artifacts; fi && node scripts/protected-bundle.mjs --check && node scripts/engine-js.mjs --check && slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && GOOS=darwin go vet ./... && GOOS=windows go vet ./... && golangci-lint run && cargo fmt --all --check && cargo clippy --workspace --locked --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features --locked && cargo check --target wasm32-wasip1 --features serde --locked && cargo check --target wasm32-wasip1 --all-features --locked",
|
|
91
97
|
"format": "biome check --write . && gofmt -w . && cargo fmt --all",
|
|
92
|
-
"test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/protected-zones.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-ordinary-idp-cookies.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/engine.test.mjs test/integration/engine-page.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-cookie-plant-attach.test.mjs test/integration/guard-cookie-plant-attach-retry.test.mjs test/integration/guard-cookie-plant-open-commit.test.mjs test/integration/guard-cookie-plant-legacy-setup.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-error-page-enable.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-bfcache-ownership-probe.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-key.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-raw-cdp.test.mjs test/integration/guard-error-legs.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-preview.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-browser-storage.test.mjs test/integration/guard-control-premises.test.mjs test/integration/guard-control-probe-failure.test.mjs test/integration/guard-kept-origins.test.mjs",
|
|
98
|
+
"test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/protected-zones.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-ordinary-idp-cookies.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/engine.test.mjs test/integration/engine-js.test.mjs test/integration/engine-page.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-cookie-plant-attach.test.mjs test/integration/guard-cookie-plant-attach-retry.test.mjs test/integration/guard-cookie-plant-open-commit.test.mjs test/integration/guard-cookie-plant-legacy-setup.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-error-page-enable.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-bfcache-ownership-probe.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-key.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-raw-cdp.test.mjs test/integration/guard-error-legs.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-preview.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-browser-storage.test.mjs test/integration/guard-control-premises.test.mjs test/integration/guard-control-probe-failure.test.mjs test/integration/guard-kept-origins.test.mjs",
|
|
93
99
|
"test:unit": "mkdir -p coverage/unit && node --experimental-test-coverage --test --test-concurrency=1 --test-reporter=lcov --test-reporter-destination=coverage/unit/lcov.info test/unit/*.test.mjs && go test -race -cover ./...",
|
|
94
100
|
"build": "export PATH=\"$HOME/.cargo/bin:$PATH\" && go build ./... && cargo build --locked --all-features && cargo build --locked --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
95
101
|
"prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
|
|
@@ -100,14 +106,14 @@
|
|
|
100
106
|
"test:unit:guard": "mkdir -p coverage/unit && node --experimental-vm-modules --no-warnings --experimental-test-coverage --test --test-concurrency=1 --test-coverage-include=guard-runner.mjs --test-coverage-include=guard-driver.mjs --test-coverage-include=extension-frame.mjs --test-coverage-include=fixture-server.mjs --test-coverage-include=fixture-client.mjs --test-coverage-include=observer-target.mjs --test-coverage-include=frame-read.mjs --test-coverage-include=bfcache-restore.mjs --test-coverage-include=protected-error-page.mjs --test-coverage-include=protected-parent-iframes.mjs --test-coverage-include=unparseable-url.mjs --test-coverage-include=scripts/browser-runner.mjs --test-coverage-include=scripts/validate.mjs --test-reporter=lcov --test-reporter-destination=coverage/unit/guard.lcov test/unit/guard-*.test.mjs && slicc-diff-cover coverage/unit/guard.lcov"
|
|
101
107
|
},
|
|
102
108
|
"devDependencies": {
|
|
103
|
-
"@ai-ecoverse/slicc-cdp": "2.
|
|
104
|
-
"@ai-ecoverse/slicc-shared-web": "3.1.
|
|
109
|
+
"@ai-ecoverse/slicc-cdp": "2.9.1",
|
|
110
|
+
"@ai-ecoverse/slicc-shared-web": "3.1.1",
|
|
105
111
|
"@biomejs/biome": "2.6.9",
|
|
106
112
|
"ajv": "8.20.0",
|
|
107
113
|
"ajv-formats": "3.0.1",
|
|
108
114
|
"binaryen": "132.0.0",
|
|
109
115
|
"esbuild": "0.28.2",
|
|
110
|
-
"lefthook": "2.2.
|
|
116
|
+
"lefthook": "2.2.3",
|
|
111
117
|
"semantic-release": "26.0.1"
|
|
112
118
|
}
|
|
113
119
|
}
|