@xylabs/crypto 3.6.6 → 3.6.8
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/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +2 -2
- package/dist/browser/index.d.mts +2 -2
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/{index.js → index.mjs} +1 -1
- package/dist/browser/{index.js.map → index.mjs.map} +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.mts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/{index.js → index.mjs} +1 -1
- package/package.json +11 -11
- package/src/browser/cryptoPolyfill.ts +1 -1
- package/src/browser/index.ts +2 -2
- package/src/node/index.ts +2 -2
- package/xy.config.ts +0 -1
- /package/dist/node/{index.js.map → index.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/index.ts","../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.
|
|
1
|
+
{"version":3,"sources":["../../src/browser/index.ts","../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.ts'\nexport * from './cryptoPolyfill.ts'\n","export { default as Crypto } from 'crypto-js'\n","import { getGlobal } from '@xylabs/platform'\n\nimport { Crypto } from './Crypto.ts'\n\ntype WithOptionalCrypto = { Crypto?: typeof Crypto }\n\nexport const cryptoPolyfill = () => {\n const global = getGlobal<WithOptionalCrypto>()\n if (global) {\n global.Crypto = global.Crypto === undefined ? Crypto : { ...Crypto, ...global.Crypto }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,uBAAkC;;;ACAlC,sBAA0B;AAMnB,IAAM,iBAAiB,MAAM;AAClC,QAAM,aAAS,2BAA8B;AAC7C,MAAI,QAAQ;AACV,WAAO,SAAS,OAAO,WAAW,SAAY,2BAAS,EAAE,GAAG,0BAAQ,GAAG,OAAO,OAAO;AAAA,EACvF;AACF;","names":[]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export { default as Crypto } from 'crypto-js'\n","import { getGlobal } from '@xylabs/platform'\n\nimport { Crypto } from './Crypto.
|
|
1
|
+
{"version":3,"sources":["../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export { default as Crypto } from 'crypto-js'\n","import { getGlobal } from '@xylabs/platform'\n\nimport { Crypto } from './Crypto.ts'\n\ntype WithOptionalCrypto = { Crypto?: typeof Crypto }\n\nexport const cryptoPolyfill = () => {\n const global = getGlobal<WithOptionalCrypto>()\n if (global) {\n global.Crypto = global.Crypto === undefined ? Crypto : { ...Crypto, ...global.Crypto }\n }\n}\n"],"mappings":";AAAA,SAAoB,WAAXA,gBAAyB;;;ACAlC,SAAS,iBAAiB;AAMnB,IAAM,iBAAiB,MAAM;AAClC,QAAM,SAAS,UAA8B;AAC7C,MAAI,QAAQ;AACV,WAAO,SAAS,OAAO,WAAW,SAAYC,WAAS,EAAE,GAAGA,UAAQ,GAAG,OAAO,OAAO;AAAA,EACvF;AACF;","names":["default","default"]}
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/node/index.ts","../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.
|
|
1
|
+
{"version":3,"sources":["../../src/node/index.ts","../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.ts'\nexport * from './cryptoPolyfill.ts'\n","export { default as Crypto } from 'node:crypto'\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,yBAAkC;;;ACA3B,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts';
|
|
2
|
+
export * from './cryptoPolyfill.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"default": "./dist/browser/index.cjs"
|
|
20
20
|
},
|
|
21
21
|
"import": {
|
|
22
|
-
"types": "./dist/browser/index.d.
|
|
23
|
-
"default": "./dist/browser/index.
|
|
22
|
+
"types": "./dist/browser/index.d.ts",
|
|
23
|
+
"default": "./dist/browser/index.mjs"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"require": {
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"default": "./dist/node/index.cjs"
|
|
29
29
|
},
|
|
30
30
|
"import": {
|
|
31
|
-
"types": "./dist/node/index.d.
|
|
32
|
-
"default": "./dist/node/index.
|
|
31
|
+
"types": "./dist/node/index.d.ts",
|
|
32
|
+
"default": "./dist/node/index.mjs"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"main": "./dist/node/index.cjs",
|
|
38
38
|
"types": "./dist/node/index.d.ts",
|
|
39
|
-
"module": "./dist/node/index.
|
|
39
|
+
"module": "./dist/node/index.mjs",
|
|
40
40
|
"homepage": "https://xylabs.com",
|
|
41
41
|
"keywords": [
|
|
42
42
|
"crypto",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"esm"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@xylabs/platform": "^3.6.
|
|
49
|
+
"@xylabs/platform": "^3.6.8",
|
|
50
50
|
"crypto-js": "^4.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/crypto-js": "^4.2.2",
|
|
54
|
-
"@types/node": "^22.
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
56
|
-
"@xylabs/tsconfig": "^3.
|
|
57
|
-
"@xylabs/tsconfig-dom": "^3.
|
|
54
|
+
"@types/node": "^22.1.0",
|
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.5",
|
|
56
|
+
"@xylabs/tsconfig": "^3.15.5",
|
|
57
|
+
"@xylabs/tsconfig-dom": "^3.15.5",
|
|
58
58
|
"typescript": "^5.5.4"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"version": "3.6.
|
|
71
|
+
"version": "3.6.8",
|
|
72
72
|
"type": "module"
|
|
73
73
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts'
|
|
2
|
+
export * from './cryptoPolyfill.ts'
|
package/src/node/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Crypto.
|
|
2
|
-
export * from './cryptoPolyfill.
|
|
1
|
+
export * from './Crypto.ts'
|
|
2
|
+
export * from './cryptoPolyfill.ts'
|
package/xy.config.ts
CHANGED
|
File without changes
|