@xylabs/crypto 2.11.18 → 2.11.20
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/browser-only/Crypto.cjs +35 -0
- package/dist/browser/browser-only/Crypto.cjs.map +1 -0
- package/dist/browser/browser-only/cryptoPolyfill.cjs +41 -0
- package/dist/browser/browser-only/cryptoPolyfill.cjs.map +1 -0
- package/dist/browser/browser-only/index.cjs +20 -0
- package/dist/browser/browser-only/index.cjs.map +1 -0
- package/dist/browser/browserIndex.cjs +28 -0
- package/dist/browser/browserIndex.cjs.map +1 -0
- package/dist/browser/index.cjs +19 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/node-only/Crypto.cjs +35 -0
- package/dist/browser/node-only/Crypto.cjs.map +1 -0
- package/dist/browser/node-only/cryptoPolyfill.cjs +27 -0
- package/dist/browser/node-only/cryptoPolyfill.cjs.map +1 -0
- package/dist/browser/node-only/index.cjs +20 -0
- package/dist/browser/node-only/index.cjs.map +1 -0
- package/dist/browser/nodeIndex.cjs +28 -0
- package/dist/browser/nodeIndex.cjs.map +1 -0
- package/package.json +19 -13
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
var Crypto_exports = {};
|
|
30
|
+
__export(Crypto_exports, {
|
|
31
|
+
BrowserCrypto: () => import_crypto_js.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(Crypto_exports);
|
|
34
|
+
var import_crypto_js = __toESM(require("crypto-js"));
|
|
35
|
+
//# sourceMappingURL=Crypto.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/browser-only/Crypto.ts"],"sourcesContent":["import BrowserCrypto from 'crypto-js'\n\nexport { BrowserCrypto }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wCAAAA;AAAA;AAAA;AAAA,uBAA0B;","names":["BrowserCrypto"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
var cryptoPolyfill_exports = {};
|
|
20
|
+
__export(cryptoPolyfill_exports, {
|
|
21
|
+
cryptoPolyfillBrowser: () => cryptoPolyfillBrowser
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(cryptoPolyfill_exports);
|
|
24
|
+
var import_Crypto = require("./Crypto");
|
|
25
|
+
const isBrowser = () => {
|
|
26
|
+
return typeof window !== "undefined" && typeof window?.document !== "undefined";
|
|
27
|
+
};
|
|
28
|
+
const isWebworker = () => {
|
|
29
|
+
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
|
|
30
|
+
};
|
|
31
|
+
const cryptoPolyfillBrowser = () => {
|
|
32
|
+
const global = isBrowser() ? window : isWebworker() ? self : void 0;
|
|
33
|
+
if (global) {
|
|
34
|
+
if (global.Crypto === void 0) {
|
|
35
|
+
global.Crypto = import_Crypto.BrowserCrypto;
|
|
36
|
+
} else {
|
|
37
|
+
global.Crypto = { ...import_Crypto.BrowserCrypto, ...global.Crypto };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=cryptoPolyfill.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/browser-only/cryptoPolyfill.ts"],"sourcesContent":["import { BrowserCrypto } from './Crypto'\n\ntype WithOptionalCrypto = { Crypto?: typeof BrowserCrypto }\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 cryptoPolyfillBrowser = () => {\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 = BrowserCrypto\n } else {\n global.Crypto = { ...BrowserCrypto, ...global.Crypto }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA8B;AAI9B,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,wBAAwB,MAAM;AACzC,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,6BAAe,GAAG,OAAO,OAAO;AAAA,IACvD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var browser_only_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(browser_only_exports);
|
|
18
|
+
__reExport(browser_only_exports, require("./Crypto"), module.exports);
|
|
19
|
+
__reExport(browser_only_exports, require("./cryptoPolyfill"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/browser-only/index.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,qBAAd;AACA,iCAAc,6BADd;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var browserIndex_exports = {};
|
|
21
|
+
__export(browserIndex_exports, {
|
|
22
|
+
Crypto: () => import_browser_only.BrowserCrypto,
|
|
23
|
+
bufferPolyfill: () => import_browser_only.cryptoPolyfillBrowser
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(browserIndex_exports);
|
|
26
|
+
__reExport(browserIndex_exports, require("./browser-only"), module.exports);
|
|
27
|
+
var import_browser_only = require("./browser-only");
|
|
28
|
+
//# sourceMappingURL=browserIndex.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/browserIndex.ts"],"sourcesContent":["export * from './browser-only'\nexport { cryptoPolyfillBrowser as bufferPolyfill, BrowserCrypto as Crypto } from './browser-only'\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAc,2BAAd;AACA,0BAAiF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./browserIndex"), module.exports);
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './browserIndex'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
var Crypto_exports = {};
|
|
30
|
+
__export(Crypto_exports, {
|
|
31
|
+
NodeCrypto: () => import_crypto.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(Crypto_exports);
|
|
34
|
+
var import_crypto = __toESM(require("crypto"));
|
|
35
|
+
//# sourceMappingURL=Crypto.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/node-only/Crypto.ts"],"sourcesContent":["import NodeCrypto from 'crypto'\n// eslint-disable-next-line import/no-default-export\nexport { NodeCrypto }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kCAAAA;AAAA;AAAA;AAAA,oBAAuB;","names":["NodeCrypto"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
var cryptoPolyfill_exports = {};
|
|
20
|
+
__export(cryptoPolyfill_exports, {
|
|
21
|
+
cryptoPolyfillNode: () => cryptoPolyfillNode
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(cryptoPolyfill_exports);
|
|
24
|
+
const cryptoPolyfillNode = () => {
|
|
25
|
+
return;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=cryptoPolyfill.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/node-only/cryptoPolyfill.ts"],"sourcesContent":["export const cryptoPolyfillNode = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,qBAAqB,MAAM;AACtC;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var node_only_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(node_only_exports);
|
|
18
|
+
__reExport(node_only_exports, require("./Crypto"), module.exports);
|
|
19
|
+
__reExport(node_only_exports, require("./cryptoPolyfill"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/node-only/index.ts"],"sourcesContent":["export * from './Crypto'\nexport * from './cryptoPolyfill'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAc,qBAAd;AACA,8BAAc,6BADd;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var nodeIndex_exports = {};
|
|
21
|
+
__export(nodeIndex_exports, {
|
|
22
|
+
Crypto: () => import_node_only.NodeCrypto,
|
|
23
|
+
cryptoPolyfill: () => import_node_only.cryptoPolyfillNode
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(nodeIndex_exports);
|
|
26
|
+
__reExport(nodeIndex_exports, require("./node-only"), module.exports);
|
|
27
|
+
var import_node_only = require("./node-only");
|
|
28
|
+
//# sourceMappingURL=nodeIndex.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/nodeIndex.ts"],"sourcesContent":["export * from './node-only'\nexport { NodeCrypto as Crypto, cryptoPolyfillNode as cryptoPolyfill } from './node-only'\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAc,wBAAd;AACA,uBAA2E;","names":[]}
|
package/package.json
CHANGED
|
@@ -12,20 +12,26 @@
|
|
|
12
12
|
},
|
|
13
13
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
14
14
|
"docs": "dist/docs.json",
|
|
15
|
-
"types": "dist/node/
|
|
15
|
+
"types": "dist/node/nodeIndex.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
18
|
"browser": {
|
|
19
|
-
"
|
|
20
|
-
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/browser/browserIndex.d.ts",
|
|
21
|
+
"default": "./dist/browser/browserIndex.cjs"
|
|
22
|
+
},
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/browser/browserIndex.d.ts",
|
|
25
|
+
"default": "./dist/browser/browserIndex.js"
|
|
26
|
+
}
|
|
21
27
|
},
|
|
22
28
|
"require": {
|
|
23
|
-
"types": "./dist/node/
|
|
24
|
-
"default": "./dist/node/
|
|
29
|
+
"types": "./dist/node/nodeIndex.d.ts",
|
|
30
|
+
"default": "./dist/node/nodeIndex.js"
|
|
25
31
|
},
|
|
26
32
|
"import": {
|
|
27
|
-
"types": "./dist/node/
|
|
28
|
-
"default": "./dist/node/
|
|
33
|
+
"types": "./dist/node/nodeIndex.d.mts",
|
|
34
|
+
"default": "./dist/node/nodeIndex.mjs"
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
"./docs": {
|
|
@@ -33,8 +39,8 @@
|
|
|
33
39
|
},
|
|
34
40
|
"./package.json": "./package.json"
|
|
35
41
|
},
|
|
36
|
-
"main": "dist/node/
|
|
37
|
-
"module": "dist/node/
|
|
42
|
+
"main": "dist/node/nodeIndex.js",
|
|
43
|
+
"module": "dist/node/nodeIndex.mjs",
|
|
38
44
|
"homepage": "https://xylabs.com",
|
|
39
45
|
"keywords": [
|
|
40
46
|
"xylabs",
|
|
@@ -49,9 +55,9 @@
|
|
|
49
55
|
"devDependencies": {
|
|
50
56
|
"@types/crypto-js": "^4.1.2",
|
|
51
57
|
"@types/node": "^20.7.0",
|
|
52
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
53
|
-
"@xylabs/tsconfig": "^3.0.
|
|
54
|
-
"@xylabs/tsconfig-dom": "^3.0.
|
|
58
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.68",
|
|
59
|
+
"@xylabs/tsconfig": "^3.0.68",
|
|
60
|
+
"@xylabs/tsconfig-dom": "^3.0.68",
|
|
55
61
|
"typescript": "^5.2.2"
|
|
56
62
|
},
|
|
57
63
|
"publishConfig": {
|
|
@@ -62,7 +68,7 @@
|
|
|
62
68
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
63
69
|
},
|
|
64
70
|
"sideEffects": false,
|
|
65
|
-
"version": "2.11.
|
|
71
|
+
"version": "2.11.20",
|
|
66
72
|
"xy": {
|
|
67
73
|
"compile": {
|
|
68
74
|
"depth": 1
|