node-opcua-crypto-web 5.4.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/LICENSE +23 -0
- package/README.md +70 -0
- package/dist/index_web.d.ts +632 -0
- package/dist/index_web.js +60716 -0
- package/package.json +70 -0
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-opcua-crypto-web",
|
|
3
|
+
"version": "5.4.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Pre-bundled, zero-config browser build of node-opcua-crypto",
|
|
6
|
+
"//why": "This package exists so node-opcua-crypto can stay lean for Node. The pre-bundled browser build inlines its polyfills (crypto-browserify, stream-browserify, ...) and weighs ~344 KB gzip - more than the entire node-opcua-crypto tarball. Shipping it there would make every Node consumer download a browser bundle they never import. Browser consumers install this package explicitly, or let node-opcua-crypto's \"browser\" export condition redirect to it (see node-opcua-crypto/browser/index.js).",
|
|
7
|
+
"types": "./dist/index_web.d.ts",
|
|
8
|
+
"main": "./dist/index_web.js",
|
|
9
|
+
"//exports": "there is no \"require\" condition on purpose: this is an ESM-only browser bundle with no .cjs counterpart, so a single shared \"types\" key is correct here and cannot produce the CJS-gets-ESM-types hazard (attw FalseESM) that node-opcua-crypto's map guards against.",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index_web.d.ts",
|
|
13
|
+
"default": "./dist/index_web.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build:bundle": "node build.mjs",
|
|
19
|
+
"build:types": "tsup",
|
|
20
|
+
"build": "npm run build:bundle && npm run build:types",
|
|
21
|
+
"build:clean": "npx rimraf ./dist *.tsbuildinfo",
|
|
22
|
+
"prepare": "npm run build",
|
|
23
|
+
"lint": "biome check",
|
|
24
|
+
"lint:fix": "biome lint --fix",
|
|
25
|
+
"format": "biome format --write"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"OPCUA",
|
|
29
|
+
"opcua",
|
|
30
|
+
"m2m",
|
|
31
|
+
"iot",
|
|
32
|
+
"opc ua",
|
|
33
|
+
"internet of things",
|
|
34
|
+
"browser"
|
|
35
|
+
],
|
|
36
|
+
"author": "Etienne Rossignon",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"//devDependencies": "every one of these is inlined into dist/ at build time (tsup noExternal), so this package has no runtime dependencies at all.",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^24.13.3",
|
|
41
|
+
"assert": "^2.1.0",
|
|
42
|
+
"buffer": "^6.0.3",
|
|
43
|
+
"constants-browserify": "^1.0.0",
|
|
44
|
+
"crypto-browserify": "^3.12.1",
|
|
45
|
+
"esbuild": "^0.28.1",
|
|
46
|
+
"events": "^3.3.0",
|
|
47
|
+
"node-opcua-crypto": "^5.4.0",
|
|
48
|
+
"path-browserify": "^1.0.1",
|
|
49
|
+
"process": "^0.11.10",
|
|
50
|
+
"stream-browserify": "^3.0.0",
|
|
51
|
+
"string_decoder": "^1.3.0",
|
|
52
|
+
"util": "^0.12.5",
|
|
53
|
+
"vm-browserify": "^1.1.2"
|
|
54
|
+
},
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git://github.com/node-opcua/node-opcua-crypto.git"
|
|
58
|
+
},
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/node-opcua/node-opcua-crypto/issues"
|
|
61
|
+
},
|
|
62
|
+
"//files": "the .map is excluded deliberately: it gzips to ~662 KB, nearly twice the bundle itself and ~65% of the tarball. The bundle is not minified, so it stays readable without one. index_web.d.cts is excluded for the same reason - there is no CJS build for it to describe. Both are still generated locally for debugging.",
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"!dist/*.map",
|
|
66
|
+
"!dist/*.d.cts",
|
|
67
|
+
"LICENSE",
|
|
68
|
+
"README.md"
|
|
69
|
+
]
|
|
70
|
+
}
|