@arcjet/redact-wasm 1.0.0-beta.8 → 1.0.0-beta.9
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 +3 -0
- package/package.json +24 -17
- package/wasm.d.ts +0 -28
package/README.md
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
[Arcjet][arcjet] sensitive information redaction detection engine.
|
|
20
20
|
|
|
21
|
+
- [npm package (`@arcjet/redact-wasm`)](https://www.npmjs.com/package/@arcjet/redact-wasm)
|
|
22
|
+
- [GitHub source code (`redact-wasm/` in `arcjet/arcjet-js`)](https://github.com/arcjet/arcjet-js/tree/main/redact-wasm)
|
|
23
|
+
|
|
21
24
|
## Installation
|
|
22
25
|
|
|
23
26
|
```shell
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcjet/redact-wasm",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "Arcjet sensitive information redaction detection engine",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"arcjet",
|
|
7
|
+
"redact",
|
|
8
|
+
"utility",
|
|
9
|
+
"util",
|
|
10
|
+
"wasm"
|
|
11
|
+
],
|
|
5
12
|
"license": "Apache-2.0",
|
|
6
13
|
"homepage": "https://arcjet.com",
|
|
7
14
|
"repository": {
|
|
@@ -30,32 +37,32 @@
|
|
|
30
37
|
"default": "./index.js"
|
|
31
38
|
},
|
|
32
39
|
"files": [
|
|
33
|
-
"LICENSE",
|
|
34
|
-
"README.md",
|
|
35
40
|
"_virtual/",
|
|
36
41
|
"wasm/",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
42
|
+
"edge-light.d.ts",
|
|
43
|
+
"edge-light.js",
|
|
44
|
+
"index.d.ts",
|
|
45
|
+
"index.js",
|
|
46
|
+
"workerd.d.ts",
|
|
47
|
+
"workerd.js"
|
|
40
48
|
],
|
|
41
49
|
"scripts": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"build": "npm run jco
|
|
50
|
+
"build:jco": "jco transpile --instantiation async --no-wasi-shim --out-dir wasm/ -- wasm/arcjet_analyze_bindings_redact.component.wasm",
|
|
51
|
+
"build:rollup": "rollup --config rollup.config.js",
|
|
52
|
+
"build": "npm run build:jco && npm run build:rollup",
|
|
45
53
|
"lint": "eslint .",
|
|
46
|
-
"
|
|
47
|
-
"test": "
|
|
54
|
+
"prepublishOnly": "npm run build",
|
|
55
|
+
"test": "npm run build && npm run lint"
|
|
48
56
|
},
|
|
49
57
|
"dependencies": {},
|
|
50
58
|
"devDependencies": {
|
|
51
|
-
"@arcjet/eslint-config": "1.0.0-beta.
|
|
52
|
-
"@arcjet/rollup-config": "1.0.0-beta.
|
|
53
|
-
"@arcjet/tsconfig": "1.0.0-beta.
|
|
59
|
+
"@arcjet/eslint-config": "1.0.0-beta.9",
|
|
60
|
+
"@arcjet/rollup-config": "1.0.0-beta.9",
|
|
61
|
+
"@arcjet/tsconfig": "1.0.0-beta.9",
|
|
54
62
|
"@bytecodealliance/jco": "1.5.0",
|
|
55
|
-
"@rollup/wasm-node": "4.
|
|
63
|
+
"@rollup/wasm-node": "4.44.2",
|
|
56
64
|
"@types/node": "18.18.0",
|
|
57
|
-
"eslint": "9.
|
|
58
|
-
"expect": "29.7.0",
|
|
65
|
+
"eslint": "9.30.1",
|
|
59
66
|
"typescript": "5.8.3"
|
|
60
67
|
},
|
|
61
68
|
"publishConfig": {
|
package/wasm.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vercel uses the `.wasm?module` suffix to make WebAssembly available in their
|
|
3
|
-
* Vercel Functions product.
|
|
4
|
-
*
|
|
5
|
-
* https://vercel.com/docs/functions/wasm#using-a-webassembly-file
|
|
6
|
-
*/
|
|
7
|
-
declare module "*.wasm?module" {
|
|
8
|
-
export default WebAssembly.Module;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The Cloudflare docs say they support the `.wasm?module` suffix, but that
|
|
13
|
-
* seems to no longer be the case with Wrangler 2 so we need to have separate
|
|
14
|
-
* imports for just the `.wasm` files.
|
|
15
|
-
*
|
|
16
|
-
* https://developers.cloudflare.com/workers/runtime-apis/webassembly/javascript/#bundling
|
|
17
|
-
*/
|
|
18
|
-
declare module "*.wasm" {
|
|
19
|
-
export default WebAssembly.Module;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Our Rollup build turns `.wasm?js` imports into JS imports that provide the
|
|
24
|
-
* `wasm()` function which decodes a base64 Data URL into a WebAssembly Module
|
|
25
|
-
*/
|
|
26
|
-
declare module "*.wasm?js" {
|
|
27
|
-
export function wasm(): Promise<WebAssembly.Module>;
|
|
28
|
-
}
|