@xylabs/crypto 2.11.24 → 2.12.0

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.
@@ -31,5 +31,5 @@ __export(Crypto_exports, {
31
31
  Crypto: () => import_crypto_js.default
32
32
  });
33
33
  module.exports = __toCommonJS(Crypto_exports);
34
- var import_crypto_js = __toESM(require("crypto-js"));
34
+ var import_crypto_js = __toESM(require("crypto-js"), 1);
35
35
  //# sourceMappingURL=Crypto.cjs.map
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/node/Crypto.ts
31
+ var Crypto_exports = {};
32
+ __export(Crypto_exports, {
33
+ Crypto: () => import_crypto.default
34
+ });
35
+ module.exports = __toCommonJS(Crypto_exports);
36
+ var import_crypto = __toESM(require("crypto"), 1);
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ Crypto
40
+ });
41
+ //# sourceMappingURL=Crypto.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/node/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAAA;AAAA;AAAA;AAAA,oBAAmB;","names":["Crypto"]}
@@ -1,41 +1,6 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
1
  // src/node/Crypto.ts
31
- var Crypto_exports = {};
32
- __export(Crypto_exports, {
33
- Crypto: () => import_crypto.default
34
- });
35
- module.exports = __toCommonJS(Crypto_exports);
36
- var import_crypto = __toESM(require("crypto"));
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
2
+ import Crypto from "crypto";
3
+ export {
39
4
  Crypto
40
- });
5
+ };
41
6
  //# sourceMappingURL=Crypto.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAAA;AAAA;AAAA;AAAA,oBAAmB;","names":["Crypto"]}
1
+ {"version":3,"sources":["../../src/node/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n"],"mappings":";AAAA,OAAO,YAAY;","names":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/node/cryptoPolyfill.ts
21
+ var cryptoPolyfill_exports = {};
22
+ __export(cryptoPolyfill_exports, {
23
+ cryptoPolyfill: () => cryptoPolyfill
24
+ });
25
+ module.exports = __toCommonJS(cryptoPolyfill_exports);
26
+ var cryptoPolyfill = () => {
27
+ return;
28
+ };
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ cryptoPolyfill
32
+ });
33
+ //# sourceMappingURL=cryptoPolyfill.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
@@ -1,33 +1,8 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
1
  // src/node/cryptoPolyfill.ts
21
- var cryptoPolyfill_exports = {};
22
- __export(cryptoPolyfill_exports, {
23
- cryptoPolyfill: () => cryptoPolyfill
24
- });
25
- module.exports = __toCommonJS(cryptoPolyfill_exports);
26
2
  var cryptoPolyfill = () => {
27
3
  return;
28
4
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
5
+ export {
31
6
  cryptoPolyfill
32
- });
7
+ };
33
8
  //# sourceMappingURL=cryptoPolyfill.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/node/index.ts
31
+ var node_exports = {};
32
+ __export(node_exports, {
33
+ Crypto: () => import_crypto.default,
34
+ cryptoPolyfill: () => cryptoPolyfill
35
+ });
36
+ module.exports = __toCommonJS(node_exports);
37
+
38
+ // src/node/Crypto.ts
39
+ var import_crypto = __toESM(require("crypto"), 1);
40
+
41
+ // src/node/cryptoPolyfill.ts
42
+ var cryptoPolyfill = () => {
43
+ return;
44
+ };
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ Crypto,
48
+ cryptoPolyfill
49
+ });
50
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/node/index.ts","../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n","import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA;AAAA;AAAA;;;ACAA,oBAAmB;;;ACAZ,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":["Crypto"]}
@@ -1,50 +1,12 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/node/index.ts
31
- var node_exports = {};
32
- __export(node_exports, {
33
- Crypto: () => import_crypto.default,
34
- cryptoPolyfill: () => cryptoPolyfill
35
- });
36
- module.exports = __toCommonJS(node_exports);
37
-
38
1
  // src/node/Crypto.ts
39
- var import_crypto = __toESM(require("crypto"));
2
+ import Crypto from "crypto";
40
3
 
41
4
  // src/node/cryptoPolyfill.ts
42
5
  var cryptoPolyfill = () => {
43
6
  return;
44
7
  };
45
- // Annotate the CommonJS export names for ESM import in node:
46
- 0 && (module.exports = {
8
+ export {
47
9
  Crypto,
48
10
  cryptoPolyfill
49
- });
11
+ };
50
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/index.ts","../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n","import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA;AAAA;AAAA;;;ACAA,oBAAmB;;;ACAZ,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":["Crypto"]}
1
+ {"version":3,"sources":["../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAA,OAAO,YAAY;;;ACAZ,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
package/package.json CHANGED
@@ -12,7 +12,6 @@
12
12
  },
13
13
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
14
14
  "docs": "dist/docs.json",
15
- "types": "dist/node/node/index.d.ts",
16
15
  "exports": {
17
16
  ".": {
18
17
  "browser": {
@@ -21,17 +20,17 @@
21
20
  "default": "./dist/browser/index.cjs"
22
21
  },
23
22
  "import": {
24
- "types": "./dist/browser/browser/index.d.ts",
23
+ "types": "./dist/browser/browser/index.d.mts",
25
24
  "default": "./dist/browser/index.js"
26
25
  }
27
26
  },
28
27
  "require": {
29
28
  "types": "./dist/node/node/index.d.ts",
30
- "default": "./dist/node/index.js"
29
+ "default": "./dist/node/index.cjs"
31
30
  },
32
31
  "import": {
33
32
  "types": "./dist/node/node/index.d.mts",
34
- "default": "./dist/node/index.mjs"
33
+ "default": "./dist/node/index.js"
35
34
  }
36
35
  },
37
36
  "./docs": {
@@ -39,8 +38,6 @@
39
38
  },
40
39
  "./package.json": "./package.json"
41
40
  },
42
- "main": "dist/node/index.js",
43
- "module": "dist/node/index.mjs",
44
41
  "homepage": "https://xylabs.com",
45
42
  "keywords": [
46
43
  "xylabs",
@@ -68,7 +65,7 @@
68
65
  "url": "https://github.com/xylabs/sdk-js.git"
69
66
  },
70
67
  "sideEffects": false,
71
- "version": "2.11.24",
68
+ "version": "2.12.0",
72
69
  "xy": {
73
70
  "compile": {
74
71
  "browser": {
@@ -78,5 +75,6 @@
78
75
  "src/node": true
79
76
  }
80
77
  }
81
- }
78
+ },
79
+ "type": "module"
82
80
  }
@@ -1,6 +0,0 @@
1
- // src/node/Crypto.ts
2
- import Crypto from "crypto";
3
- export {
4
- Crypto
5
- };
6
- //# sourceMappingURL=Crypto.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/node/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n"],"mappings":";AAAA,OAAO,YAAY;","names":[]}
@@ -1,8 +0,0 @@
1
- // src/node/cryptoPolyfill.ts
2
- var cryptoPolyfill = () => {
3
- return;
4
- };
5
- export {
6
- cryptoPolyfill
7
- };
8
- //# sourceMappingURL=cryptoPolyfill.mjs.map
@@ -1,12 +0,0 @@
1
- // src/node/Crypto.ts
2
- import Crypto from "crypto";
3
-
4
- // src/node/cryptoPolyfill.ts
5
- var cryptoPolyfill = () => {
6
- return;
7
- };
8
- export {
9
- Crypto,
10
- cryptoPolyfill
11
- };
12
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/node/Crypto.ts","../../src/node/cryptoPolyfill.ts"],"sourcesContent":["import Crypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { Crypto }\n","export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAA,OAAO,YAAY;;;ACAZ,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}