@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.
Files changed (152) hide show
  1. package/dist/child-process.d.ts +62 -62
  2. package/dist/child-process.js +164 -166
  3. package/dist/child-process.js.map +1 -1
  4. package/dist/command.d.ts +37 -37
  5. package/dist/command.js +269 -271
  6. package/dist/command.js.map +1 -1
  7. package/dist/constants.d.ts +1 -1
  8. package/dist/constants.js +4 -4
  9. package/dist/index.d.ts +10 -10
  10. package/dist/index.js +15 -28
  11. package/dist/index.js.map +1 -1
  12. package/dist/models/command-options.d.ts +345 -341
  13. package/dist/models/command-options.js +2 -2
  14. package/dist/models/index.d.ts +2 -2
  15. package/dist/models/index.js +5 -18
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/models/interfaces.d.ts +175 -173
  18. package/dist/models/interfaces.js +2 -2
  19. package/dist/package-graph/index.d.ts +2 -2
  20. package/dist/package-graph/index.js +5 -18
  21. package/dist/package-graph/index.js.map +1 -1
  22. package/dist/package-graph/lib/cyclic-package-graph-node.d.ts +42 -42
  23. package/dist/package-graph/lib/cyclic-package-graph-node.js +97 -97
  24. package/dist/package-graph/lib/index.d.ts +3 -3
  25. package/dist/package-graph/lib/index.js +6 -19
  26. package/dist/package-graph/lib/index.js.map +1 -1
  27. package/dist/package-graph/lib/package-graph-node.d.ts +33 -33
  28. package/dist/package-graph/lib/package-graph-node.js +56 -58
  29. package/dist/package-graph/lib/package-graph-node.js.map +1 -1
  30. package/dist/package-graph/lib/report-cycles.d.ts +1 -1
  31. package/dist/package-graph/lib/report-cycles.js +17 -19
  32. package/dist/package-graph/lib/report-cycles.js.map +1 -1
  33. package/dist/package-graph/package-graph.d.ts +79 -79
  34. package/dist/package-graph/package-graph.js +269 -271
  35. package/dist/package-graph/package-graph.js.map +1 -1
  36. package/dist/package.d.ts +113 -113
  37. package/dist/package.js +352 -354
  38. package/dist/package.js.map +1 -1
  39. package/dist/project/index.d.ts +2 -2
  40. package/dist/project/index.js +5 -18
  41. package/dist/project/index.js.map +1 -1
  42. package/dist/project/lib/apply-extends.d.ts +10 -10
  43. package/dist/project/lib/apply-extends.js +36 -38
  44. package/dist/project/lib/apply-extends.js.map +1 -1
  45. package/dist/project/lib/index.d.ts +3 -3
  46. package/dist/project/lib/index.js +6 -19
  47. package/dist/project/lib/index.js.map +1 -1
  48. package/dist/project/lib/make-file-finder.d.ts +3 -3
  49. package/dist/project/lib/make-file-finder.js +69 -71
  50. package/dist/project/lib/make-file-finder.js.map +1 -1
  51. package/dist/project/lib/shallow-extend.d.ts +11 -11
  52. package/dist/project/lib/shallow-extend.js +24 -24
  53. package/dist/project/project.d.ts +46 -46
  54. package/dist/project/project.js +195 -197
  55. package/dist/project/project.js.map +1 -1
  56. package/dist/prompt.d.ts +23 -23
  57. package/dist/prompt.js +73 -75
  58. package/dist/prompt.js.map +1 -1
  59. package/dist/utils/check-working-tree.d.ts +9 -9
  60. package/dist/utils/check-working-tree.js +41 -41
  61. package/dist/utils/clean-stack.d.ts +5 -5
  62. package/dist/utils/clean-stack.js +18 -18
  63. package/dist/utils/collect-uncommitted.d.ts +17 -17
  64. package/dist/utils/collect-uncommitted.js +37 -39
  65. package/dist/utils/collect-uncommitted.js.map +1 -1
  66. package/dist/utils/collect-updates/__helpers__/build-graph.d.ts +3 -3
  67. package/dist/utils/collect-updates/__helpers__/build-graph.js +74 -74
  68. package/dist/utils/collect-updates/collect-updates.d.ts +11 -11
  69. package/dist/utils/collect-updates/collect-updates.js +89 -89
  70. package/dist/utils/collect-updates/collect-updates.js.map +1 -1
  71. package/dist/utils/collect-updates/index.d.ts +2 -2
  72. package/dist/utils/collect-updates/index.js +5 -18
  73. package/dist/utils/collect-updates/index.js.map +1 -1
  74. package/dist/utils/collect-updates/lib/collect-dependents.d.ts +11 -11
  75. package/dist/utils/collect-updates/lib/collect-dependents.js +45 -45
  76. package/dist/utils/collect-updates/lib/collect-packages.d.ts +13 -13
  77. package/dist/utils/collect-updates/lib/collect-packages.js +33 -33
  78. package/dist/utils/collect-updates/lib/get-packages-for-option.d.ts +5 -5
  79. package/dist/utils/collect-updates/lib/get-packages-for-option.js +30 -30
  80. package/dist/utils/collect-updates/lib/has-tags.d.ts +7 -7
  81. package/dist/utils/collect-updates/lib/has-tags.js +30 -32
  82. package/dist/utils/collect-updates/lib/has-tags.js.map +1 -1
  83. package/dist/utils/collect-updates/lib/index.d.ts +5 -5
  84. package/dist/utils/collect-updates/lib/index.js +8 -21
  85. package/dist/utils/collect-updates/lib/index.js.map +1 -1
  86. package/dist/utils/collect-updates/lib/make-diff-predicate.d.ts +9 -7
  87. package/dist/utils/collect-updates/lib/make-diff-predicate.js +74 -63
  88. package/dist/utils/collect-updates/lib/make-diff-predicate.js.map +1 -1
  89. package/dist/utils/conf.d.ts +25 -25
  90. package/dist/utils/conf.js +253 -255
  91. package/dist/utils/conf.js.map +1 -1
  92. package/dist/utils/defaults.d.ts +1 -1
  93. package/dist/utils/defaults.js +180 -182
  94. package/dist/utils/defaults.js.map +1 -1
  95. package/dist/utils/describe-ref.d.ts +13 -13
  96. package/dist/utils/describe-ref.js +86 -88
  97. package/dist/utils/describe-ref.js.map +1 -1
  98. package/dist/utils/env-replace.d.ts +1 -1
  99. package/dist/utils/env-replace.js +22 -22
  100. package/dist/utils/find-prefix.d.ts +2 -2
  101. package/dist/utils/find-prefix.js +46 -48
  102. package/dist/utils/find-prefix.js.map +1 -1
  103. package/dist/utils/index.d.ts +22 -22
  104. package/dist/utils/index.js +26 -39
  105. package/dist/utils/index.js.map +1 -1
  106. package/dist/utils/log-package-error.d.ts +5 -5
  107. package/dist/utils/log-package-error.js +33 -35
  108. package/dist/utils/log-package-error.js.map +1 -1
  109. package/dist/utils/nerf-dart.d.ts +1 -1
  110. package/dist/utils/nerf-dart.js +16 -18
  111. package/dist/utils/nerf-dart.js.map +1 -1
  112. package/dist/utils/npm-conf.d.ts +4 -4
  113. package/dist/utils/npm-conf.js +53 -78
  114. package/dist/utils/npm-conf.js.map +1 -1
  115. package/dist/utils/object-utils.d.ts +21 -21
  116. package/dist/utils/object-utils.js +51 -53
  117. package/dist/utils/object-utils.js.map +1 -1
  118. package/dist/utils/output.d.ts +1 -1
  119. package/dist/utils/output.js +11 -13
  120. package/dist/utils/output.js.map +1 -1
  121. package/dist/utils/parse-field.d.ts +1 -1
  122. package/dist/utils/parse-field.js +63 -65
  123. package/dist/utils/parse-field.js.map +1 -1
  124. package/dist/utils/prerelease-id-from-version.d.ts +5 -5
  125. package/dist/utils/prerelease-id-from-version.js +13 -15
  126. package/dist/utils/prerelease-id-from-version.js.map +1 -1
  127. package/dist/utils/pulse-till-done.d.ts +1 -1
  128. package/dist/utils/pulse-till-done.js +38 -40
  129. package/dist/utils/pulse-till-done.js.map +1 -1
  130. package/dist/utils/query-graph.d.ts +36 -36
  131. package/dist/utils/query-graph.js +77 -77
  132. package/dist/utils/run-lifecycle.d.ts +10 -10
  133. package/dist/utils/run-lifecycle.js +138 -140
  134. package/dist/utils/run-lifecycle.js.map +1 -1
  135. package/dist/utils/run-topologically.d.ts +12 -12
  136. package/dist/utils/run-topologically.js +34 -36
  137. package/dist/utils/run-topologically.js.map +1 -1
  138. package/dist/utils/string-utils.d.ts +2 -2
  139. package/dist/utils/string-utils.js +9 -9
  140. package/dist/utils/types.d.ts +128 -131
  141. package/dist/utils/types.js +136 -138
  142. package/dist/utils/types.js.map +1 -1
  143. package/dist/utils/warn-if-hanging.d.ts +1 -1
  144. package/dist/utils/warn-if-hanging.js +15 -17
  145. package/dist/utils/warn-if-hanging.js.map +1 -1
  146. package/dist/utils/write-log-file.d.ts +1 -1
  147. package/dist/utils/write-log-file.js +30 -32
  148. package/dist/utils/write-log-file.js.map +1 -1
  149. package/dist/validation-error.d.ts +4 -4
  150. package/dist/validation-error.js +16 -18
  151. package/dist/validation-error.js.map +1 -1
  152. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
- export * from './collect-packages';
2
- export * from './collect-dependents';
3
- export * from './get-packages-for-option';
4
- export * from './has-tags';
5
- export * from './make-diff-predicate';
1
+ export * from './collect-packages';
2
+ export * from './collect-dependents';
3
+ export * from './get-packages-for-option';
4
+ export * from './has-tags';
5
+ export * from './make-diff-predicate';
@@ -1,22 +1,9 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./collect-packages"), exports);
18
- __exportStar(require("./collect-dependents"), exports);
19
- __exportStar(require("./get-packages-for-option"), exports);
20
- __exportStar(require("./has-tags"), exports);
21
- __exportStar(require("./make-diff-predicate"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./collect-packages"), exports);
5
+ tslib_1.__exportStar(require("./collect-dependents"), exports);
6
+ tslib_1.__exportStar(require("./get-packages-for-option"), exports);
7
+ tslib_1.__exportStar(require("./has-tags"), exports);
8
+ tslib_1.__exportStar(require("./make-diff-predicate"), exports);
22
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/collect-updates/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,4DAA0C;AAC1C,6CAA2B;AAC3B,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/collect-updates/lib/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,+DAAqC;AACrC,oEAA0C;AAC1C,qDAA2B;AAC3B,gEAAsC"}
@@ -1,7 +1,9 @@
1
- import { ExecOpts } from '../../../models';
2
- /**
3
- * @param {string} committish
4
- * @param {import("@lerna/child-process").ExecOpts} execOpts
5
- * @param {string[]} ignorePatterns
6
- */
7
- export declare function makeDiffPredicate(committish: string, execOpts: ExecOpts, ignorePatterns?: string[]): (node: any) => boolean;
1
+ import { ExecOpts } from '../../../models';
2
+ /**
3
+ * @param {string} committish
4
+ * @param {import("@lerna/child-process").ExecOpts} execOpts
5
+ * @param {string[]} ignorePatterns
6
+ */
7
+ export declare function makeDiffPredicate(committish: string, execOpts: ExecOpts, ignorePatterns: string[] | undefined, diffOpts: {
8
+ independentSubpackages?: boolean;
9
+ }): (node: any) => boolean;
@@ -1,64 +1,75 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.makeDiffPredicate = void 0;
7
- const npmlog_1 = __importDefault(require("npmlog"));
8
- const minimatch_1 = __importDefault(require("minimatch"));
9
- const path_1 = __importDefault(require("path"));
10
- const slash_1 = __importDefault(require("slash"));
11
- const child_process_1 = require("../../../child-process");
12
- /**
13
- * @param {string} committish
14
- * @param {import("@lerna/child-process").ExecOpts} execOpts
15
- * @param {string[]} ignorePatterns
16
- */
17
- function makeDiffPredicate(committish, execOpts, ignorePatterns = []) {
18
- const ignoreFilters = new Set(ignorePatterns.map((p) => minimatch_1.default.filter(`!${p}`, {
19
- matchBase: true,
20
- // dotfiles inside ignored directories should also match
21
- dot: true,
22
- })));
23
- if (ignoreFilters.size) {
24
- npmlog_1.default.info('ignoring diff in paths matching', ignorePatterns.join(' '));
25
- }
26
- return function hasDiffSinceThatIsntIgnored(/** @type {import("@lerna/package-graph").PackageGraphNode} */ node) {
27
- const diff = diffSinceIn(committish, node.location, execOpts);
28
- if (diff === '') {
29
- npmlog_1.default.silly('', 'no diff found in %s', node.name);
30
- return false;
31
- }
32
- npmlog_1.default.silly('found diff in', diff);
33
- let changedFiles = diff.split('\n');
34
- if (ignoreFilters.size) {
35
- for (const ignored of ignoreFilters) {
36
- changedFiles = changedFiles.filter(ignored);
37
- }
38
- }
39
- if (changedFiles.length) {
40
- npmlog_1.default.verbose('filtered diff', changedFiles.join(' '));
41
- }
42
- else {
43
- npmlog_1.default.verbose('', 'no diff found in %s (after filtering)', node.name);
44
- }
45
- return changedFiles.length > 0;
46
- };
47
- }
48
- exports.makeDiffPredicate = makeDiffPredicate;
49
- /**
50
- * @param {string} committish
51
- * @param {string} location
52
- * @param {import("@lerna/child-process").ExecOpts} opts
53
- */
54
- function diffSinceIn(committish, location, opts) {
55
- const args = ['diff', '--name-only', committish];
56
- const formattedLocation = (0, slash_1.default)(path_1.default.relative(opts.cwd, location));
57
- if (formattedLocation) {
58
- // avoid same-directory path.relative() === ""
59
- args.push('--', formattedLocation);
60
- }
61
- npmlog_1.default.silly('checking diff', formattedLocation);
62
- return (0, child_process_1.execSync)('git', args, opts);
63
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeDiffPredicate = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const globby_1 = tslib_1.__importDefault(require("globby"));
6
+ const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
7
+ const minimatch_1 = tslib_1.__importDefault(require("minimatch"));
8
+ const path_1 = tslib_1.__importDefault(require("path"));
9
+ const slash_1 = tslib_1.__importDefault(require("slash"));
10
+ const child_process_1 = require("../../../child-process");
11
+ /**
12
+ * @param {string} committish
13
+ * @param {import("@lerna/child-process").ExecOpts} execOpts
14
+ * @param {string[]} ignorePatterns
15
+ */
16
+ function makeDiffPredicate(committish, execOpts, ignorePatterns = [], diffOpts) {
17
+ const ignoreFilters = new Set(ignorePatterns.map((p) => minimatch_1.default.filter(`!${p}`, {
18
+ matchBase: true,
19
+ // dotfiles inside ignored directories should also match
20
+ dot: true,
21
+ })));
22
+ if (ignoreFilters.size) {
23
+ npmlog_1.default.info('ignoring diff in paths matching', ignorePatterns.join(' '));
24
+ }
25
+ return function hasDiffSinceThatIsntIgnored(/** @type {import("@lerna/package-graph").PackageGraphNode} */ node) {
26
+ const diff = diffSinceIn(committish, node.location, execOpts, diffOpts);
27
+ if (diff === '') {
28
+ npmlog_1.default.silly('', 'no diff found in %s', node.name);
29
+ return false;
30
+ }
31
+ npmlog_1.default.silly('found diff in', diff);
32
+ let changedFiles = diff.split('\n');
33
+ if (ignoreFilters.size) {
34
+ for (const ignored of ignoreFilters) {
35
+ changedFiles = changedFiles.filter(ignored);
36
+ }
37
+ }
38
+ if (changedFiles.length) {
39
+ npmlog_1.default.verbose('filtered diff', changedFiles.join(' '));
40
+ }
41
+ else {
42
+ npmlog_1.default.verbose('', 'no diff found in %s (after filtering)', node.name);
43
+ }
44
+ return changedFiles.length > 0;
45
+ };
46
+ }
47
+ exports.makeDiffPredicate = makeDiffPredicate;
48
+ /**
49
+ * @param {string} committish
50
+ * @param {string} location
51
+ * @param {import("@lerna/child-process").ExecOpts} execOpts
52
+ */
53
+ function diffSinceIn(committish, location, execOpts, diffOpts) {
54
+ const args = ['diff', '--name-only', committish];
55
+ const formattedLocation = (0, slash_1.default)(path_1.default.relative(execOpts.cwd, location));
56
+ if (formattedLocation) {
57
+ // avoid same-directory path.relative() === ""
58
+ let independentSubpackages = [];
59
+ // optionally exclude sub-packages
60
+ if (diffOpts === null || diffOpts === void 0 ? void 0 : diffOpts.independentSubpackages) {
61
+ independentSubpackages = globby_1.default
62
+ .sync('**/*/package.json', {
63
+ cwd: formattedLocation,
64
+ nodir: true,
65
+ ignore: '**/node_modules/**',
66
+ })
67
+ .map((file) => `:^${formattedLocation}/${path_1.default.dirname(file)}`);
68
+ }
69
+ // avoid same-directory path.relative() === ""
70
+ args.push('--', formattedLocation, ...independentSubpackages);
71
+ }
72
+ npmlog_1.default.silly('checking diff', formattedLocation);
73
+ return (0, child_process_1.execSync)('git', args, execOpts);
74
+ }
64
75
  //# sourceMappingURL=make-diff-predicate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-diff-predicate.js","sourceRoot":"","sources":["../../../../src/utils/collect-updates/lib/make-diff-predicate.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAyB;AACzB,0DAAkC;AAClC,gDAAwB;AACxB,kDAA0B;AAE1B,0DAAkD;AAGlD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,UAAkB,EAAE,QAAkB,EAAE,iBAA2B,EAAE;IACrG,MAAM,aAAa,GAAG,IAAI,GAAG,CAC3B,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACvB,mBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE;QACxB,SAAS,EAAE,IAAI;QACf,wDAAwD;QACxD,GAAG,EAAE,IAAI;KACV,CAAC,CACH,CACF,CAAC;IAEF,IAAI,aAAa,CAAC,IAAI,EAAE;QACtB,gBAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KACvE;IAED,OAAO,SAAS,2BAA2B,CAAC,8DAA8D,CAAC,IAAI;QAC7G,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAE9D,IAAI,IAAI,KAAK,EAAE,EAAE;YACf,gBAAG,CAAC,KAAK,CAAC,EAAE,EAAE,qBAAqB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAChD,OAAO,KAAK,CAAC;SACd;QAED,gBAAG,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpC,IAAI,aAAa,CAAC,IAAI,EAAE;YACtB,KAAK,MAAM,OAAO,IAAI,aAAa,EAAE;gBACnC,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;aAC7C;SACF;QAED,IAAI,YAAY,CAAC,MAAM,EAAE;YACvB,gBAAG,CAAC,OAAO,CAAC,eAAe,EAAE,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACtD;aAAM;YACL,gBAAG,CAAC,OAAO,CAAC,EAAE,EAAE,uCAAuC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;SACrE;QAED,OAAO,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC;AAxCD,8CAwCC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI;IAC7C,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IACjD,MAAM,iBAAiB,GAAG,IAAA,eAAK,EAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEnE,IAAI,iBAAiB,EAAE;QACrB,8CAA8C;QAC9C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;KACpC;IAED,gBAAG,CAAC,KAAK,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;IAC9C,OAAO,IAAA,wBAAQ,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"make-diff-predicate.js","sourceRoot":"","sources":["../../../../src/utils/collect-updates/lib/make-diff-predicate.ts"],"names":[],"mappings":";;;;AAAA,4DAA+C;AAC/C,4DAAyB;AACzB,kEAAkC;AAClC,wDAAwB;AACxB,0DAA0B;AAE1B,0DAAkD;AAGlD;;;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get: any;
7
- set: any;
8
- globalPrefix: string;
9
- localPrefix: string;
10
- root: any;
11
- sources: any;
12
- push: any;
13
- list: any;
14
- constructor(base: any);
15
- add(data: any, marker: any): any;
16
- addFile(file: string, name?: string): this;
17
- addEnv(env?: {
18
- [key: string]: string | undefined;
19
- }): any;
20
- loadPrefix(): any;
21
- loadCAFile(file: string): void;
22
- loadUser(): void;
23
- getCredentialsByURI(uri: string): any;
24
- setCredentialsByURI(uri: any, c: any): void;
25
- }
1
+ import { ConfigChain } from 'config-chain';
2
+ export declare class Conf extends ConfigChain {
3
+ _await: any;
4
+ addString: any;
5
+ del: any;
6
+ get: any;
7
+ set: any;
8
+ globalPrefix: string;
9
+ localPrefix: string;
10
+ root: any;
11
+ sources: any;
12
+ push: any;
13
+ list: any;
14
+ constructor(base: any);
15
+ add(data: any, marker: any): any;
16
+ addFile(file: string, name?: string): this;
17
+ addEnv(env?: {
18
+ [key: string]: string | undefined;
19
+ }): any;
20
+ loadPrefix(): any;
21
+ loadCAFile(file: string): void;
22
+ loadUser(): void;
23
+ getCredentialsByURI(uri: string): any;
24
+ setCredentialsByURI(uri: any, c: any): void;
25
+ }