@xylabs/crypto 3.6.6 → 3.6.7

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 @@
1
- {"version":3,"sources":["../../src/browser/index.ts","../../src/browser/Crypto.ts","../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.js'\nexport * from './cryptoPolyfill.js'\n","export { default as Crypto } from 'crypto-js'\n","import { getGlobal } from '@xylabs/platform'\n\nimport { Crypto } from './Crypto.js'\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":[]}
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":[]}
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -13,4 +13,4 @@ export {
13
13
  default2 as Crypto,
14
14
  cryptoPolyfill
15
15
  };
16
- //# sourceMappingURL=index.js.map
16
+ //# sourceMappingURL=index.mjs.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.js'\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"]}
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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/index.ts","../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto.js'\nexport * from './cryptoPolyfill.js'\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":[]}
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":[]}
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Crypto.js';
2
- export * from './cryptoPolyfill.js';
1
+ export * from './Crypto.ts';
2
+ export * from './cryptoPolyfill.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,4 @@ export {
9
9
  default2 as Crypto,
10
10
  cryptoPolyfill
11
11
  };
12
- //# sourceMappingURL=index.js.map
12
+ //# sourceMappingURL=index.mjs.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.mts",
23
- "default": "./dist/browser/index.js"
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.mts",
32
- "default": "./dist/node/index.js"
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.js",
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.6",
49
+ "@xylabs/platform": "^3.6.7",
50
50
  "crypto-js": "^4.2.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/crypto-js": "^4.2.2",
54
- "@types/node": "^22.0.0",
55
- "@xylabs/ts-scripts-yarn3": "^3.14.1",
56
- "@xylabs/tsconfig": "^3.14.1",
57
- "@xylabs/tsconfig-dom": "^3.14.1",
54
+ "@types/node": "^22.1.0",
55
+ "@xylabs/ts-scripts-yarn3": "^3.15.4",
56
+ "@xylabs/tsconfig": "^3.15.4",
57
+ "@xylabs/tsconfig-dom": "^3.15.4",
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.6",
71
+ "version": "3.6.7",
72
72
  "type": "module"
73
73
  }
@@ -1,6 +1,6 @@
1
1
  import { getGlobal } from '@xylabs/platform'
2
2
 
3
- import { Crypto } from './Crypto.js'
3
+ import { Crypto } from './Crypto.ts'
4
4
 
5
5
  type WithOptionalCrypto = { Crypto?: typeof Crypto }
6
6
 
@@ -1,2 +1,2 @@
1
- export * from './Crypto.js'
2
- export * from './cryptoPolyfill.js'
1
+ export * from './Crypto.ts'
2
+ export * from './cryptoPolyfill.ts'
package/src/node/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './Crypto.js'
2
- export * from './cryptoPolyfill.js'
1
+ export * from './Crypto.ts'
2
+ export * from './cryptoPolyfill.ts'
package/xy.config.ts CHANGED
@@ -5,7 +5,6 @@ const config: XyTsupConfig = {
5
5
  browser: {
6
6
  'src/browser': true,
7
7
  },
8
- mode: 'tsup',
9
8
  neutral: {},
10
9
  node: {
11
10
  'src/node': true,
File without changes