@lerna-lite/core 1.15.1 → 1.16.1
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/child-process.d.ts +62 -62
- package/dist/child-process.js +164 -166
- package/dist/child-process.js.map +1 -1
- package/dist/command.d.ts +37 -37
- package/dist/command.js +269 -271
- package/dist/command.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +15 -28
- package/dist/index.js.map +1 -1
- package/dist/models/command-options.d.ts +345 -341
- package/dist/models/command-options.js +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +5 -18
- package/dist/models/index.js.map +1 -1
- package/dist/models/interfaces.d.ts +175 -173
- package/dist/models/interfaces.js +2 -2
- package/dist/package-graph/index.d.ts +2 -2
- package/dist/package-graph/index.js +5 -18
- package/dist/package-graph/index.js.map +1 -1
- package/dist/package-graph/lib/cyclic-package-graph-node.d.ts +42 -42
- package/dist/package-graph/lib/cyclic-package-graph-node.js +97 -97
- package/dist/package-graph/lib/index.d.ts +3 -3
- package/dist/package-graph/lib/index.js +6 -19
- package/dist/package-graph/lib/index.js.map +1 -1
- package/dist/package-graph/lib/package-graph-node.d.ts +33 -33
- package/dist/package-graph/lib/package-graph-node.js +56 -58
- package/dist/package-graph/lib/package-graph-node.js.map +1 -1
- package/dist/package-graph/lib/report-cycles.d.ts +1 -1
- package/dist/package-graph/lib/report-cycles.js +17 -19
- package/dist/package-graph/lib/report-cycles.js.map +1 -1
- package/dist/package-graph/package-graph.d.ts +79 -79
- package/dist/package-graph/package-graph.js +269 -271
- package/dist/package-graph/package-graph.js.map +1 -1
- package/dist/package.d.ts +113 -113
- package/dist/package.js +352 -354
- package/dist/package.js.map +1 -1
- package/dist/project/index.d.ts +2 -2
- package/dist/project/index.js +5 -18
- package/dist/project/index.js.map +1 -1
- package/dist/project/lib/apply-extends.d.ts +10 -10
- package/dist/project/lib/apply-extends.js +36 -38
- package/dist/project/lib/apply-extends.js.map +1 -1
- package/dist/project/lib/index.d.ts +3 -3
- package/dist/project/lib/index.js +6 -19
- package/dist/project/lib/index.js.map +1 -1
- package/dist/project/lib/make-file-finder.d.ts +3 -3
- package/dist/project/lib/make-file-finder.js +69 -71
- package/dist/project/lib/make-file-finder.js.map +1 -1
- package/dist/project/lib/shallow-extend.d.ts +11 -11
- package/dist/project/lib/shallow-extend.js +24 -24
- package/dist/project/project.d.ts +46 -46
- package/dist/project/project.js +195 -197
- package/dist/project/project.js.map +1 -1
- package/dist/prompt.d.ts +23 -23
- package/dist/prompt.js +73 -75
- package/dist/prompt.js.map +1 -1
- package/dist/utils/check-working-tree.d.ts +9 -9
- package/dist/utils/check-working-tree.js +41 -41
- package/dist/utils/clean-stack.d.ts +5 -5
- package/dist/utils/clean-stack.js +18 -18
- package/dist/utils/collect-uncommitted.d.ts +17 -17
- package/dist/utils/collect-uncommitted.js +37 -39
- package/dist/utils/collect-uncommitted.js.map +1 -1
- package/dist/utils/collect-updates/__helpers__/build-graph.d.ts +3 -3
- package/dist/utils/collect-updates/__helpers__/build-graph.js +74 -74
- package/dist/utils/collect-updates/collect-updates.d.ts +11 -11
- package/dist/utils/collect-updates/collect-updates.js +89 -89
- package/dist/utils/collect-updates/collect-updates.js.map +1 -1
- package/dist/utils/collect-updates/index.d.ts +2 -2
- package/dist/utils/collect-updates/index.js +5 -18
- package/dist/utils/collect-updates/index.js.map +1 -1
- package/dist/utils/collect-updates/lib/collect-dependents.d.ts +11 -11
- package/dist/utils/collect-updates/lib/collect-dependents.js +45 -45
- package/dist/utils/collect-updates/lib/collect-packages.d.ts +13 -13
- package/dist/utils/collect-updates/lib/collect-packages.js +33 -33
- package/dist/utils/collect-updates/lib/get-packages-for-option.d.ts +5 -5
- package/dist/utils/collect-updates/lib/get-packages-for-option.js +30 -30
- package/dist/utils/collect-updates/lib/has-tags.d.ts +7 -7
- package/dist/utils/collect-updates/lib/has-tags.js +30 -32
- package/dist/utils/collect-updates/lib/has-tags.js.map +1 -1
- package/dist/utils/collect-updates/lib/index.d.ts +5 -5
- package/dist/utils/collect-updates/lib/index.js +8 -21
- package/dist/utils/collect-updates/lib/index.js.map +1 -1
- package/dist/utils/collect-updates/lib/make-diff-predicate.d.ts +9 -7
- package/dist/utils/collect-updates/lib/make-diff-predicate.js +74 -63
- package/dist/utils/collect-updates/lib/make-diff-predicate.js.map +1 -1
- package/dist/utils/conf.d.ts +25 -25
- package/dist/utils/conf.js +253 -255
- package/dist/utils/conf.js.map +1 -1
- package/dist/utils/defaults.d.ts +1 -1
- package/dist/utils/defaults.js +180 -182
- package/dist/utils/defaults.js.map +1 -1
- package/dist/utils/describe-ref.d.ts +13 -13
- package/dist/utils/describe-ref.js +86 -88
- package/dist/utils/describe-ref.js.map +1 -1
- package/dist/utils/env-replace.d.ts +1 -1
- package/dist/utils/env-replace.js +22 -22
- package/dist/utils/find-prefix.d.ts +2 -2
- package/dist/utils/find-prefix.js +46 -48
- package/dist/utils/find-prefix.js.map +1 -1
- package/dist/utils/index.d.ts +22 -22
- package/dist/utils/index.js +26 -39
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/log-package-error.d.ts +5 -5
- package/dist/utils/log-package-error.js +33 -35
- package/dist/utils/log-package-error.js.map +1 -1
- package/dist/utils/nerf-dart.d.ts +1 -1
- package/dist/utils/nerf-dart.js +16 -18
- package/dist/utils/nerf-dart.js.map +1 -1
- package/dist/utils/npm-conf.d.ts +4 -4
- package/dist/utils/npm-conf.js +53 -78
- package/dist/utils/npm-conf.js.map +1 -1
- package/dist/utils/object-utils.d.ts +21 -21
- package/dist/utils/object-utils.js +51 -53
- package/dist/utils/object-utils.js.map +1 -1
- package/dist/utils/output.d.ts +1 -1
- package/dist/utils/output.js +11 -13
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/parse-field.d.ts +1 -1
- package/dist/utils/parse-field.js +63 -65
- package/dist/utils/parse-field.js.map +1 -1
- package/dist/utils/prerelease-id-from-version.d.ts +5 -5
- package/dist/utils/prerelease-id-from-version.js +13 -15
- package/dist/utils/prerelease-id-from-version.js.map +1 -1
- package/dist/utils/pulse-till-done.d.ts +1 -1
- package/dist/utils/pulse-till-done.js +38 -40
- package/dist/utils/pulse-till-done.js.map +1 -1
- package/dist/utils/query-graph.d.ts +36 -36
- package/dist/utils/query-graph.js +77 -77
- package/dist/utils/run-lifecycle.d.ts +10 -10
- package/dist/utils/run-lifecycle.js +138 -140
- package/dist/utils/run-lifecycle.js.map +1 -1
- package/dist/utils/run-topologically.d.ts +12 -12
- package/dist/utils/run-topologically.js +34 -36
- package/dist/utils/run-topologically.js.map +1 -1
- package/dist/utils/string-utils.d.ts +2 -2
- package/dist/utils/string-utils.js +9 -9
- package/dist/utils/types.d.ts +128 -131
- package/dist/utils/types.js +136 -138
- package/dist/utils/types.js.map +1 -1
- package/dist/utils/warn-if-hanging.d.ts +1 -1
- package/dist/utils/warn-if-hanging.js +15 -17
- package/dist/utils/warn-if-hanging.js.map +1 -1
- package/dist/utils/write-log-file.d.ts +1 -1
- package/dist/utils/write-log-file.js +30 -32
- package/dist/utils/write-log-file.js.map +1 -1
- package/dist/validation-error.d.ts +4 -4
- package/dist/validation-error.js +16 -18
- package/dist/validation-error.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.envReplace = void 0;
|
|
4
|
-
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L409-L423
|
|
5
|
-
function envReplace(str) {
|
|
6
|
-
if (typeof str !== 'string' || !str) {
|
|
7
|
-
return str;
|
|
8
|
-
}
|
|
9
|
-
// Replace any ${ENV} values with the appropriate environment
|
|
10
|
-
const regex = /(\\*)\$\{([^}]+)\}/g;
|
|
11
|
-
return str.replace(regex, (orig, esc, name) => {
|
|
12
|
-
var _a;
|
|
13
|
-
if (esc.length > 0 && esc.length % 2) {
|
|
14
|
-
return orig;
|
|
15
|
-
}
|
|
16
|
-
if (!name || process.env[name] === undefined) {
|
|
17
|
-
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
18
|
-
}
|
|
19
|
-
return (_a = process.env[name]) !== null && _a !== void 0 ? _a : '';
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
exports.envReplace = envReplace;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.envReplace = void 0;
|
|
4
|
+
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L409-L423
|
|
5
|
+
function envReplace(str) {
|
|
6
|
+
if (typeof str !== 'string' || !str) {
|
|
7
|
+
return str;
|
|
8
|
+
}
|
|
9
|
+
// Replace any ${ENV} values with the appropriate environment
|
|
10
|
+
const regex = /(\\*)\$\{([^}]+)\}/g;
|
|
11
|
+
return str.replace(regex, (orig, esc, name) => {
|
|
12
|
+
var _a;
|
|
13
|
+
if (esc.length > 0 && esc.length % 2) {
|
|
14
|
+
return orig;
|
|
15
|
+
}
|
|
16
|
+
if (!name || process.env[name] === undefined) {
|
|
17
|
+
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
18
|
+
}
|
|
19
|
+
return (_a = process.env[name]) !== null && _a !== void 0 ? _a : '';
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.envReplace = envReplace;
|
|
23
23
|
//# sourceMappingURL=env-replace.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function findPrefix(start: string): any;
|
|
2
|
-
export declare function find(name: string, original: string): any;
|
|
1
|
+
export declare function findPrefix(start: string): any;
|
|
2
|
+
export declare function find(name: string, original: string): any;
|
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
exports.find = find;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.find = exports.findPrefix = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
+
// https://github.com/npm/npm/blob/876f0c8/lib/config/find-prefix.js
|
|
8
|
+
function findPrefix(start) {
|
|
9
|
+
let dir = path_1.default.resolve(start);
|
|
10
|
+
let walkedUp = false;
|
|
11
|
+
while (path_1.default.basename(dir) === 'node_modules') {
|
|
12
|
+
dir = path_1.default.dirname(dir);
|
|
13
|
+
walkedUp = true;
|
|
14
|
+
}
|
|
15
|
+
if (walkedUp) {
|
|
16
|
+
return dir;
|
|
17
|
+
}
|
|
18
|
+
return find(dir, dir);
|
|
19
|
+
}
|
|
20
|
+
exports.findPrefix = findPrefix;
|
|
21
|
+
function find(name, original) {
|
|
22
|
+
if (name === '/' || (process.platform === 'win32' && /^[a-zA-Z]:(\\|\/)?$/.test(name))) {
|
|
23
|
+
return original;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
const files = fs_1.default.readdirSync(name);
|
|
27
|
+
if (files.indexOf('node_modules') !== -1 || files.indexOf('package.json') !== -1) {
|
|
28
|
+
return name;
|
|
29
|
+
}
|
|
30
|
+
const dirname = path_1.default.dirname(name);
|
|
31
|
+
if (dirname === name) {
|
|
32
|
+
return original;
|
|
33
|
+
}
|
|
34
|
+
return find(dirname, original);
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
if (name === original) {
|
|
38
|
+
if (err.code === 'ENOENT') {
|
|
39
|
+
return original;
|
|
40
|
+
}
|
|
41
|
+
throw err;
|
|
42
|
+
}
|
|
43
|
+
return original;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.find = find;
|
|
49
47
|
//# sourceMappingURL=find-prefix.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-prefix.js","sourceRoot":"","sources":["../../src/utils/find-prefix.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-prefix.js","sourceRoot":"","sources":["../../src/utils/find-prefix.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,wDAAwB;AAExB,oEAAoE;AACpE,SAAgB,UAAU,CAAC,KAAa;IACtC,IAAI,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,QAAQ,GAAG,KAAK,CAAC;IAErB,OAAO,cAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,cAAc,EAAE;QAC5C,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACxB,QAAQ,GAAG,IAAI,CAAC;KACjB;IAED,IAAI,QAAQ,EAAE;QACZ,OAAO,GAAG,CAAC;KACZ;IAED,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACxB,CAAC;AAdD,gCAcC;AAED,SAAgB,IAAI,CAAC,IAAY,EAAE,QAAgB;IACjD,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QACtF,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI;QACF,MAAM,KAAK,GAAG,YAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE;YAChF,OAAO,IAAI,CAAC;SACb;QAED,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,OAAO,KAAK,IAAI,EAAE;YACpB,OAAO,QAAQ,CAAC;SACjB;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;KAChC;IAAC,OAAO,GAAQ,EAAE;QACjB,IAAI,IAAI,KAAK,QAAQ,EAAE;YACrB,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACzB,OAAO,QAAQ,CAAC;aACjB;YAED,MAAM,GAAG,CAAC;SACX;QAED,OAAO,QAAQ,CAAC;KACjB;AACH,CAAC;AA9BD,oBA8BC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './collect-updates';
|
|
2
|
-
export * from './check-working-tree';
|
|
3
|
-
export * from './clean-stack';
|
|
4
|
-
export * from './collect-uncommitted';
|
|
5
|
-
export * from './defaults';
|
|
6
|
-
export * from './describe-ref';
|
|
7
|
-
export * from './env-replace';
|
|
8
|
-
export * from './find-prefix';
|
|
9
|
-
export * from './log-package-error';
|
|
10
|
-
export * from './npm-conf';
|
|
11
|
-
export * from './object-utils';
|
|
12
|
-
export * from './output';
|
|
13
|
-
export * from './parse-field';
|
|
14
|
-
export * from './prerelease-id-from-version';
|
|
15
|
-
export * from './pulse-till-done';
|
|
16
|
-
export * from './query-graph';
|
|
17
|
-
export * from './run-lifecycle';
|
|
18
|
-
export * from './run-topologically';
|
|
19
|
-
export * from './string-utils';
|
|
20
|
-
export * from './types';
|
|
21
|
-
export * from './warn-if-hanging';
|
|
22
|
-
export * from './write-log-file';
|
|
1
|
+
export * from './collect-updates';
|
|
2
|
+
export * from './check-working-tree';
|
|
3
|
+
export * from './clean-stack';
|
|
4
|
+
export * from './collect-uncommitted';
|
|
5
|
+
export * from './defaults';
|
|
6
|
+
export * from './describe-ref';
|
|
7
|
+
export * from './env-replace';
|
|
8
|
+
export * from './find-prefix';
|
|
9
|
+
export * from './log-package-error';
|
|
10
|
+
export * from './npm-conf';
|
|
11
|
+
export * from './object-utils';
|
|
12
|
+
export * from './output';
|
|
13
|
+
export * from './parse-field';
|
|
14
|
+
export * from './prerelease-id-from-version';
|
|
15
|
+
export * from './pulse-till-done';
|
|
16
|
+
export * from './query-graph';
|
|
17
|
+
export * from './run-lifecycle';
|
|
18
|
+
export * from './run-topologically';
|
|
19
|
+
export * from './string-utils';
|
|
20
|
+
export * from './types';
|
|
21
|
+
export * from './warn-if-hanging';
|
|
22
|
+
export * from './write-log-file';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,40 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./log-
|
|
27
|
-
__exportStar(require("./npm-conf"), exports);
|
|
28
|
-
__exportStar(require("./object-utils"), exports);
|
|
29
|
-
__exportStar(require("./output"), exports);
|
|
30
|
-
__exportStar(require("./parse-field"), exports);
|
|
31
|
-
__exportStar(require("./prerelease-id-from-version"), exports);
|
|
32
|
-
__exportStar(require("./pulse-till-done"), exports);
|
|
33
|
-
__exportStar(require("./query-graph"), exports);
|
|
34
|
-
__exportStar(require("./run-lifecycle"), exports);
|
|
35
|
-
__exportStar(require("./run-topologically"), exports);
|
|
36
|
-
__exportStar(require("./string-utils"), exports);
|
|
37
|
-
__exportStar(require("./types"), exports);
|
|
38
|
-
__exportStar(require("./warn-if-hanging"), exports);
|
|
39
|
-
__exportStar(require("./write-log-file"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./collect-updates"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./check-working-tree"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./clean-stack"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./collect-uncommitted"), exports);
|
|
8
|
+
// eslint-disable-next-line import/export
|
|
9
|
+
tslib_1.__exportStar(require("./defaults"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./describe-ref"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./env-replace"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./find-prefix"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./log-package-error"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./npm-conf"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./object-utils"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./output"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./parse-field"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./prerelease-id-from-version"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./pulse-till-done"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./query-graph"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./run-lifecycle"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./run-topologically"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./string-utils"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./warn-if-hanging"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./write-log-file"), exports);
|
|
40
27
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,+DAAqC;AACrC,wDAA8B;AAC9B,gEAAsC;AACtC,yCAAyC;AACzC,qDAA2B;AAC3B,yDAA+B;AAC/B,wDAA8B;AAC9B,wDAA8B;AAC9B,8DAAoC;AACpC,qDAA2B;AAC3B,yDAA+B;AAC/B,mDAAyB;AACzB,wDAA8B;AAC9B,uEAA6C;AAC7C,4DAAkC;AAClC,wDAA8B;AAC9B,0DAAgC;AAChC,8DAAoC;AACpC,yDAA+B;AAC/B,kDAAwB;AACxB,4DAAkC;AAClC,2DAAiC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
3
|
-
* @param {boolean} stream
|
|
4
|
-
*/
|
|
5
|
-
export declare function logPackageError(err: any, stream?: boolean): void;
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
3
|
+
* @param {boolean} stream
|
|
4
|
+
*/
|
|
5
|
+
export declare function logPackageError(err: any, stream?: boolean): void;
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
npmlog_1.default.
|
|
33
|
-
|
|
34
|
-
npmlog_1.default.resume();
|
|
35
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logPackageError = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
|
|
6
|
+
/**
|
|
7
|
+
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
8
|
+
* @param {boolean} stream
|
|
9
|
+
*/
|
|
10
|
+
function logPackageError(err, stream = false) {
|
|
11
|
+
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
12
|
+
if (stream) {
|
|
13
|
+
// Streaming has already printed all stdout/stderr
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (err.stdout) {
|
|
17
|
+
npmlog_1.default.error(err.command, 'stdout:');
|
|
18
|
+
directLog(err.stdout);
|
|
19
|
+
}
|
|
20
|
+
if (err.stderr) {
|
|
21
|
+
npmlog_1.default.error(err.command, 'stderr:');
|
|
22
|
+
directLog(err.stderr);
|
|
23
|
+
}
|
|
24
|
+
// Below is just to ensure something sensible is printed after the long stream of logs
|
|
25
|
+
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
26
|
+
}
|
|
27
|
+
exports.logPackageError = logPackageError;
|
|
28
|
+
/** @param {string} message */
|
|
29
|
+
function directLog(message) {
|
|
30
|
+
npmlog_1.default.pause();
|
|
31
|
+
console.error(message); // eslint-disable-line no-console
|
|
32
|
+
npmlog_1.default.resume();
|
|
33
|
+
}
|
|
36
34
|
//# sourceMappingURL=log-package-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-package-error.js","sourceRoot":"","sources":["../../src/utils/log-package-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-package-error.js","sourceRoot":"","sources":["../../src/utils/log-package-error.ts"],"names":[],"mappings":";;;;AAAA,4DAAyB;AAEzB;;;GAGG;AACH,SAAgB,eAAe,CAAC,GAAQ,EAAE,MAAM,GAAG,KAAK;IACtD,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,CAAC,QAAQ,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC;IAEtE,IAAI,MAAM,EAAE;QACV,kDAAkD;QAClD,OAAO;KACR;IAED,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;IAED,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACvB;IAED,sFAAsF;IACtF,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,CAAC,QAAQ,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC;AACxE,CAAC;AApBD,0CAoBC;AAED,8BAA8B;AAC9B,SAAS,SAAS,CAAC,OAAe;IAChC,gBAAG,CAAC,KAAK,EAAE,CAAC;IACZ,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,iCAAiC;IACzD,gBAAG,CAAC,MAAM,EAAE,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function toNerfDart(uri: any): string;
|
|
1
|
+
export declare function toNerfDart(uri: any): string;
|
package/dist/utils/nerf-dart.js
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
delete parsed.
|
|
12
|
-
delete parsed.
|
|
13
|
-
delete parsed.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
exports.toNerfDart = toNerfDart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toNerfDart = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const url_1 = tslib_1.__importDefault(require("url"));
|
|
6
|
+
// https://github.com/npm/npm/blob/0cc9d89/lib/config/nerf-dart.js
|
|
7
|
+
function toNerfDart(uri) {
|
|
8
|
+
const parsed = url_1.default.parse(uri);
|
|
9
|
+
delete parsed.protocol;
|
|
10
|
+
delete parsed.auth;
|
|
11
|
+
delete parsed.query;
|
|
12
|
+
delete parsed.search;
|
|
13
|
+
delete parsed.hash;
|
|
14
|
+
return url_1.default.resolve(url_1.default.format(parsed), '.');
|
|
15
|
+
}
|
|
16
|
+
exports.toNerfDart = toNerfDart;
|
|
19
17
|
//# sourceMappingURL=nerf-dart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nerf-dart.js","sourceRoot":"","sources":["../../src/utils/nerf-dart.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nerf-dart.js","sourceRoot":"","sources":["../../src/utils/nerf-dart.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,kEAAkE;AAClE,SAAgB,UAAU,CAAC,GAAG;IAC5B,MAAM,MAAM,GAAG,aAAG,CAAC,KAAK,CAAC,GAAG,CAAQ,CAAC;IAErC,OAAO,MAAM,CAAC,QAAQ,CAAC;IACvB,OAAO,MAAM,CAAC,IAAI,CAAC;IACnB,OAAO,MAAM,CAAC,KAAK,CAAC;IACpB,OAAO,MAAM,CAAC,MAAM,CAAC;IACrB,OAAO,MAAM,CAAC,IAAI,CAAC;IAEnB,OAAO,aAAG,CAAC,OAAO,CAAC,aAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC;AAVD,gCAUC"}
|
package/dist/utils/npm-conf.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Conf } from '../utils/conf';
|
|
2
|
-
import { toNerfDart } from './nerf-dart';
|
|
3
|
-
declare function npmConf(opts: any): Conf;
|
|
4
|
-
export { Conf, npmConf, toNerfDart };
|
|
1
|
+
import { Conf } from '../utils/conf';
|
|
2
|
+
import { toNerfDart } from './nerf-dart';
|
|
3
|
+
declare function npmConf(opts: any): Conf;
|
|
4
|
+
export { Conf, npmConf, toNerfDart };
|
package/dist/utils/npm-conf.js
CHANGED
|
@@ -1,79 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
conf
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const userConf = conf.get('userconfig');
|
|
55
|
-
/* istanbul ignore else */
|
|
56
|
-
if (!conf.get('global') && projectConf !== userConf) {
|
|
57
|
-
conf.addFile(projectConf, 'project');
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
conf.add({}, 'project');
|
|
61
|
-
}
|
|
62
|
-
conf.addFile(conf.get('userconfig'), 'user');
|
|
63
|
-
/* istanbul ignore else */
|
|
64
|
-
if (conf.get('prefix')) {
|
|
65
|
-
const etc = path_1.default.resolve(conf.get('prefix'), 'etc');
|
|
66
|
-
conf.root.globalconfig = path_1.default.resolve(etc, 'npmrc');
|
|
67
|
-
conf.root.globalignorefile = path_1.default.resolve(etc, 'npmignore');
|
|
68
|
-
}
|
|
69
|
-
conf.addFile(conf.get('globalconfig'), 'global');
|
|
70
|
-
conf.loadUser();
|
|
71
|
-
const caFile = conf.get('cafile');
|
|
72
|
-
/* istanbul ignore if */
|
|
73
|
-
if (caFile) {
|
|
74
|
-
conf.loadCAFile(caFile);
|
|
75
|
-
}
|
|
76
|
-
return conf;
|
|
77
|
-
}
|
|
78
|
-
exports.npmConf = npmConf;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toNerfDart = exports.npmConf = exports.Conf = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
+
const conf_1 = require("../utils/conf");
|
|
7
|
+
Object.defineProperty(exports, "Conf", { enumerable: true, get: function () { return conf_1.Conf; } });
|
|
8
|
+
const nerf_dart_1 = require("./nerf-dart");
|
|
9
|
+
Object.defineProperty(exports, "toNerfDart", { enumerable: true, get: function () { return nerf_dart_1.toNerfDart; } });
|
|
10
|
+
const defaults = tslib_1.__importStar(require("./defaults"));
|
|
11
|
+
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L101-L200
|
|
12
|
+
function npmConf(opts) {
|
|
13
|
+
const conf = new conf_1.Conf(Object.assign({}, defaults.defaults));
|
|
14
|
+
// prevent keys with undefined values from obscuring defaults
|
|
15
|
+
// prettier-ignore
|
|
16
|
+
const cleanOpts = opts
|
|
17
|
+
? Object.keys(opts).reduce((acc, key) => {
|
|
18
|
+
if (opts[key] !== undefined) {
|
|
19
|
+
// eslint-disable-next-line no-param-reassign
|
|
20
|
+
acc[key] = opts[key];
|
|
21
|
+
}
|
|
22
|
+
return acc;
|
|
23
|
+
}, {})
|
|
24
|
+
: {};
|
|
25
|
+
conf.add(cleanOpts, 'cli');
|
|
26
|
+
conf.addEnv();
|
|
27
|
+
conf.loadPrefix();
|
|
28
|
+
const projectConf = path_1.default.resolve(conf.localPrefix, '.npmrc');
|
|
29
|
+
const userConf = conf.get('userconfig');
|
|
30
|
+
/* istanbul ignore else */
|
|
31
|
+
if (!conf.get('global') && projectConf !== userConf) {
|
|
32
|
+
conf.addFile(projectConf, 'project');
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
conf.add({}, 'project');
|
|
36
|
+
}
|
|
37
|
+
conf.addFile(conf.get('userconfig'), 'user');
|
|
38
|
+
/* istanbul ignore else */
|
|
39
|
+
if (conf.get('prefix')) {
|
|
40
|
+
const etc = path_1.default.resolve(conf.get('prefix'), 'etc');
|
|
41
|
+
conf.root.globalconfig = path_1.default.resolve(etc, 'npmrc');
|
|
42
|
+
conf.root.globalignorefile = path_1.default.resolve(etc, 'npmignore');
|
|
43
|
+
}
|
|
44
|
+
conf.addFile(conf.get('globalconfig'), 'global');
|
|
45
|
+
conf.loadUser();
|
|
46
|
+
const caFile = conf.get('cafile');
|
|
47
|
+
/* istanbul ignore if */
|
|
48
|
+
if (caFile) {
|
|
49
|
+
conf.loadCAFile(caFile);
|
|
50
|
+
}
|
|
51
|
+
return conf;
|
|
52
|
+
}
|
|
53
|
+
exports.npmConf = npmConf;
|
|
79
54
|
//# sourceMappingURL=npm-conf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-conf.js","sourceRoot":"","sources":["../../src/utils/npm-conf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"npm-conf.js","sourceRoot":"","sources":["../../src/utils/npm-conf.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AAExB,wCAAqC;AAwD5B,qFAxDA,WAAI,OAwDA;AAvDb,2CAAyC;AAuDjB,2FAvDf,sBAAU,OAuDe;AAtDlC,6DAAuC;AAEvC,sEAAsE;AACtE,SAAS,OAAO,CAAC,IAAS;IACxB,MAAM,IAAI,GAAG,IAAI,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAG,QAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAErE,6DAA6D;IAC7D,kBAAkB;IAClB,MAAM,SAAS,GAAG,IAAI;QACpB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;gBAC3B,6CAA6C;gBAC7C,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;aACtB;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC;QACR,CAAC,CAAC,EAAE,CAAC;IAEP,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC3B,IAAI,CAAC,MAAM,EAAE,CAAC;IACd,IAAI,CAAC,UAAU,EAAE,CAAC;IAElB,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAExC,0BAA0B;IAC1B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,WAAW,KAAK,QAAQ,EAAE;QACnD,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;KACtC;SAAM;QACL,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;KACzB;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,0BAA0B;IAC1B,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACtB,MAAM,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;KAC7D;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAEhB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAElC,wBAAwB;IACxB,IAAI,MAAM,EAAE;QACV,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;KACzB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAEc,0BAAO"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* From a dot (.) notation path, find and delete a property within an object if found given a complex object path
|
|
3
|
-
* @param {Object} object - object to search from
|
|
4
|
-
* @param {String} path - complex object path to find descendant property from, must be a string with dot (.) notation
|
|
5
|
-
* @param {String} [sourceName] - source name of which object name to delete the field from.
|
|
6
|
-
*/
|
|
7
|
-
export declare function deleteComplexObjectProp(object: any, path: string, sourceName?: string): any;
|
|
8
|
-
/**
|
|
9
|
-
* From a dot (.) notation path, find and return a property within an object given a complex object path
|
|
10
|
-
* Note that the object path does should not include the parent itself
|
|
11
|
-
* for example if we want to get `address.zip` from `user` object, we would call `getComplexObjectValue(user, 'address.zip')`
|
|
12
|
-
* @param object - object to search from
|
|
13
|
-
* @param path - complex object path to find descendant property from, must be a string with dot (.) notation
|
|
14
|
-
* @returns outputValue - the object property value found if any
|
|
15
|
-
*/
|
|
16
|
-
export declare function getComplexObjectValue<T>(object: any, path: string): T;
|
|
17
|
-
/**
|
|
18
|
-
* Check if an object is empty
|
|
19
|
-
* @returns {Boolean}
|
|
20
|
-
*/
|
|
21
|
-
export declare function isEmpty(obj: object): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* From a dot (.) notation path, find and delete a property within an object if found given a complex object path
|
|
3
|
+
* @param {Object} object - object to search from
|
|
4
|
+
* @param {String} path - complex object path to find descendant property from, must be a string with dot (.) notation
|
|
5
|
+
* @param {String} [sourceName] - source name of which object name to delete the field from.
|
|
6
|
+
*/
|
|
7
|
+
export declare function deleteComplexObjectProp(object: any, path: string, sourceName?: string): any;
|
|
8
|
+
/**
|
|
9
|
+
* From a dot (.) notation path, find and return a property within an object given a complex object path
|
|
10
|
+
* Note that the object path does should not include the parent itself
|
|
11
|
+
* for example if we want to get `address.zip` from `user` object, we would call `getComplexObjectValue(user, 'address.zip')`
|
|
12
|
+
* @param object - object to search from
|
|
13
|
+
* @param path - complex object path to find descendant property from, must be a string with dot (.) notation
|
|
14
|
+
* @returns outputValue - the object property value found if any
|
|
15
|
+
*/
|
|
16
|
+
export declare function getComplexObjectValue<T>(object: any, path: string): T;
|
|
17
|
+
/**
|
|
18
|
+
* Check if an object is empty
|
|
19
|
+
* @returns {Boolean}
|
|
20
|
+
*/
|
|
21
|
+
export declare function isEmpty(obj: object): boolean;
|