configorama 0.6.18 → 0.7.0
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/README.md +78 -2
- package/cli.js +1 -0
- package/index.d.ts +90 -37
- package/package.json +8 -2
- package/src/index.js +42 -14
- package/src/main.js +135 -62
- package/src/parsers/index.js +10 -0
- package/src/parsers/typescript.js +20 -43
- package/src/parsers/yaml.js +35 -2
- package/src/resolvers/valueFromFile.js +87 -24
- package/src/resolvers/valueFromGit.js +11 -3
- package/src/utils/encoders/js-fixes.js +44 -0
- package/src/utils/parsing/mergeByKeys.js +4 -3
- package/src/utils/parsing/parse.js +4 -2
- package/src/utils/parsing/preProcess.js +42 -25
- package/src/utils/parsing/preProcess.test.js +214 -0
- package/src/utils/paths/getFullFilePath.js +1 -1
- package/src/utils/resolution/preResolveVariable.js +1 -0
- package/src/utils/strings/quoteUtils.js +2 -2
- package/src/utils/strings/splitCsv.js +1 -1
- package/src/utils/ui/logs.js +4 -4
- package/src/utils/validation/warnIfNotFound.js +3 -3
- package/src/utils/variables/findNestedVariables.js +2 -2
- package/src/utils/variables/variableUtils.js +43 -0
- package/src/utils/variables/variableUtils.test.js +38 -1
- package/types/cli.d.ts +3 -0
- package/types/cli.d.ts.map +1 -0
- package/types/src/functions/md5.d.ts +3 -0
- package/types/src/functions/md5.d.ts.map +1 -0
- package/types/src/index.d.ts +100 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/main.d.ts +275 -0
- package/types/src/main.d.ts.map +1 -0
- package/types/src/parsers/esm.d.ts +15 -0
- package/types/src/parsers/esm.d.ts.map +1 -0
- package/types/src/parsers/hcl.d.ts +1 -0
- package/types/src/parsers/hcl.d.ts.map +1 -0
- package/types/src/parsers/index.d.ts +18 -0
- package/types/src/parsers/index.d.ts.map +1 -0
- package/types/src/parsers/ini.d.ts +6 -0
- package/types/src/parsers/ini.d.ts.map +1 -0
- package/types/src/parsers/json5.d.ts +10 -0
- package/types/src/parsers/json5.d.ts.map +1 -0
- package/types/src/parsers/toml.d.ts +7 -0
- package/types/src/parsers/toml.d.ts.map +1 -0
- package/types/src/parsers/typescript.d.ts +15 -0
- package/types/src/parsers/typescript.d.ts.map +1 -0
- package/types/src/parsers/yaml.d.ts +45 -0
- package/types/src/parsers/yaml.d.ts.map +1 -0
- package/types/src/resolvers/valueFromCron.d.ts +14 -0
- package/types/src/resolvers/valueFromCron.d.ts.map +1 -0
- package/types/src/resolvers/valueFromEnv.d.ts +8 -0
- package/types/src/resolvers/valueFromEnv.d.ts.map +1 -0
- package/types/src/resolvers/valueFromEval.d.ts +7 -0
- package/types/src/resolvers/valueFromEval.d.ts.map +1 -0
- package/types/src/resolvers/valueFromFile.d.ts +58 -0
- package/types/src/resolvers/valueFromFile.d.ts.map +1 -0
- package/types/src/resolvers/valueFromGit.d.ts +11 -0
- package/types/src/resolvers/valueFromGit.d.ts.map +1 -0
- package/types/src/resolvers/valueFromNumber.d.ts +6 -0
- package/types/src/resolvers/valueFromNumber.d.ts.map +1 -0
- package/types/src/resolvers/valueFromOptions.d.ts +9 -0
- package/types/src/resolvers/valueFromOptions.d.ts.map +1 -0
- package/types/src/resolvers/valueFromSelf.d.ts +1 -0
- package/types/src/resolvers/valueFromSelf.d.ts.map +1 -0
- package/types/src/resolvers/valueFromString.d.ts +6 -0
- package/types/src/resolvers/valueFromString.d.ts.map +1 -0
- package/types/src/sync.d.ts +3 -0
- package/types/src/sync.d.ts.map +1 -0
- package/types/src/utils/PromiseTracker.d.ts +19 -0
- package/types/src/utils/PromiseTracker.d.ts.map +1 -0
- package/types/src/utils/encoders/index.d.ts +2 -0
- package/types/src/utils/encoders/index.d.ts.map +1 -0
- package/types/src/utils/encoders/js-fixes.d.ts +23 -0
- package/types/src/utils/encoders/js-fixes.d.ts.map +1 -0
- package/types/src/utils/encoders/unknown-values.d.ts +18 -0
- package/types/src/utils/encoders/unknown-values.d.ts.map +1 -0
- package/types/src/utils/handleSignalEvents.d.ts +3 -0
- package/types/src/utils/handleSignalEvents.d.ts.map +1 -0
- package/types/src/utils/lodash.d.ts +4 -0
- package/types/src/utils/lodash.d.ts.map +1 -0
- package/types/src/utils/parsing/arrayToJsonPath.d.ts +5 -0
- package/types/src/utils/parsing/arrayToJsonPath.d.ts.map +1 -0
- package/types/src/utils/parsing/cloudformationSchema.d.ts +2 -0
- package/types/src/utils/parsing/cloudformationSchema.d.ts.map +1 -0
- package/types/src/utils/parsing/enrichMetadata.d.ts +17 -0
- package/types/src/utils/parsing/enrichMetadata.d.ts.map +1 -0
- package/types/src/utils/parsing/mergeByKeys.d.ts +5 -0
- package/types/src/utils/parsing/mergeByKeys.d.ts.map +1 -0
- package/types/src/utils/parsing/parse.d.ts +54 -0
- package/types/src/utils/parsing/parse.d.ts.map +1 -0
- package/types/src/utils/parsing/preProcess.d.ts +10 -0
- package/types/src/utils/parsing/preProcess.d.ts.map +1 -0
- package/types/src/utils/paths/filePathUtils.d.ts +32 -0
- package/types/src/utils/paths/filePathUtils.d.ts.map +1 -0
- package/types/src/utils/paths/findLineForKey.d.ts +12 -0
- package/types/src/utils/paths/findLineForKey.d.ts.map +1 -0
- package/types/src/utils/paths/findProjectRoot.d.ts +2 -0
- package/types/src/utils/paths/findProjectRoot.d.ts.map +1 -0
- package/types/src/utils/paths/getFullFilePath.d.ts +25 -0
- package/types/src/utils/paths/getFullFilePath.d.ts.map +1 -0
- package/types/src/utils/paths/resolveAlias.d.ts +14 -0
- package/types/src/utils/paths/resolveAlias.d.ts.map +1 -0
- package/types/src/utils/regex/index.d.ts +14 -0
- package/types/src/utils/regex/index.d.ts.map +1 -0
- package/types/src/utils/resolution/preResolveVariable.d.ts +51 -0
- package/types/src/utils/resolution/preResolveVariable.d.ts.map +1 -0
- package/types/src/utils/strings/bracketMatcher.d.ts +25 -0
- package/types/src/utils/strings/bracketMatcher.d.ts.map +1 -0
- package/types/src/utils/strings/formatFunctionArgs.d.ts +3 -0
- package/types/src/utils/strings/formatFunctionArgs.d.ts.map +1 -0
- package/types/src/utils/strings/quoteUtils.d.ts +31 -0
- package/types/src/utils/strings/quoteUtils.d.ts.map +1 -0
- package/types/src/utils/strings/replaceAll.d.ts +9 -0
- package/types/src/utils/strings/replaceAll.d.ts.map +1 -0
- package/types/src/utils/strings/splitByComma.d.ts +2 -0
- package/types/src/utils/strings/splitByComma.d.ts.map +1 -0
- package/types/src/utils/strings/splitCsv.d.ts +10 -0
- package/types/src/utils/strings/splitCsv.d.ts.map +1 -0
- package/types/src/utils/strings/textUtils.d.ts +15 -0
- package/types/src/utils/strings/textUtils.d.ts.map +1 -0
- package/types/src/utils/ui/chalk.d.ts +70 -0
- package/types/src/utils/ui/chalk.d.ts.map +1 -0
- package/types/src/utils/ui/configWizard.d.ts +67 -0
- package/types/src/utils/ui/configWizard.d.ts.map +1 -0
- package/types/src/utils/ui/createEditorLink.d.ts +11 -0
- package/types/src/utils/ui/createEditorLink.d.ts.map +1 -0
- package/types/src/utils/ui/deep-log.d.ts +3 -0
- package/types/src/utils/ui/deep-log.d.ts.map +1 -0
- package/types/src/utils/ui/logs.d.ts +2 -0
- package/types/src/utils/ui/logs.d.ts.map +1 -0
- package/types/src/utils/validation/warnIfNotFound.d.ts +15 -0
- package/types/src/utils/validation/warnIfNotFound.d.ts.map +1 -0
- package/types/src/utils/variables/appendDeepVariable.d.ts +3 -0
- package/types/src/utils/variables/appendDeepVariable.d.ts.map +1 -0
- package/types/src/utils/variables/cleanVariable.d.ts +3 -0
- package/types/src/utils/variables/cleanVariable.d.ts.map +1 -0
- package/types/src/utils/variables/findNestedVariables.d.ts +23 -0
- package/types/src/utils/variables/findNestedVariables.d.ts.map +1 -0
- package/types/src/utils/variables/getVariableType.d.ts +8 -0
- package/types/src/utils/variables/getVariableType.d.ts.map +1 -0
- package/types/src/utils/variables/variableUtils.d.ts +21 -0
- package/types/src/utils/variables/variableUtils.d.ts.map +1 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
export = Configorama;
|
|
2
|
+
declare class Configorama {
|
|
3
|
+
constructor(fileOrObject: any, opts: any);
|
|
4
|
+
settings: any;
|
|
5
|
+
filterCache: {};
|
|
6
|
+
foundVariables: any[];
|
|
7
|
+
fileRefsFound: any[];
|
|
8
|
+
resolutionTracking: {};
|
|
9
|
+
variableSyntax: RegExp;
|
|
10
|
+
varPrefix: string;
|
|
11
|
+
varSuffix: string;
|
|
12
|
+
varPrefixPattern: RegExp;
|
|
13
|
+
varSuffixPattern: RegExp;
|
|
14
|
+
varSuffixWithSpacePattern: RegExp;
|
|
15
|
+
config: any;
|
|
16
|
+
originalConfig: any;
|
|
17
|
+
configPath: any;
|
|
18
|
+
configFilePath: string;
|
|
19
|
+
configFileType: string;
|
|
20
|
+
originalString: string;
|
|
21
|
+
tracker: PromiseTracker;
|
|
22
|
+
variableTypes: any;
|
|
23
|
+
variablesKnownTypes: RegExp;
|
|
24
|
+
filters: any;
|
|
25
|
+
filterMatch: RegExp;
|
|
26
|
+
functions: any;
|
|
27
|
+
deep: any[];
|
|
28
|
+
leaves: any[];
|
|
29
|
+
callCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Populate all variables in the service, conveniently remove and restore the service attributes
|
|
32
|
+
* that confuse the population methods.
|
|
33
|
+
* @param cliOpts An options hive to use for ${opt:...} variables.
|
|
34
|
+
* @returns {Promise<any>} A promise resolving to the populated service.
|
|
35
|
+
*/
|
|
36
|
+
init(cliOpts: any): Promise<any>;
|
|
37
|
+
options: any;
|
|
38
|
+
configFileContents: string;
|
|
39
|
+
rawOriginalConfig: any;
|
|
40
|
+
/**
|
|
41
|
+
* Collect metadata about all variables found in the configuration
|
|
42
|
+
* @returns {object} Metadata object containing variables, fileRefs, and summary
|
|
43
|
+
*/
|
|
44
|
+
collectVariableMetadata(): object;
|
|
45
|
+
_cachedMetadata: {
|
|
46
|
+
variables: {};
|
|
47
|
+
uniqueVariables: {};
|
|
48
|
+
fileDependencies: {
|
|
49
|
+
globPatterns: any[];
|
|
50
|
+
dynamicPaths: any[];
|
|
51
|
+
resolvedPaths: any[];
|
|
52
|
+
byConfigPath: any[];
|
|
53
|
+
references: any[];
|
|
54
|
+
};
|
|
55
|
+
summary: {
|
|
56
|
+
totalVariables: number;
|
|
57
|
+
requiredVariables: number;
|
|
58
|
+
variablesWithDefaults: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Populate the variables in the given object.
|
|
63
|
+
* @param objectToPopulate The object to populate variables within.
|
|
64
|
+
* @returns {Promise<any>} A promise resolving to the in-place populated object.
|
|
65
|
+
*/
|
|
66
|
+
populateObject(objectToPopulate: any): Promise<any>;
|
|
67
|
+
populateObjectImpl(objectToPopulate: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* The declaration of a terminal property. This declaration includes the path and value of the
|
|
70
|
+
* property.
|
|
71
|
+
* Example Input:
|
|
72
|
+
* {
|
|
73
|
+
* foo: {
|
|
74
|
+
* bar: 'baz'
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
* Example Result:
|
|
78
|
+
* [
|
|
79
|
+
* {
|
|
80
|
+
* path: ['foo', 'bar']
|
|
81
|
+
* value: 'baz
|
|
82
|
+
* }
|
|
83
|
+
* ]
|
|
84
|
+
* @typedef {Object} TerminalProperty
|
|
85
|
+
* @property {String[]} path The path to the terminal property
|
|
86
|
+
* @property {Date|RegExp|String} value The value of the terminal property
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Generate an array of objects noting the terminal properties of the given root object and their
|
|
90
|
+
* paths
|
|
91
|
+
* @param root The object to generate a terminal property path/value set for
|
|
92
|
+
* @param current The current part of the given root that terminal properties are being sought
|
|
93
|
+
* within
|
|
94
|
+
* @param [context] An array containing the path to the current object root (intended for internal
|
|
95
|
+
* use)
|
|
96
|
+
* @param [results] An array of current results (intended for internal use)
|
|
97
|
+
* @returns {TerminalProperty[]} The terminal properties of the given root object, with the path
|
|
98
|
+
* and value of each
|
|
99
|
+
*/
|
|
100
|
+
getProperties(root: any, atRoot: any, current: any, _context: any, _results: any): {
|
|
101
|
+
/**
|
|
102
|
+
* The path to the terminal property
|
|
103
|
+
*/
|
|
104
|
+
path: string[];
|
|
105
|
+
/**
|
|
106
|
+
* The value of the terminal property
|
|
107
|
+
*/
|
|
108
|
+
value: Date | RegExp | string;
|
|
109
|
+
}[];
|
|
110
|
+
/**
|
|
111
|
+
* @typedef {TerminalProperty} TerminalPropertyPopulated
|
|
112
|
+
* @property {Object} populated The populated value of the value at the path
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
115
|
+
* Populate the given terminal properties, returning promises to do so
|
|
116
|
+
* @param properties The terminal properties to populate
|
|
117
|
+
* @returns {Promise<TerminalPropertyPopulated[]>[]} The promises that will resolve to the
|
|
118
|
+
* populated values of the given terminal properties
|
|
119
|
+
*/
|
|
120
|
+
populateVariables(properties: any): Promise<{
|
|
121
|
+
/**
|
|
122
|
+
* The path to the terminal property
|
|
123
|
+
*/
|
|
124
|
+
path: string[];
|
|
125
|
+
/**
|
|
126
|
+
* The value of the terminal property
|
|
127
|
+
*/
|
|
128
|
+
value: Date | RegExp | string;
|
|
129
|
+
}[]>[];
|
|
130
|
+
/**
|
|
131
|
+
* Assign the populated values back to the target object
|
|
132
|
+
* @param target The object to which the given populated terminal properties should be applied
|
|
133
|
+
* @param populations The fully populated terminal properties
|
|
134
|
+
* @returns {Promise<void>} resolving when changes have been applied to the given target
|
|
135
|
+
*/
|
|
136
|
+
assignProperties(target: any, populations: any): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* @typedef {Object} MatchResult
|
|
139
|
+
* @property {String} match The original property value that matched the variable syntax
|
|
140
|
+
* @property {String} variable The cleaned variable string that specifies the origin for the
|
|
141
|
+
* property value
|
|
142
|
+
*/
|
|
143
|
+
/**
|
|
144
|
+
* Get matches against the configured variable syntax
|
|
145
|
+
* @param property The property value to attempt extracting matches from
|
|
146
|
+
* @returns {Object|String|MatchResult[]} The given property or the identified matches
|
|
147
|
+
*/
|
|
148
|
+
getMatches(property: any): any | string | {
|
|
149
|
+
/**
|
|
150
|
+
* The original property value that matched the variable syntax
|
|
151
|
+
*/
|
|
152
|
+
match: string;
|
|
153
|
+
/**
|
|
154
|
+
* The cleaned variable string that specifies the origin for the
|
|
155
|
+
* property value
|
|
156
|
+
*/
|
|
157
|
+
variable: string;
|
|
158
|
+
}[];
|
|
159
|
+
/**
|
|
160
|
+
* Populate the given matches, returning an array of Promises which will resolve to the populated
|
|
161
|
+
* values of the given matches
|
|
162
|
+
* @param {MatchResult[]} matches The matches to populate
|
|
163
|
+
* @returns {Promise[]} Promises for the eventual populated values of the given matches
|
|
164
|
+
*/
|
|
165
|
+
populateMatches(matches: {
|
|
166
|
+
/**
|
|
167
|
+
* The original property value that matched the variable syntax
|
|
168
|
+
*/
|
|
169
|
+
match: string;
|
|
170
|
+
/**
|
|
171
|
+
* The cleaned variable string that specifies the origin for the
|
|
172
|
+
* property value
|
|
173
|
+
*/
|
|
174
|
+
variable: string;
|
|
175
|
+
}[], valueObject: any, root: any): Promise<any>[];
|
|
176
|
+
/**
|
|
177
|
+
* Render the given matches and their associated results to the given value
|
|
178
|
+
* @param value The value into which to render the given results
|
|
179
|
+
* @param matches The matches on the given value where the results are to be rendered
|
|
180
|
+
* @param results The results that are to be rendered to the given value
|
|
181
|
+
* @returns {*} The populated value with the given results rendered according to the given matches
|
|
182
|
+
*/
|
|
183
|
+
renderMatches(valueObject: any, matches: any, results: any): any;
|
|
184
|
+
/**
|
|
185
|
+
* Populate the given value, recursively if root is true
|
|
186
|
+
* @param valueObject The value to populate variables within
|
|
187
|
+
* @param root Whether the caller is the root populater and thereby whether to recursively
|
|
188
|
+
* populate
|
|
189
|
+
* @returns {Promise<any>} A promise that resolves to the populated value, recursively if root
|
|
190
|
+
* is true
|
|
191
|
+
*/
|
|
192
|
+
populateValue(valueObject: any, root: any, caller: any): Promise<any>;
|
|
193
|
+
/**
|
|
194
|
+
* Populate variables in the given property.
|
|
195
|
+
* @param propertyToPopulate The property to populate (replace variables with their values).
|
|
196
|
+
* @returns {Promise.<TResult>|*} A promise resolving to the populated result.
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* Split the cleaned variable string containing one or more comma delimited variables and get a
|
|
200
|
+
* final value for the entirety of the string
|
|
201
|
+
* @param variable The variable string to split and get a final value for
|
|
202
|
+
* @param property The original property string the given variable was extracted from
|
|
203
|
+
* @returns {Promise} A promise resolving to the final value of the given variable
|
|
204
|
+
*/
|
|
205
|
+
splitAndGet(variable: any, valueObject: any, root: any, originalVar: any): Promise<any>;
|
|
206
|
+
/**
|
|
207
|
+
* Populate a given property, given the matched string to replace and the value to replace the
|
|
208
|
+
* matched string with.
|
|
209
|
+
* @param {object} valueObject The value object containing the property to populate
|
|
210
|
+
* @param {any} valueObject.value The property to replace the matched string with the value.
|
|
211
|
+
* @param {string[]} [valueObject.path] The path to the value in the config.
|
|
212
|
+
* @param {string} [valueObject.originalSource] The original source string.
|
|
213
|
+
* @param {Array} [valueObject.resolutionHistory] History of resolution steps.
|
|
214
|
+
* @param matchedString The string in the given property that was matched and is to be replaced.
|
|
215
|
+
* @param valueToPopulate The value to replace the given matched string in the property with.
|
|
216
|
+
* @returns {{value: any, path?: string[], originalSource?: string, resolutionHistory?: Array, __internal_only_flag?: boolean, caller?: string, count?: number}} The populated property object
|
|
217
|
+
*/
|
|
218
|
+
populateVariable(valueObject: {
|
|
219
|
+
value: any;
|
|
220
|
+
path?: string[];
|
|
221
|
+
originalSource?: string;
|
|
222
|
+
resolutionHistory?: any[];
|
|
223
|
+
}, matchedString: any, valueToPopulate: any): {
|
|
224
|
+
value: any;
|
|
225
|
+
path?: string[];
|
|
226
|
+
originalSource?: string;
|
|
227
|
+
resolutionHistory?: any[];
|
|
228
|
+
__internal_only_flag?: boolean;
|
|
229
|
+
caller?: string;
|
|
230
|
+
count?: number;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Resolve the given variable string that expresses a series of fallback values in case the
|
|
234
|
+
* initial values are not valid, resolving each variable and resolving to the first valid value.
|
|
235
|
+
* @param variableStrings The overwrite string of variables to populate and choose from.
|
|
236
|
+
* @param valueObject The value object
|
|
237
|
+
* @param originalVar The original variable string
|
|
238
|
+
* @returns {Promise<any>} A promise resolving to the first validly populating variable
|
|
239
|
+
* in the given variable strings string.
|
|
240
|
+
*/
|
|
241
|
+
overwrite(variableStrings: any, valueObject: any, originalVar: any): Promise<any>;
|
|
242
|
+
/**
|
|
243
|
+
* Given any variable string, return the value it should be populated with.
|
|
244
|
+
* @param variableString The variable string to retrieve a value for.
|
|
245
|
+
* @param valueObject The value object
|
|
246
|
+
* @param caller The caller name
|
|
247
|
+
* @param originalVar The original variable string
|
|
248
|
+
* @returns {Promise<any>} A promise resolving to the given variables value.
|
|
249
|
+
*/
|
|
250
|
+
getValueFromSource(variableString: any, valueObject: any, caller: any, originalVar: any): Promise<any>;
|
|
251
|
+
getValueFromSelf(variableString: any, o: any, x: any, data: any): Promise<any>;
|
|
252
|
+
getValueFromFile(variableString: any, options: any): any;
|
|
253
|
+
getValueFromDeep(variableString: any, pathValue: any): Promise<any>;
|
|
254
|
+
getVariableFromDeep(variableString: any): any;
|
|
255
|
+
makeDeepVariable(variable: any, caller: any): any;
|
|
256
|
+
/**
|
|
257
|
+
* Get a value that is within the given valueToPopulate. The deepProperties specify what value
|
|
258
|
+
* to retrieve from the given valueToPopulate. The trouble is that anywhere along this chain a
|
|
259
|
+
* variable can be discovered. If this occurs, to avoid cyclic dependencies, the resolution of
|
|
260
|
+
* the deep value from the given valueToPopulate must be halted. The discovered variable is thus
|
|
261
|
+
* set aside into a "deep variable" (see makeDeepVariable). The indexing into the given
|
|
262
|
+
* valueToPopulate is then resolved with a replacement ${deep:${index}.${remaining.properties}}
|
|
263
|
+
* variable (e.g. ${deep:1.foo}). This pauses the population for continuation during the next
|
|
264
|
+
* generation of evaluation (see getValueFromDeep)
|
|
265
|
+
* @param deepProperties The "path" of properties to follow in obtaining the deeper value
|
|
266
|
+
* @param valueToPopulate The value from which to obtain the deeper value
|
|
267
|
+
* @returns {Promise} A promise resolving to the deeper value or to a `deep` variable that
|
|
268
|
+
* will later resolve to the deeper value
|
|
269
|
+
*/
|
|
270
|
+
getDeeperValue(deepProperties: any, valueToPopulate: any): Promise<any>;
|
|
271
|
+
initialCall(func: any): any;
|
|
272
|
+
runFunction(variableString: any): any;
|
|
273
|
+
}
|
|
274
|
+
import PromiseTracker = require("./utils/PromiseTracker");
|
|
275
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.js"],"names":[],"mappings":";AA6HA;IACE,0CAgaC;IAxZC,cAaW;IAOX,gBAAqB;IAErB,sBAAwB;IACxB,qBAAuB;IAGvB,uBAA4B;IAc5B,uBAAoC;IAIpC,kBAAqC;IACrC,kBAAqC;IAErC,yBAA+F;IAC/F,yBAAuD;IACvD,kCAAyE;IAKvE,YAA0B;IAE1B,oBAA6C;IAE7C,gBAAoD;IAOpD,uBAAkC;IAElC,uBAA8B;IAE9B,uBAAkC;IASpC,wBAAmC;IAGnC,mBAsGC;IAoED,4BAA8C;IAO9C,aA2EC;IAUD,oBAEC;IAGD,eAkDC;IAOD,YAAc;IACd,cAAgB;IAChB,kBAAkB;IAMpB;;;;;OAKG;IACH,oBAFa,OAAO,CAAC,GAAG,CAAC,CAqsBxB;IAlsBC,aAA4B;IAc1B,2BAA4B;IAQ5B,uBAAgD;IA8qBpD;;;OAGG;IACH,2BAFa,MAAM,CA8alB;IAvBC;;;;;;;;;;;;;;;MAoBC;IAIH;;;;OAIG;IACH,uCAFa,OAAO,CAAC,GAAG,CAAC,CAIxB;IACD,+CAsBC;IAKD;;;;;;;;;;;;;;;;;;;OAmBG;IACH;;;;;;;;;;;OAWG;IACH,mFAHa;;;;cAZC,QAAQ;;;;eACR,IAAI,GAAC,MAAM,SAAO;OAWD,CA+D9B;IACD;;;OAGG;IACH;;;;;OAKG;IACH,oCAHa,OAAO,CAAC;;;;cAnFP,QAAQ;;;;eACR,IAAI,GAAC,MAAM,SAAO;OAkFgB,CAAC,EAAE,CA6BlD;IACD;;;;;OAKG;IACH,iDAFa,OAAO,CAAC,IAAI,CAAC,CAWzB;IAID;;;;;OAKG;IACH;;;;OAIG;IACH,2BAFa,eAAc;;;;;;;;;;OAAa,CAavC;IACD;;;;;OAKG;IACH,yBAHW;;;;;;;;;;OAAa,gCACX,cAAS,CAOrB;IACD;;;;;;OAMG;IACH,6DAFa,GAAC,CA+Kb;IAKD;;;;;;;OAOG;IACH,yDAHa,OAAO,CAAC,GAAG,CAAC,CAiCxB;IACD;;;;OAIG;IAOH;;;;;;OAMG;IACH,wFA2BC;IACD;;;;;;;;;;;OAWG;IACH,8BARG;QAAyB,KAAK,EAAtB,GAAG;QACoB,IAAI,GAA3B,MAAM,EAAE;QACa,cAAc,GAAnC,MAAM;QACc,iBAAiB;KAC7C,6CAEU;QAAC,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,QAAQ;QAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,CAmY9J;IAID;;;;;;;;OAQG;IACH,qEAHa,OAAO,CAAC,GAAG,CAAC,CAoExB;IAKD;;;;;;;OAOG;IACH,0FAFa,OAAO,CAAC,GAAG,CAAC,CAofxB;IACD,+EA8BC;IACD,yDAeC;IACD,oEA6BC;IAKD,8CAQC;IACD,kDAyBC;IACD;;;;;;;;;;;;;OAaG;IACH,wEAoDC;IAKD,4BAOC;IACD,sCAoDC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute ESM file and return its export using jiti
|
|
3
|
+
* @param {string} filePath - Full path to the ESM file
|
|
4
|
+
* @param {Object} opts - Additional options including dynamicArgs
|
|
5
|
+
* @returns {Promise<*>} The result of executing the ESM file
|
|
6
|
+
*/
|
|
7
|
+
export function executeESMFile(filePath: string, opts?: any): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Synchronous ESM file execution using jiti
|
|
10
|
+
* @param {string} filePath - Full path to the ESM file
|
|
11
|
+
* @param {Object} opts - Additional options including dynamicArgs
|
|
12
|
+
* @returns {*} The result of executing the ESM file
|
|
13
|
+
*/
|
|
14
|
+
export function executeESMFileSync(filePath: string, opts?: any): any;
|
|
15
|
+
//# sourceMappingURL=esm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../../../src/parsers/esm.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,yCAJW,MAAM,eAEJ,OAAO,CAAC,GAAC,CAAC,CA0BtB;AAED;;;;;GAKG;AACH,6CAJW,MAAM,eAEJ,GAAC,CAyBb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=hcl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hcl.d.ts","sourceRoot":"","sources":["../../../src/parsers/hcl.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare namespace _exports {
|
|
2
|
+
export { ParserFunction };
|
|
3
|
+
}
|
|
4
|
+
declare const _exports: {
|
|
5
|
+
[x: string]: ParserFunction;
|
|
6
|
+
};
|
|
7
|
+
export = _exports;
|
|
8
|
+
type ParserFunction = {
|
|
9
|
+
/**
|
|
10
|
+
* - Parse string content into object
|
|
11
|
+
*/
|
|
12
|
+
parse: Function;
|
|
13
|
+
/**
|
|
14
|
+
* - Convert object to string format
|
|
15
|
+
*/
|
|
16
|
+
stringify: Function;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parsers/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ini.d.ts","sourceRoot":"","sources":["../../../src/parsers/ini.js"],"names":[],"mappings":"AAIA,0CAQC;AAED,uCAQC;AAED,iDAQC;AAED,iDAQC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function parse(contents: any): any;
|
|
2
|
+
export function dump(object: any): string;
|
|
3
|
+
export function toYaml(jsonContents: any): string;
|
|
4
|
+
export function toToml(jsonContents: any): string;
|
|
5
|
+
export declare let stringify: {
|
|
6
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
7
|
+
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
8
|
+
};
|
|
9
|
+
export { toYaml as toYml };
|
|
10
|
+
//# sourceMappingURL=json5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json5.d.ts","sourceRoot":"","sources":["../../../src/parsers/json5.js"],"names":[],"mappings":"AAIA,0CAQC;AAED,0CAQC;AAED,kDAQC;AAED,kDAQC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function parse(contents: any): TOML.JsonMap;
|
|
2
|
+
export function dump(object: any): string;
|
|
3
|
+
export function toYaml(tomlContents: any): string;
|
|
4
|
+
export function toJson(tomlContents: any): string;
|
|
5
|
+
import TOML = require("@iarna/toml");
|
|
6
|
+
export { toYaml as toYml };
|
|
7
|
+
//# sourceMappingURL=toml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toml.d.ts","sourceRoot":"","sources":["../../../src/parsers/toml.js"],"names":[],"mappings":"AAIA,mDAQC;AAED,0CAQC;AAED,kDAQC;AAED,kDAQC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Load TypeScript file and return its export (without executing)
|
|
3
|
+
* @param {string} filePath - Full path to the TypeScript file
|
|
4
|
+
* @param {Object} opts - Additional options (unused, kept for API compat)
|
|
5
|
+
* @returns {Promise<*>} The exported module from the TypeScript file
|
|
6
|
+
*/
|
|
7
|
+
export function executeTypeScriptFile(filePath: string, opts?: any): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Load TypeScript file synchronously and return its export
|
|
10
|
+
* @param {string} filePath - Full path to the TypeScript file
|
|
11
|
+
* @param {Object} opts - Additional options (unused, kept for API compat)
|
|
12
|
+
* @returns {*} The exported module from the TypeScript file
|
|
13
|
+
*/
|
|
14
|
+
export function executeTypeScriptFileSync(filePath: string, opts?: any): any;
|
|
15
|
+
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/parsers/typescript.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,gDAJW,MAAM,eAEJ,OAAO,CAAC,GAAC,CAAC,CAwDtB;AAED;;;;;GAKG;AACH,oDAJW,MAAM,eAEJ,GAAC,CAwDb"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-process YAML string to handle nested variables and CloudFormation syntax
|
|
3
|
+
* @param {string} [ymlStr=''] - YAML string to pre-process
|
|
4
|
+
* @returns {string} Pre-processed YAML string
|
|
5
|
+
*/
|
|
6
|
+
export function preProcess(ymlStr?: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Parse YAML content into JavaScript object
|
|
9
|
+
* @param {string} ymlContents - YAML string to parse
|
|
10
|
+
* @returns {Object} Parsed YAML object
|
|
11
|
+
* @throws {Error} If YAML parsing fails
|
|
12
|
+
*/
|
|
13
|
+
export function parse(ymlContents: string): any;
|
|
14
|
+
/**
|
|
15
|
+
* Loader for custom CF syntax
|
|
16
|
+
* @param {string|Buffer} contents - YAML content to load
|
|
17
|
+
* @param {Object} [options] - YAML load options
|
|
18
|
+
* @returns {{data: Object|null, error: Error|null}} Parsed data and error if any
|
|
19
|
+
*/
|
|
20
|
+
export function load(contents: string | Buffer, options?: any): {
|
|
21
|
+
data: any | null;
|
|
22
|
+
error: Error | null;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Convert JavaScript object to YAML string
|
|
26
|
+
* @param {Object} object - Object to convert to YAML
|
|
27
|
+
* @returns {string} YAML string representation
|
|
28
|
+
* @throws {Error} If conversion fails
|
|
29
|
+
*/
|
|
30
|
+
export function dump(object: any): string;
|
|
31
|
+
/**
|
|
32
|
+
* Convert YAML content to TOML format
|
|
33
|
+
* @param {string} ymlContents - YAML string to convert
|
|
34
|
+
* @returns {string} TOML string representation
|
|
35
|
+
* @throws {Error} If conversion fails
|
|
36
|
+
*/
|
|
37
|
+
export function toToml(ymlContents: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Convert YAML content to JSON format
|
|
40
|
+
* @param {string} ymlContents - YAML string to convert
|
|
41
|
+
* @returns {string} JSON string representation
|
|
42
|
+
* @throws {Error} If conversion fails
|
|
43
|
+
*/
|
|
44
|
+
export function toJson(ymlContents: string): string;
|
|
45
|
+
//# sourceMappingURL=yaml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml.d.ts","sourceRoot":"","sources":["../../../src/parsers/yaml.js"],"names":[],"mappings":"AAiGA;;;;GAIG;AACH,oCAHW,MAAM,GACJ,MAAM,CA4FlB;AA1KD;;;;;GAKG;AACH,mCAJW,MAAM,OAahB;AAhCD;;;;;GAKG;AACH,+BAJW,MAAM,GAAC,MAAM,kBAEX;IAAC,IAAI,EAAE,MAAO,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,GAAC,IAAI,CAAA;CAAC,CAWlD;AAmBD;;;;;GAKG;AACH,mCAHa,MAAM,CAalB;AAED;;;;;GAKG;AACH,oCAJW,MAAM,GACJ,MAAM,CAWlB;AAED;;;;;GAKG;AACH,oCAJW,MAAM,GACJ,MAAM,CAWlB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const cronRefSyntax: RegExp;
|
|
2
|
+
declare function getValueFromCron(variableString: any): string | Promise<any>;
|
|
3
|
+
/**
|
|
4
|
+
* Convert human-readable strings to cron expressions
|
|
5
|
+
* Based on common patterns and schedules
|
|
6
|
+
*/
|
|
7
|
+
declare function parseCronExpression(input: any): any;
|
|
8
|
+
export declare let type: string;
|
|
9
|
+
export declare let source: string;
|
|
10
|
+
export declare let prefix: string;
|
|
11
|
+
export declare let syntax: string;
|
|
12
|
+
export declare let description: string;
|
|
13
|
+
export { cronRefSyntax as match, getValueFromCron as resolver, parseCronExpression as _parseCronExpression };
|
|
14
|
+
//# sourceMappingURL=valueFromCron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromCron.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromCron.js"],"names":[],"mappings":"AACA,oCAAkF;AAiNlF,8EAiCC;AAhPD;;;GAGG;AACH,sDAyMC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const envRefSyntax: RegExp;
|
|
2
|
+
declare function getValueFromEnv(variableString: any): Promise<string | NodeJS.ProcessEnv>;
|
|
3
|
+
export declare let type: string;
|
|
4
|
+
export declare let source: string;
|
|
5
|
+
export declare let syntax: string;
|
|
6
|
+
export declare let description: string;
|
|
7
|
+
export { envRefSyntax as match, getValueFromEnv as resolver };
|
|
8
|
+
//# sourceMappingURL=valueFromEnv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromEnv.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromEnv.js"],"names":[],"mappings":"AACA,mCAAqC;AAErC,2FAmBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const evalRefSyntax: RegExp;
|
|
2
|
+
declare function getValueFromEval(variableString: any): Promise<any>;
|
|
3
|
+
export declare let type: string;
|
|
4
|
+
export declare let source: string;
|
|
5
|
+
export declare let description: string;
|
|
6
|
+
export { evalRefSyntax as match, getValueFromEval as resolver };
|
|
7
|
+
//# sourceMappingURL=valueFromEval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromEval.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromEval.js"],"names":[],"mappings":"AACA,oCAA+C;AAE/C,qEA2BC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a value from a file reference
|
|
3
|
+
* @param {object} ctx - Context object with instance properties
|
|
4
|
+
* @param {string} ctx.configPath - Base path for file resolution
|
|
5
|
+
* @param {Array} ctx.fileRefsFound - Mutable array tracking file refs
|
|
6
|
+
* @param {RegExp} ctx.variableSyntax - Regex for variable syntax
|
|
7
|
+
* @param {object} ctx.variablesKnownTypes - Known variable types
|
|
8
|
+
* @param {object} ctx.variableTypes - Variable types
|
|
9
|
+
* @param {object} ctx.opts - Options object
|
|
10
|
+
* @param {object} ctx.originalConfig - Original config
|
|
11
|
+
* @param {object} ctx.config - Current config
|
|
12
|
+
* @param {Function} ctx.getDeeperValue - Method for nested lookups
|
|
13
|
+
* @param {RegExp} ctx.fileRefSyntax - Regex for file() syntax
|
|
14
|
+
* @param {RegExp} ctx.textRefSyntax - Regex for text() syntax
|
|
15
|
+
* @param {string} variableString - The variable string to resolve
|
|
16
|
+
* @param {object} options - Resolution options
|
|
17
|
+
* @returns {Promise<any>}
|
|
18
|
+
*/
|
|
19
|
+
export function getValueFromFile(ctx: {
|
|
20
|
+
configPath: string;
|
|
21
|
+
fileRefsFound: any[];
|
|
22
|
+
variableSyntax: RegExp;
|
|
23
|
+
variablesKnownTypes: object;
|
|
24
|
+
variableTypes: object;
|
|
25
|
+
opts: object;
|
|
26
|
+
originalConfig: object;
|
|
27
|
+
config: object;
|
|
28
|
+
getDeeperValue: Function;
|
|
29
|
+
fileRefSyntax: RegExp;
|
|
30
|
+
textRefSyntax: RegExp;
|
|
31
|
+
}, variableString: string, options: object): Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Parse file contents based on file extension
|
|
34
|
+
* @param {string} content - Raw file contents
|
|
35
|
+
* @param {string} filePath - File path (used to determine extension)
|
|
36
|
+
* @returns {*} Parsed content
|
|
37
|
+
*/
|
|
38
|
+
export function parseFileContents(content: string, filePath: string): any;
|
|
39
|
+
/**
|
|
40
|
+
* Parses variable string to extract module reference path
|
|
41
|
+
* Supports both : and . as separators for module references
|
|
42
|
+
* @param {string} variableString - The full variable string
|
|
43
|
+
* @param {string} matchedFileString - The matched file path portion
|
|
44
|
+
* @returns {{ variableArray: string[], moduleName: string|null }}
|
|
45
|
+
*/
|
|
46
|
+
export function parseModuleReference(variableString: string, matchedFileString: string): {
|
|
47
|
+
variableArray: string[];
|
|
48
|
+
moduleName: string | null;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Extracts deep properties from variable string after file match
|
|
52
|
+
* @param {string} variableString - The full variable string
|
|
53
|
+
* @param {string} matchedFileString - The matched file path portion
|
|
54
|
+
* @param {boolean} [includeFirstProperty=false] - Include first property (for default exports)
|
|
55
|
+
* @returns {string[]} Array of property keys to traverse
|
|
56
|
+
*/
|
|
57
|
+
export function extractDeepProperties(variableString: string, matchedFileString: string, includeFirstProperty?: boolean): string[];
|
|
58
|
+
//# sourceMappingURL=valueFromFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromFile.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromFile.js"],"names":[],"mappings":"AAkEA;;;;;;;;;;;;;;;;;GAiBG;AACH,sCAfG;IAAoB,UAAU,EAAtB,MAAM;IACK,aAAa;IACZ,cAAc,EAA1B,MAAM;IACM,mBAAmB,EAA/B,MAAM;IACM,aAAa,EAAzB,MAAM;IACM,IAAI,EAAhB,MAAM;IACM,cAAc,EAA1B,MAAM;IACM,MAAM,EAAlB,MAAM;IACQ,cAAc;IAChB,aAAa,EAAzB,MAAM;IACM,aAAa,EAAzB,MAAM;CACd,kBAAQ,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CA8SxB;AAxVD;;;;;GAKG;AACH,2CAJW,MAAM,YACN,MAAM,GACJ,GAAC,CAoBb;AAkUD;;;;;;GAMG;AACH,qDAJW,MAAM,qBACN,MAAM,GACJ;IAAE,aAAa,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,IAAI,CAAA;CAAE,CAkBhE;AAED;;;;;;GAMG;AACH,sDALW,MAAM,qBACN,MAAM,yBACN,OAAO,GACL,MAAM,EAAE,CAcpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function _exports(cwd: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
source: string;
|
|
4
|
+
prefix: string;
|
|
5
|
+
syntax: string;
|
|
6
|
+
description: string;
|
|
7
|
+
match: RegExp;
|
|
8
|
+
resolver: (variableString: any) => Promise<any>;
|
|
9
|
+
};
|
|
10
|
+
export = _exports;
|
|
11
|
+
//# sourceMappingURL=valueFromGit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromGit.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromGit.js"],"names":[],"mappings":"AAiViB;;;;;;;;EAUhB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare function isNumberVariable(variableString: any): any;
|
|
2
|
+
declare function getValueFromNumber(variableString: any): Promise<number>;
|
|
3
|
+
export declare let type: string;
|
|
4
|
+
export declare let internal: boolean;
|
|
5
|
+
export { isNumberVariable as match, getValueFromNumber as resolver };
|
|
6
|
+
//# sourceMappingURL=valueFromNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromNumber.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromNumber.js"],"names":[],"mappings":"AAEA,4DAGC;AAED,0EAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const optRefSyntax: RegExp;
|
|
2
|
+
declare function getValueFromOptions(variableString: any, options: any): Promise<any>;
|
|
3
|
+
export declare let type: string;
|
|
4
|
+
export declare let source: string;
|
|
5
|
+
export declare let prefix: string;
|
|
6
|
+
export declare let syntax: string;
|
|
7
|
+
export declare let description: string;
|
|
8
|
+
export { optRefSyntax as match, getValueFromOptions as resolver };
|
|
9
|
+
//# sourceMappingURL=valueFromOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromOptions.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromOptions.js"],"names":[],"mappings":"AACA,mCAAqC;AAErC,sFASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=valueFromSelf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromSelf.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromSelf.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const stringRefSyntax: RegExp;
|
|
2
|
+
declare function getValueFromString(variableString: any): Promise<string>;
|
|
3
|
+
export declare let type: string;
|
|
4
|
+
export declare let internal: boolean;
|
|
5
|
+
export { stringRefSyntax as match, getValueFromString as resolver };
|
|
6
|
+
//# sourceMappingURL=valueFromString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueFromString.d.ts","sourceRoot":"","sources":["../../../src/resolvers/valueFromString.js"],"names":[],"mappings":"AAEA,sCAAiD;AAEjD,0EAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/sync.js"],"names":[],"mappings":"AASiB,qDAgCD,SAAI,kBAwCnB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export = PromiseTracker;
|
|
2
|
+
declare class PromiseTracker {
|
|
3
|
+
reset(): void;
|
|
4
|
+
promiseList: any[];
|
|
5
|
+
promiseMap: {};
|
|
6
|
+
startTime: number;
|
|
7
|
+
cursor: number;
|
|
8
|
+
start(): void;
|
|
9
|
+
interval: NodeJS.Timeout;
|
|
10
|
+
report(): void;
|
|
11
|
+
stop(): void;
|
|
12
|
+
add(variable: any, promise: any, specifier: any, hasFilter: any, promiseKey: any): any;
|
|
13
|
+
contains(variable: any): boolean;
|
|
14
|
+
get(variable: any, specifier: any): any;
|
|
15
|
+
getPending(): any[];
|
|
16
|
+
getSettled(): any[];
|
|
17
|
+
getAll(): any[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PromiseTracker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromiseTracker.d.ts","sourceRoot":"","sources":["../../../src/utils/PromiseTracker.js"],"names":[],"mappings":";AAGA;IAIE,cAKC;IAJC,mBAAqB;IACrB,eAAoB;IACpB,kBAA2B;IAC3B,eAAe;IAEjB,cAGC;IADC,yBAAyD;IAE3D,eAqBC;IACD,aAGC;IACD,uFA+BC;IACD,iCAEC;IACD,wCAIC;IACD,oBAEC;IACD,oBAEC;IACD,gBAEC;CACF"}
|