@xylabs/crypto 5.0.83 → 5.0.84

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
@@ -40,6 +40,8 @@ Base functionality used throughout XY Labs TypeScript/JavaScript libraries
40
40
  function cryptoPolyfill(): void;
41
41
  ```
42
42
 
43
+ Polyfills `globalThis.Crypto` with the crypto-js implementation for browser environments.
44
+
43
45
  ## Returns
44
46
 
45
47
  `void`
@@ -58,6 +60,8 @@ function cryptoPolyfill(): void;
58
60
  function cryptoPolyfill(): void;
59
61
  ```
60
62
 
63
+ No-op polyfill for Node.js, where the crypto module is already available globally.
64
+
61
65
  ## Returns
62
66
 
63
67
  `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.84",
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.13",
54
+ "@xylabs/tsconfig": "~7.4.13",
55
+ "@xylabs/tsconfig-dom": "~7.4.13",
56
56
  "typescript": "~5.9.3",
57
57
  "vitest": "~4.0.18"
58
58
  },