@xylabs/crypto 5.1.1 → 5.1.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.
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/browser/Crypto.ts", "../../src/browser/cryptoPolyfill.ts"],
|
|
4
|
+
"sourcesContent": ["export { default as Crypto } from 'crypto-js'\n", "import { Crypto } from './Crypto.ts'\n\n/** Polyfills `globalThis.Crypto` with the crypto-js implementation for browser environments. */\nexport const cryptoPolyfill = () => {\n globalThis.Crypto = globalThis.Crypto ?? Crypto\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAoB,WAAXA,gBAAyB;;;ACG3B,IAAM,iBAAiB,MAAM;AAClC,aAAW,SAAS,WAAW,UAAUC;AAC3C;",
|
|
6
|
+
"names": ["default", "default"]
|
|
7
|
+
}
|
package/dist/node/index-node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/node/Crypto.ts
|
|
2
|
-
import { default as default2 } from "crypto";
|
|
2
|
+
import { default as default2 } from "node:crypto";
|
|
3
3
|
|
|
4
4
|
// src/node/cryptoPolyfill.ts
|
|
5
5
|
var cryptoPolyfill = () => {
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
default2 as Crypto,
|
|
10
10
|
cryptoPolyfill
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=index-node.mjs.map
|
|
12
|
+
//# sourceMappingURL=index-node.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/node/Crypto.ts", "../../src/node/cryptoPolyfill.ts"],
|
|
4
|
+
"sourcesContent": ["export { default as Crypto } from 'node:crypto'\n", "/** No-op polyfill for Node.js, where the crypto module is already available globally. */\nexport const cryptoPolyfill = () => {\n return\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAoB,WAAXA,gBAAyB;;;ACC3B,IAAM,iBAAiB,MAAM;AAClC;AACF;",
|
|
6
|
+
"names": ["default"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/crypto",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crypto",
|
|
@@ -46,17 +46,18 @@
|
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/crypto-js": "~4.2.2",
|
|
49
|
-
"@
|
|
50
|
-
"@xylabs/
|
|
51
|
-
"@xylabs/tsconfig
|
|
49
|
+
"@types/node": "^25.8.0",
|
|
50
|
+
"@xylabs/toolchain": "~8.0.4",
|
|
51
|
+
"@xylabs/tsconfig": "~8.0.4",
|
|
52
|
+
"@xylabs/tsconfig-dom": "~8.0.4",
|
|
52
53
|
"crypto-js": "~4.2.0",
|
|
53
54
|
"eslint": "^10.3.0",
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"vite": "^8.0.
|
|
56
|
-
"vitest": "^4.1.
|
|
55
|
+
"typescript": "^6.0.3",
|
|
56
|
+
"vite": "^8.0.13",
|
|
57
|
+
"vitest": "^4.1.6"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"crypto-js": "
|
|
60
|
+
"crypto-js": "~4.2"
|
|
60
61
|
},
|
|
61
62
|
"engines": {
|
|
62
63
|
"node": ">=18"
|