@arcjet/redact-wasm 1.0.0-beta.1 → 1.0.0-beta.3
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/_virtual/arcjet_analyze_bindings_redact.component.core.js +1 -1
- package/_virtual/arcjet_analyze_bindings_redact.component.core2.js +1 -1
- package/_virtual/arcjet_analyze_bindings_redact.component.core3.js +1 -1
- package/index.js +6 -14
- package/package.json +6 -6
- package/wasm/arcjet_analyze_bindings_redact.component.core.wasm +0 -0
- package/wasm/arcjet_analyze_bindings_redact.component.core2.wasm +0 -0
- package/wasm/arcjet_analyze_bindings_redact.component.core3.wasm +0 -0
- package/wasm/arcjet_analyze_bindings_redact.component.js +2 -1
- package/wasm/arcjet_analyze_bindings_redact.component.wasm +0 -0
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* properly support consistent asset bundling techniques.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
const wasmBase64 = "data:application/wasm;base64,AGFzbQEAAAABDgJgA39/fwBgBH9/
|
|
27
|
+
const wasmBase64 = "data:application/wasm;base64,AGFzbQEAAAABDgJgA39/fwBgBH9/f38AAwMCAAEEBQFwAQICBxQDATAAAAExAAEIJGltcG9ydHMBAAofAg0AIAAgASACQQARAAALDwAgACABIAIgA0EBEQEACwAvCXByb2R1Y2VycwEMcHJvY2Vzc2VkLWJ5AQ13aXQtY29tcG9uZW50BzAuMjI2LjAAlQEEbmFtZQATEndpdC1jb21wb25lbnQ6c2hpbQF5AgA6aW5kaXJlY3QtYXJjamV0OnJlZGFjdC9jdXN0b20tcmVkYWN0LWRldGVjdC1zZW5zaXRpdmUtaW5mbwE6aW5kaXJlY3QtYXJjamV0OnJlZGFjdC9jdXN0b20tcmVkYWN0LXJlZGFjdC1zZW5zaXRpdmUtaW5mbw==";
|
|
28
28
|
/**
|
|
29
29
|
* Returns a WebAssembly.Module for an Arcjet Wasm binary, decoded from a base64
|
|
30
30
|
* Data URL.
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* properly support consistent asset bundling techniques.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
const wasmBase64 = "data:application/wasm;base64,AGFzbQEAAAABDgJgA39/fwBgBH9/
|
|
27
|
+
const wasmBase64 = "data:application/wasm;base64,AGFzbQEAAAABDgJgA39/fwBgBH9/f38AAhoDAAEwAAAAATEAAQAIJGltcG9ydHMBcAECAgkIAQBBAAsCAAEALwlwcm9kdWNlcnMBDHByb2Nlc3NlZC1ieQENd2l0LWNvbXBvbmVudAcwLjIyNi4wABwEbmFtZQAVFHdpdC1jb21wb25lbnQ6Zml4dXBz";
|
|
28
28
|
/**
|
|
29
29
|
* Returns a WebAssembly.Module for an Arcjet Wasm binary, decoded from a base64
|
|
30
30
|
* Data URL.
|
package/index.js
CHANGED
|
@@ -3,26 +3,18 @@ import { wasm } from './_virtual/arcjet_analyze_bindings_redact.component.core.j
|
|
|
3
3
|
import { wasm as wasm$1 } from './_virtual/arcjet_analyze_bindings_redact.component.core2.js';
|
|
4
4
|
import { wasm as wasm$2 } from './_virtual/arcjet_analyze_bindings_redact.component.core3.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const componentCoreWasmPromise = wasm();
|
|
7
|
+
const componentCore2WasmPromise = wasm$1();
|
|
8
|
+
const componentCore3WasmPromise = wasm$2();
|
|
7
9
|
async function moduleFromPath(path) {
|
|
8
|
-
const cachedModule = wasmCache.get(path);
|
|
9
|
-
if (typeof cachedModule !== "undefined") {
|
|
10
|
-
return cachedModule;
|
|
11
|
-
}
|
|
12
10
|
if (path === "arcjet_analyze_bindings_redact.component.core.wasm") {
|
|
13
|
-
|
|
14
|
-
wasmCache.set(path, mod);
|
|
15
|
-
return mod;
|
|
11
|
+
return componentCoreWasmPromise;
|
|
16
12
|
}
|
|
17
13
|
if (path === "arcjet_analyze_bindings_redact.component.core2.wasm") {
|
|
18
|
-
|
|
19
|
-
wasmCache.set(path, mod);
|
|
20
|
-
return mod;
|
|
14
|
+
return componentCore2WasmPromise;
|
|
21
15
|
}
|
|
22
16
|
if (path === "arcjet_analyze_bindings_redact.component.core3.wasm") {
|
|
23
|
-
|
|
24
|
-
wasmCache.set(path, mod);
|
|
25
|
-
return mod;
|
|
17
|
+
return componentCore3WasmPromise;
|
|
26
18
|
}
|
|
27
19
|
throw new Error(`Unknown path: ${path}`);
|
|
28
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcjet/redact-wasm",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "Arcjet sensitive information redaction detection engine",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://arcjet.com",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@arcjet/eslint-config": "1.0.0-beta.
|
|
52
|
-
"@arcjet/rollup-config": "1.0.0-beta.
|
|
53
|
-
"@arcjet/tsconfig": "1.0.0-beta.
|
|
51
|
+
"@arcjet/eslint-config": "1.0.0-beta.3",
|
|
52
|
+
"@arcjet/rollup-config": "1.0.0-beta.3",
|
|
53
|
+
"@arcjet/tsconfig": "1.0.0-beta.3",
|
|
54
54
|
"@bytecodealliance/jco": "1.5.0",
|
|
55
|
-
"@rollup/wasm-node": "4.
|
|
55
|
+
"@rollup/wasm-node": "4.34.9",
|
|
56
56
|
"@types/node": "18.18.0",
|
|
57
57
|
"expect": "29.7.0",
|
|
58
|
-
"typescript": "5.
|
|
58
|
+
"typescript": "5.8.2"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -151,6 +151,7 @@ function instantiate(getCoreModule, imports, instantiateCore = WebAssembly.insta
|
|
|
151
151
|
dataView(memory0).setInt32(arg3 + 4, ptr2, true);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
let exports2;
|
|
154
155
|
let postReturn0;
|
|
155
156
|
Promise.all([module0, module1, module2]).catch(() => {});
|
|
156
157
|
({ exports: exports0 } = yield instantiateCore(yield module1));
|
|
@@ -162,7 +163,7 @@ function instantiate(getCoreModule, imports, instantiateCore = WebAssembly.insta
|
|
|
162
163
|
}));
|
|
163
164
|
memory0 = exports1.memory;
|
|
164
165
|
realloc0 = exports1.cabi_realloc;
|
|
165
|
-
(yield instantiateCore(yield module2, {
|
|
166
|
+
({ exports: exports2 } = yield instantiateCore(yield module2, {
|
|
166
167
|
'': {
|
|
167
168
|
$imports: exports0.$imports,
|
|
168
169
|
'0': trampoline0,
|
|
Binary file
|