@xylabs/crypto 5.0.83 → 5.0.86

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 CHANGED
@@ -15,6 +15,8 @@
15
15
 
16
16
  Base functionality used throughout XY Labs TypeScript/JavaScript libraries
17
17
 
18
+
19
+
18
20
  ## Reference
19
21
 
20
22
  **@xylabs/crypto**
@@ -23,8 +25,10 @@ Base functionality used throughout XY Labs TypeScript/JavaScript libraries
23
25
 
24
26
  ## Modules
25
27
 
26
- - [index-browser](#index-browser/README)
27
- - [index-node](#index-node/README)
28
+ | Module | Description |
29
+ | ------ | ------ |
30
+ | [index-browser](#index-browser/README) | - |
31
+ | [index-node](#index-node/README) | - |
28
32
 
29
33
  ### index-browser
30
34
 
@@ -40,6 +44,8 @@ Base functionality used throughout XY Labs TypeScript/JavaScript libraries
40
44
  function cryptoPolyfill(): void;
41
45
  ```
42
46
 
47
+ Polyfills `globalThis.Crypto` with the crypto-js implementation for browser environments.
48
+
43
49
  ## Returns
44
50
 
45
51
  `void`
@@ -58,6 +64,8 @@ function cryptoPolyfill(): void;
58
64
  function cryptoPolyfill(): void;
59
65
  ```
60
66
 
67
+ No-op polyfill for Node.js, where the crypto module is already available globally.
68
+
61
69
  ## Returns
62
70
 
63
71
  `void`
@@ -1,2 +1,3 @@
1
+ /** Polyfills `globalThis.Crypto` with the crypto-js implementation for browser environments. */
1
2
  export declare const cryptoPolyfill: () => void;
2
3
  //# sourceMappingURL=cryptoPolyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/cryptoPolyfill.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,YAE1B,CAAA"}
1
+ {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/cryptoPolyfill.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,cAAc,YAE1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export { default as Crypto } from 'crypto-js'\n","import { Crypto } from './Crypto.ts'\n\nexport const cryptoPolyfill = () => {\n globalThis.Crypto = globalThis.Crypto ?? Crypto\n}\n"],"mappings":";AAAA,SAAoB,WAAXA,gBAAyB;;;ACE3B,IAAM,iBAAiB,MAAM;AAClC,aAAW,SAAS,WAAW,UAAUC;AAC3C;","names":["default","default"]}
1
+ {"version":3,"sources":["../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"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"],"mappings":";AAAA,SAAoB,WAAXA,gBAAyB;;;ACG3B,IAAM,iBAAiB,MAAM;AAClC,aAAW,SAAS,WAAW,UAAUC;AAC3C;","names":["default","default"]}
@@ -1,2 +1,3 @@
1
+ /** No-op polyfill for Node.js, where the crypto module is already available globally. */
1
2
  export declare const cryptoPolyfill: () => void;
2
3
  //# sourceMappingURL=cryptoPolyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/cryptoPolyfill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAE1B,CAAA"}
1
+ {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/cryptoPolyfill.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,eAAO,MAAM,cAAc,YAE1B,CAAA"}
@@ -1,2 +1,3 @@
1
+ /** Polyfills `globalThis.Crypto` with the crypto-js implementation for browser environments. */
1
2
  export declare const cryptoPolyfill: () => void;
2
3
  //# sourceMappingURL=cryptoPolyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/cryptoPolyfill.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,YAE1B,CAAA"}
1
+ {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/cryptoPolyfill.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,cAAc,YAE1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export { default as Crypto } from 'node:crypto'\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAA,SAAoB,WAAXA,gBAAyB;;;ACA3B,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":["default"]}
1
+ {"version":3,"sources":["../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"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"],"mappings":";AAAA,SAAoB,WAAXA,gBAAyB;;;ACC3B,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":["default"]}
@@ -1,2 +1,3 @@
1
+ /** No-op polyfill for Node.js, where the crypto module is already available globally. */
1
2
  export declare const cryptoPolyfill: () => void;
2
3
  //# sourceMappingURL=cryptoPolyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/cryptoPolyfill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAE1B,CAAA"}
1
+ {"version":3,"file":"cryptoPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/cryptoPolyfill.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,eAAO,MAAM,cAAc,YAE1B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/crypto",
3
- "version": "5.0.83",
3
+ "version": "5.0.86",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "crypto",
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/crypto-js": "~4.2.2",
53
- "@xylabs/ts-scripts-yarn3": "~7.4.11",
54
- "@xylabs/tsconfig": "~7.4.11",
55
- "@xylabs/tsconfig-dom": "~7.4.11",
53
+ "@xylabs/ts-scripts-yarn3": "~7.4.16",
54
+ "@xylabs/tsconfig": "~7.4.16",
55
+ "@xylabs/tsconfig-dom": "~7.4.16",
56
56
  "typescript": "~5.9.3",
57
57
  "vitest": "~4.0.18"
58
58
  },