@xylabs/lodash 2.11.24 → 2.12.2
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/cjsIndex.cjs +1 -1
- package/dist/browser/cjsIndex.js +1 -10
- package/dist/browser/cjsIndex.js.map +1 -1
- package/dist/browser/esmIndex.cjs +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/node/cjsIndex.cjs +28 -0
- package/dist/node/cjsIndex.cjs.map +1 -0
- package/dist/node/cjsIndex.js +2 -26
- package/dist/node/cjsIndex.js.map +1 -1
- package/dist/node/esmIndex.cjs +44 -0
- package/dist/node/{esmIndex.mjs.map → esmIndex.cjs.map} +1 -1
- package/dist/node/esmIndex.js +5 -41
- package/dist/node/esmIndex.js.map +1 -1
- package/dist/node/{index.mjs → index.cjs} +16 -21
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +14 -35
- package/dist/node/index.js.map +1 -1
- package/package.json +8 -7
- package/dist/node/cjsIndex.mjs +0 -14
- package/dist/node/cjsIndex.mjs.map +0 -1
- package/dist/node/esmIndex.mjs +0 -8
- package/dist/node/index.mjs.map +0 -1
|
@@ -21,6 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
|
-
var import_lodash = __toESM(require("lodash"));
|
|
24
|
+
var import_lodash = __toESM(require("lodash"), 1);
|
|
25
25
|
module.exports = import_lodash.default;
|
|
26
26
|
//# sourceMappingURL=cjsIndex.cjs.map
|
package/dist/browser/cjsIndex.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
1
|
import lodash from "lodash";
|
|
6
|
-
|
|
7
|
-
"src/cjsIndex.ts"(exports, module) {
|
|
8
|
-
module.exports = lodash;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export default require_cjsIndex();
|
|
2
|
+
module.exports = lodash;
|
|
12
3
|
//# sourceMappingURL=cjsIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":"AACA,OAAO,YAAY;AAEnB,OAAO,UAAU;","names":[]}
|
|
@@ -32,7 +32,7 @@ __export(esmIndex_exports, {
|
|
|
32
32
|
default: () => esmIndex_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(esmIndex_exports);
|
|
35
|
-
var lodash = __toESM(require("lodash-es"));
|
|
35
|
+
var lodash = __toESM(require("lodash-es"), 1);
|
|
36
36
|
__reExport(esmIndex_exports, require("lodash-es"), module.exports);
|
|
37
37
|
var esmIndex_default = lodash;
|
|
38
38
|
//# sourceMappingURL=esmIndex.cjs.map
|
package/dist/browser/index.cjs
CHANGED
|
@@ -32,6 +32,6 @@ __export(src_exports, {
|
|
|
32
32
|
lodashCjs: () => lodashCjs
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(src_exports);
|
|
35
|
-
var lodashCjs = __toESM(require("./cjsIndex"));
|
|
35
|
+
var lodashCjs = __toESM(require("./cjsIndex"), 1);
|
|
36
36
|
__reExport(src_exports, require("./esmIndex"), module.exports);
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,28 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
|
|
25
|
+
// src/cjsIndex.ts
|
|
26
|
+
var import_lodash = __toESM(require("lodash"), 1);
|
|
27
|
+
module.exports = import_lodash.default;
|
|
28
|
+
//# sourceMappingURL=cjsIndex.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oBAAmB;AAEnB,OAAO,UAAU,cAAAA;","names":["lodash"]}
|
package/dist/node/cjsIndex.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
|
|
25
1
|
// src/cjsIndex.ts
|
|
26
|
-
|
|
27
|
-
module.exports =
|
|
2
|
+
import lodash from "lodash";
|
|
3
|
+
module.exports = lodash;
|
|
28
4
|
//# sourceMappingURL=cjsIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":";AACA,OAAO,YAAY;AAEnB,OAAO,UAAU;","names":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/esmIndex.ts
|
|
32
|
+
var esmIndex_exports = {};
|
|
33
|
+
__export(esmIndex_exports, {
|
|
34
|
+
default: () => esmIndex_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(esmIndex_exports);
|
|
37
|
+
var lodash = __toESM(require("lodash-es"), 1);
|
|
38
|
+
__reExport(esmIndex_exports, require("lodash-es"), module.exports);
|
|
39
|
+
var esmIndex_default = lodash;
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
...require("lodash-es")
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=esmIndex.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/esmIndex.ts"],"sourcesContent":["import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/esmIndex.ts"],"sourcesContent":["import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAAwB;AACxB,6BAAc,sBADd;AAIA,IAAO,mBAAQ;","names":[]}
|
package/dist/node/esmIndex.js
CHANGED
|
@@ -1,44 +1,8 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
1
|
// src/esmIndex.ts
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
default: () => esmIndex_default
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(esmIndex_exports);
|
|
37
|
-
var lodash = __toESM(require("lodash-es"));
|
|
38
|
-
__reExport(esmIndex_exports, require("lodash-es"), module.exports);
|
|
2
|
+
import * as lodash from "lodash-es";
|
|
3
|
+
export * from "lodash-es";
|
|
39
4
|
var esmIndex_default = lodash;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
5
|
+
export {
|
|
6
|
+
esmIndex_default as default
|
|
7
|
+
};
|
|
44
8
|
//# sourceMappingURL=esmIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/esmIndex.ts"],"sourcesContent":["import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/esmIndex.ts"],"sourcesContent":["import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";AAAA,YAAY,YAAY;AACxB,cAAc;AAGd,IAAO,mBAAQ;","names":[]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
8
|
var __export = (target, all) => {
|
|
11
9
|
for (var name in all)
|
|
12
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -28,36 +26,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
27
|
mod
|
|
30
28
|
));
|
|
31
|
-
|
|
32
|
-
// src/cjsIndex.ts
|
|
33
|
-
import lodash from "lodash";
|
|
34
|
-
var require_cjsIndex = __commonJS({
|
|
35
|
-
"src/cjsIndex.ts"(exports, module) {
|
|
36
|
-
"use strict";
|
|
37
|
-
module.exports = lodash;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
40
30
|
|
|
41
31
|
// src/index.ts
|
|
42
32
|
var src_exports = {};
|
|
43
33
|
__export(src_exports, {
|
|
44
|
-
lodashCjs: () =>
|
|
34
|
+
lodashCjs: () => cjsIndex_exports
|
|
45
35
|
});
|
|
46
|
-
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
|
|
38
|
+
// src/cjsIndex.ts
|
|
39
|
+
var cjsIndex_exports = {};
|
|
40
|
+
var import_lodash = __toESM(require("lodash"), 1);
|
|
41
|
+
module.exports = import_lodash.default;
|
|
47
42
|
|
|
48
43
|
// src/esmIndex.ts
|
|
49
44
|
var esmIndex_exports = {};
|
|
50
45
|
__export(esmIndex_exports, {
|
|
51
46
|
default: () => esmIndex_default
|
|
52
47
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
import * as lodash_es_star from "lodash-es";
|
|
48
|
+
var lodash2 = __toESM(require("lodash-es"), 1);
|
|
49
|
+
__reExport(esmIndex_exports, require("lodash-es"));
|
|
56
50
|
var esmIndex_default = lodash2;
|
|
57
51
|
|
|
58
52
|
// src/index.ts
|
|
59
|
-
__reExport(src_exports, esmIndex_exports);
|
|
60
|
-
export
|
|
53
|
+
__reExport(src_exports, esmIndex_exports, module.exports);
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
61
56
|
lodashCjs
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=index.
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/cjsIndex.ts","../../src/esmIndex.ts"],"sourcesContent":["export * as lodashCjs from './cjsIndex'\nexport * from './esmIndex'\n","/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n","import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AACA,oBAAmB;AAEnB,OAAO,UAAU,cAAAA;;;ACHjB;AAAA;AAAA;AAAA;AAAA,IAAAC,UAAwB;AACxB,6BAAc;AAGd,IAAO,mBAAQA;;;AFHf,wBAAc,kBADd;","names":["lodash","lodash"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
1
|
var __defProp = Object.defineProperty;
|
|
4
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
5
|
var __export = (target, all) => {
|
|
12
6
|
for (var name in all)
|
|
13
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -21,46 +15,31 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
15
|
return to;
|
|
22
16
|
};
|
|
23
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
-
mod
|
|
31
|
-
));
|
|
32
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
-
|
|
34
|
-
// src/cjsIndex.ts
|
|
35
|
-
var require_cjsIndex = __commonJS({
|
|
36
|
-
"src/cjsIndex.ts"(exports, module2) {
|
|
37
|
-
"use strict";
|
|
38
|
-
var import_lodash = __toESM(require("lodash"));
|
|
39
|
-
module2.exports = import_lodash.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
18
|
|
|
43
19
|
// src/index.ts
|
|
44
20
|
var src_exports = {};
|
|
45
21
|
__export(src_exports, {
|
|
46
|
-
lodashCjs: () =>
|
|
22
|
+
lodashCjs: () => cjsIndex_exports
|
|
47
23
|
});
|
|
48
|
-
|
|
49
|
-
|
|
24
|
+
|
|
25
|
+
// src/cjsIndex.ts
|
|
26
|
+
var cjsIndex_exports = {};
|
|
27
|
+
import lodash from "lodash";
|
|
28
|
+
module.exports = lodash;
|
|
50
29
|
|
|
51
30
|
// src/esmIndex.ts
|
|
52
31
|
var esmIndex_exports = {};
|
|
53
32
|
__export(esmIndex_exports, {
|
|
54
33
|
default: () => esmIndex_default
|
|
55
34
|
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
__reExport(esmIndex_exports, lodash_es_star);
|
|
36
|
+
import * as lodash2 from "lodash-es";
|
|
37
|
+
import * as lodash_es_star from "lodash-es";
|
|
38
|
+
var esmIndex_default = lodash2;
|
|
59
39
|
|
|
60
40
|
// src/index.ts
|
|
61
|
-
__reExport(src_exports, esmIndex_exports
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
41
|
+
__reExport(src_exports, esmIndex_exports);
|
|
42
|
+
export {
|
|
43
|
+
cjsIndex_exports as lodashCjs
|
|
44
|
+
};
|
|
66
45
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/cjsIndex.ts","../../src/esmIndex.ts"],"sourcesContent":["export * as lodashCjs from './cjsIndex'\nexport * from './esmIndex'\n","/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n","import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA;AACA,OAAO,YAAY;AAEnB,OAAO,UAAU;;;ACHjB;AAAA;AAAA;AAAA;AACA;AADA,YAAYA,aAAY;AACxB,gCAAc;AAGd,IAAO,mBAAQA;;;AFHf,wBAAc;","names":["lodash"]}
|
package/package.json
CHANGED
|
@@ -12,16 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
14
14
|
"docs": "dist/docs.json",
|
|
15
|
-
"types": "dist/node/esmIndex.d.ts",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": {
|
|
18
17
|
"require": {
|
|
19
18
|
"types": "./dist/node/esmIndex.d.ts",
|
|
20
|
-
"default": "./dist/node/cjsIndex.
|
|
19
|
+
"default": "./dist/node/cjsIndex.cjs"
|
|
21
20
|
},
|
|
22
21
|
"import": {
|
|
23
22
|
"types": "./dist/node/esmIndex.d.mts",
|
|
24
|
-
"default": "./dist/node/esmIndex.
|
|
23
|
+
"default": "./dist/node/esmIndex.js"
|
|
25
24
|
}
|
|
26
25
|
},
|
|
27
26
|
"./docs": {
|
|
@@ -29,8 +28,9 @@
|
|
|
29
28
|
},
|
|
30
29
|
"./package.json": "./package.json"
|
|
31
30
|
},
|
|
32
|
-
"main": "dist/node/
|
|
33
|
-
"
|
|
31
|
+
"main": "./dist/node/index.cjs",
|
|
32
|
+
"types": "./dist/node/index.d.ts",
|
|
33
|
+
"module": "./dist/node/index.js",
|
|
34
34
|
"homepage": "https://xylabs.com",
|
|
35
35
|
"keywords": [
|
|
36
36
|
"xylabs",
|
|
@@ -61,10 +61,11 @@
|
|
|
61
61
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": false,
|
|
64
|
-
"version": "2.
|
|
64
|
+
"version": "2.12.2",
|
|
65
65
|
"xy": {
|
|
66
66
|
"compile": {
|
|
67
67
|
"depth": 1
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"type": "module"
|
|
70
71
|
}
|
package/dist/node/cjsIndex.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// src/cjsIndex.ts
|
|
7
|
-
import lodash from "lodash";
|
|
8
|
-
var require_cjsIndex = __commonJS({
|
|
9
|
-
"src/cjsIndex.ts"(exports, module) {
|
|
10
|
-
module.exports = lodash;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
export default require_cjsIndex();
|
|
14
|
-
//# sourceMappingURL=cjsIndex.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cjsIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n"],"mappings":";;;;;;AACA,OAAO,YAAY;AADnB;AAAA;AAGA,WAAO,UAAU;AAAA;AAAA;","names":[]}
|
package/dist/node/esmIndex.mjs
DELETED
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cjsIndex.ts","../../src/index.ts","../../src/esmIndex.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nimport lodash from 'lodash'\n\nmodule.exports = lodash\n","export * as lodashCjs from './cjsIndex'\nexport * from './esmIndex'\n","import * as lodash from 'lodash-es'\nexport * from 'lodash-es'\n\n// eslint-disable-next-line import/no-default-export\nexport default lodash\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,YAAY;AADnB;AAAA;AAAA;AAGA,WAAO,UAAU;AAAA;AAAA;;;ACHjB;AAAA;AAAA;AAAA;AAAA,gBAA2B;;;ACA3B;AAAA;AAAA;AAAA;AACA;AADA,YAAYA,aAAY;AACxB,gCAAc;AAGd,IAAO,mBAAQA;;;ADHf,wBAAc;","names":["lodash"]}
|