@xylabs/crypto 2.11.21 → 2.11.23
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/Crypto.cjs +0 -2
- package/dist/browser/Crypto.cjs.map +1 -1
- package/dist/browser/Crypto.js +0 -1
- package/dist/browser/Crypto.js.map +1 -1
- package/dist/browser/cryptoPolyfill.cjs +6 -22
- package/dist/browser/cryptoPolyfill.cjs.map +1 -1
- package/dist/browser/cryptoPolyfill.js +4 -7
- package/dist/browser/cryptoPolyfill.js.map +1 -1
- package/dist/browser/index.cjs +3 -41
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +2 -24
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Crypto.js +2 -0
- package/dist/node/Crypto.js.map +1 -1
- package/dist/node/Crypto.mjs +1 -0
- package/dist/node/Crypto.mjs.map +1 -1
- package/dist/node/cryptoPolyfill.js +3 -1
- package/dist/node/cryptoPolyfill.js.map +1 -1
- package/dist/node/cryptoPolyfill.mjs +2 -1
- package/dist/node/cryptoPolyfill.mjs.map +1 -1
- package/dist/node/index.js +30 -5
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +11 -2
- package/dist/node/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/browser/Crypto.cjs
CHANGED
|
@@ -26,8 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/browser/Crypto.ts
|
|
31
29
|
var Crypto_exports = {};
|
|
32
30
|
__export(Crypto_exports, {
|
|
33
31
|
Crypto: () => import_crypto_js.default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto-js'\n\nexport { Crypto }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/browser/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto-js'\n\nexport { Crypto }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAAA;AAAA;AAAA;AAAA,uBAAmB;","names":["Crypto"]}
|
package/dist/browser/Crypto.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto-js'\n\nexport { Crypto }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/browser/Crypto.ts"],"sourcesContent":["import Crypto from 'crypto-js'\n\nexport { Crypto }\n"],"mappings":"AAAA,OAAO,YAAY;","names":[]}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,40 +15,26 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
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
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/browser/cryptoPolyfill.ts
|
|
31
19
|
var cryptoPolyfill_exports = {};
|
|
32
20
|
__export(cryptoPolyfill_exports, {
|
|
33
21
|
cryptoPolyfill: () => cryptoPolyfill
|
|
34
22
|
});
|
|
35
23
|
module.exports = __toCommonJS(cryptoPolyfill_exports);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var import_crypto_js = __toESM(require("crypto-js"));
|
|
39
|
-
|
|
40
|
-
// src/browser/cryptoPolyfill.ts
|
|
41
|
-
var isBrowser = () => {
|
|
24
|
+
var import_Crypto = require("./Crypto");
|
|
25
|
+
const isBrowser = () => {
|
|
42
26
|
return typeof window !== "undefined" && typeof window?.document !== "undefined";
|
|
43
27
|
};
|
|
44
|
-
|
|
28
|
+
const isWebworker = () => {
|
|
45
29
|
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
|
|
46
30
|
};
|
|
47
|
-
|
|
31
|
+
const cryptoPolyfill = () => {
|
|
48
32
|
const global = isBrowser() ? window : isWebworker() ? self : void 0;
|
|
49
33
|
if (global) {
|
|
50
34
|
if (global.Crypto === void 0) {
|
|
51
|
-
global.Crypto =
|
|
35
|
+
global.Crypto = import_Crypto.Crypto;
|
|
52
36
|
} else {
|
|
53
|
-
global.Crypto = { ...
|
|
37
|
+
global.Crypto = { ...import_Crypto.Crypto, ...global.Crypto };
|
|
54
38
|
}
|
|
55
39
|
}
|
|
56
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/cryptoPolyfill.ts"
|
|
1
|
+
{"version":3,"sources":["../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["import { Crypto } from './Crypto'\n\ntype WithOptionalCrypto = { Crypto?: typeof Crypto }\n\nconst isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nconst isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const cryptoPolyfill = () => {\n const global = isBrowser() ? (window as unknown as WithOptionalCrypto) : isWebworker() ? (self as unknown as WithOptionalCrypto) : undefined\n if (global) {\n if (global.Crypto === undefined) {\n global.Crypto = Crypto\n } else {\n global.Crypto = { ...Crypto, ...global.Crypto }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;AAIvB,MAAM,YAAY,MAAM;AACtB,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEA,MAAM,cAAc,MAAM;AACxB,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,MAAM,iBAAiB,MAAM;AAClC,QAAM,SAAS,UAAU,IAAK,SAA2C,YAAY,IAAK,OAAyC;AACnI,MAAI,QAAQ;AACV,QAAI,OAAO,WAAW,QAAW;AAC/B,aAAO,SAAS;AAAA,IAClB,OAAO;AACL,aAAO,SAAS,EAAE,GAAG,sBAAQ,GAAG,OAAO,OAAO;AAAA,IAChD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/browser/cryptoPolyfill.ts
|
|
5
|
-
var isBrowser = () => {
|
|
1
|
+
import { Crypto } from "./Crypto";
|
|
2
|
+
const isBrowser = () => {
|
|
6
3
|
return typeof window !== "undefined" && typeof window?.document !== "undefined";
|
|
7
4
|
};
|
|
8
|
-
|
|
5
|
+
const isWebworker = () => {
|
|
9
6
|
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
|
|
10
7
|
};
|
|
11
|
-
|
|
8
|
+
const cryptoPolyfill = () => {
|
|
12
9
|
const global = isBrowser() ? window : isWebworker() ? self : void 0;
|
|
13
10
|
if (global) {
|
|
14
11
|
if (global.Crypto === void 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/
|
|
1
|
+
{"version":3,"sources":["../../src/browser/cryptoPolyfill.ts"],"sourcesContent":["import { Crypto } from './Crypto'\n\ntype WithOptionalCrypto = { Crypto?: typeof Crypto }\n\nconst isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nconst isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const cryptoPolyfill = () => {\n const global = isBrowser() ? (window as unknown as WithOptionalCrypto) : isWebworker() ? (self as unknown as WithOptionalCrypto) : undefined\n if (global) {\n if (global.Crypto === undefined) {\n global.Crypto = Crypto\n } else {\n global.Crypto = { ...Crypto, ...global.Crypto }\n }\n }\n}\n"],"mappings":"AAAA,SAAS,cAAc;AAIvB,MAAM,YAAY,MAAM;AACtB,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEA,MAAM,cAAc,MAAM;AACxB,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,MAAM,iBAAiB,MAAM;AAClC,QAAM,SAAS,UAAU,IAAK,SAA2C,YAAY,IAAK,OAAyC;AACnI,MAAI,QAAQ;AACV,QAAI,OAAO,WAAW,QAAW;AAC/B,aAAO,SAAS;AAAA,IAClB,OAAO;AACL,aAAO,SAAS,EAAE,GAAG,QAAQ,GAAG,OAAO,OAAO;AAAA,IAChD;AAAA,EACF;AACF;","names":[]}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
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
6
|
var __copyProps = (to, from, except, desc) => {
|
|
13
7
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
8
|
for (let key of __getOwnPropNames(from))
|
|
@@ -17,42 +11,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
11
|
}
|
|
18
12
|
return to;
|
|
19
13
|
};
|
|
20
|
-
var
|
|
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
|
-
));
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/browser/index.ts
|
|
31
16
|
var browser_exports = {};
|
|
32
|
-
__export(browser_exports, {
|
|
33
|
-
Crypto: () => import_crypto_js.default,
|
|
34
|
-
cryptoPolyfill: () => cryptoPolyfill
|
|
35
|
-
});
|
|
36
17
|
module.exports = __toCommonJS(browser_exports);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var import_crypto_js = __toESM(require("crypto-js"));
|
|
40
|
-
|
|
41
|
-
// src/browser/cryptoPolyfill.ts
|
|
42
|
-
var isBrowser = () => {
|
|
43
|
-
return typeof window !== "undefined" && typeof window?.document !== "undefined";
|
|
44
|
-
};
|
|
45
|
-
var isWebworker = () => {
|
|
46
|
-
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
|
|
47
|
-
};
|
|
48
|
-
var cryptoPolyfill = () => {
|
|
49
|
-
const global = isBrowser() ? window : isWebworker() ? self : void 0;
|
|
50
|
-
if (global) {
|
|
51
|
-
if (global.Crypto === void 0) {
|
|
52
|
-
global.Crypto = import_crypto_js.default;
|
|
53
|
-
} else {
|
|
54
|
-
global.Crypto = { ...import_crypto_js.default, ...global.Crypto };
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
18
|
+
__reExport(browser_exports, require("./Crypto"), module.exports);
|
|
19
|
+
__reExport(browser_exports, require("./cryptoPolyfill"), module.exports);
|
|
58
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/index.ts"
|
|
1
|
+
{"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,qBAAd;AACA,4BAAc,6BADd;","names":[]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/browser/cryptoPolyfill.ts
|
|
5
|
-
var isBrowser = () => {
|
|
6
|
-
return typeof window !== "undefined" && typeof window?.document !== "undefined";
|
|
7
|
-
};
|
|
8
|
-
var isWebworker = () => {
|
|
9
|
-
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
|
|
10
|
-
};
|
|
11
|
-
var cryptoPolyfill = () => {
|
|
12
|
-
const global = isBrowser() ? window : isWebworker() ? self : void 0;
|
|
13
|
-
if (global) {
|
|
14
|
-
if (global.Crypto === void 0) {
|
|
15
|
-
global.Crypto = Crypto;
|
|
16
|
-
} else {
|
|
17
|
-
global.Crypto = { ...Crypto, ...global.Crypto };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
Crypto,
|
|
23
|
-
cryptoPolyfill
|
|
24
|
-
};
|
|
1
|
+
export * from "./Crypto";
|
|
2
|
+
export * from "./cryptoPolyfill";
|
|
25
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/browser/
|
|
1
|
+
{"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
package/dist/node/Crypto.js
CHANGED
|
@@ -26,6 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/node/Crypto.ts
|
|
29
31
|
var Crypto_exports = {};
|
|
30
32
|
__export(Crypto_exports, {
|
|
31
33
|
Crypto: () => import_crypto.default
|
package/dist/node/Crypto.js.map
CHANGED
|
@@ -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":"
|
|
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"]}
|
package/dist/node/Crypto.mjs
CHANGED
package/dist/node/Crypto.mjs.map
CHANGED
|
@@ -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,OAAO,YAAY;","names":[]}
|
|
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":[]}
|
|
@@ -16,12 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/node/cryptoPolyfill.ts
|
|
19
21
|
var cryptoPolyfill_exports = {};
|
|
20
22
|
__export(cryptoPolyfill_exports, {
|
|
21
23
|
cryptoPolyfill: () => cryptoPolyfill
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(cryptoPolyfill_exports);
|
|
24
|
-
|
|
26
|
+
var cryptoPolyfill = () => {
|
|
25
27
|
return;
|
|
26
28
|
};
|
|
27
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":"AAAO,
|
|
1
|
+
{"version":3,"sources":["../../src/node/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfill = () => {\n return\n}\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
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
|
+
};
|
|
6
12
|
var __copyProps = (to, from, except, desc) => {
|
|
7
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,15 +17,34 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
}
|
|
12
18
|
return to;
|
|
13
19
|
};
|
|
14
|
-
var
|
|
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
|
+
));
|
|
15
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/node/index.ts
|
|
16
31
|
var node_exports = {};
|
|
32
|
+
__export(node_exports, {
|
|
33
|
+
Crypto: () => import_crypto.default,
|
|
34
|
+
cryptoPolyfill: () => cryptoPolyfill
|
|
35
|
+
});
|
|
17
36
|
module.exports = __toCommonJS(node_exports);
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
|
|
38
|
+
// src/node/Crypto.ts
|
|
39
|
+
var import_crypto = __toESM(require("crypto"));
|
|
40
|
+
|
|
41
|
+
// src/node/cryptoPolyfill.ts
|
|
42
|
+
var cryptoPolyfill = () => {
|
|
43
|
+
return;
|
|
44
|
+
};
|
|
20
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
46
|
0 && (module.exports = {
|
|
22
|
-
|
|
23
|
-
|
|
47
|
+
Crypto,
|
|
48
|
+
cryptoPolyfill
|
|
24
49
|
});
|
|
25
50
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/node/index.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n"],"mappings":"
|
|
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"]}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
};
|
|
3
12
|
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/node/
|
|
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
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/crypto-js": "^4.1.2",
|
|
57
57
|
"@types/node": "^20.7.0",
|
|
58
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
59
|
-
"@xylabs/tsconfig": "^3.0.
|
|
60
|
-
"@xylabs/tsconfig-dom": "^3.0.
|
|
58
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.72",
|
|
59
|
+
"@xylabs/tsconfig": "^3.0.72",
|
|
60
|
+
"@xylabs/tsconfig-dom": "^3.0.72",
|
|
61
61
|
"typescript": "^5.2.2"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"version": "2.11.
|
|
71
|
+
"version": "2.11.23",
|
|
72
72
|
"xy": {
|
|
73
73
|
"compile": {
|
|
74
74
|
"browser": {
|