@calvear/env 1.0.1 → 1.2.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/CHANGELOG.md +8 -0
- package/README.md +17 -13
- package/arguments.d.ts +3 -1
- package/arguments.d.ts.map +1 -1
- package/arguments.js +6 -0
- package/arguments.js.map +1 -1
- package/commands/env.command.d.ts.map +1 -1
- package/commands/env.command.js +23 -2
- package/commands/env.command.js.map +1 -1
- package/commands/export.command.d.ts.map +1 -1
- package/commands/export.command.js +4 -1
- package/commands/export.command.js.map +1 -1
- package/package.json +1 -1
- package/providers/app-settings.provider.js +1 -1
- package/providers/app-settings.provider.js.map +1 -1
- package/providers/secrets.provider.d.ts +1 -0
- package/providers/secrets.provider.d.ts.map +1 -1
- package/providers/secrets.provider.js +8 -2
- package/providers/secrets.provider.js.map +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/command.util.d.ts +1 -0
- package/utils/command.util.d.ts.map +1 -1
- package/utils/command.util.js +11 -8
- package/utils/command.util.js.map +1 -1
- package/utils/json.util.js +1 -1
- package/utils/json.util.js.map +1 -1
- package/utils/normalize.util.d.ts +1 -0
- package/utils/normalize.util.d.ts.map +1 -1
- package/utils/normalize.util.js +20 -3
- package/utils/normalize.util.js.map +1 -1
- package/utils/schema.util.d.ts +5 -1
- package/utils/schema.util.d.ts.map +1 -1
- package/utils/schema.util.js +50 -1
- package/utils/schema.util.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.0] - 2022-04-15
|
|
6
|
+
|
|
7
|
+
- expand options for interpolate env vars
|
|
8
|
+
|
|
9
|
+
## [1.1.0] - 2022-04-13
|
|
10
|
+
|
|
11
|
+
- schema validation refactor
|
|
12
|
+
|
|
5
13
|
## [1.0.1] - 2022-04-05
|
|
6
14
|
|
|
7
15
|
- No config file message log level changed from warning to silly
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ Eases NodeJS <b>environment variable handling</b>, like [env-cmd](https://www.np
|
|
|
54
54
|
|
|
55
55
|
## 📌 **Requirements**
|
|
56
56
|
|
|
57
|
-
First, [download](https://nodejs.org/) and install **NodeJS**. Version `
|
|
57
|
+
First, [download](https://nodejs.org/) and install **NodeJS**. Version `16` or higher is required.
|
|
58
58
|
|
|
59
59
|
Validate installed versions of node and npm with:
|
|
60
60
|
|
|
@@ -88,6 +88,7 @@ You can initialize a new npm project using:
|
|
|
88
88
|
added 1 packages, and audited 1 packages in 1s
|
|
89
89
|
|
|
90
90
|
found 0 vulnerabilities
|
|
91
|
+
|
|
91
92
|
> _
|
|
92
93
|
```
|
|
93
94
|
|
|
@@ -103,6 +104,7 @@ You can initialize a new npm project using:
|
|
|
103
104
|
env pull [options..]
|
|
104
105
|
env push [options..]
|
|
105
106
|
env schema [options..]
|
|
107
|
+
|
|
106
108
|
> _
|
|
107
109
|
```
|
|
108
110
|
|
|
@@ -160,6 +162,7 @@ console.log(`My environment loaded is: ${process.env.ENV}`);
|
|
|
160
162
|
13:32:00.116 INFO executing command > node dist/main.js
|
|
161
163
|
My environment loaded is: dev
|
|
162
164
|
13:32:00.232 INFO process finished successfully
|
|
165
|
+
|
|
163
166
|
> _
|
|
164
167
|
```
|
|
165
168
|
|
|
@@ -215,13 +218,14 @@ _`[[root]]/config-file.[[env]].json`_ will be _`config/config-file.dev.json`_.
|
|
|
215
218
|
|
|
216
219
|
### Global options
|
|
217
220
|
|
|
218
|
-
| Option | Description
|
|
219
|
-
| ---------------------------------- |
|
|
220
|
-
| `--help` | Shows help
|
|
221
|
-
| `--e, --env` | Environment for load
|
|
222
|
-
| `-m, --modes` | Execution modes
|
|
223
|
-
| `--nd, --nestingDelimiter` | Nesting level delimiter for flatten
|
|
224
|
-
| `--arrDesc, --arrayDescomposition` | Whether serialize or break down arrays
|
|
221
|
+
| Option | Description | Type | Default | Required? |
|
|
222
|
+
| ---------------------------------- | ----------------------------------------------- | ---------- | ------- | --------- |
|
|
223
|
+
| `--help` | Shows help | `boolean` | | No |
|
|
224
|
+
| `--e, --env` | Environment for load | `string` | | Yes |
|
|
225
|
+
| `-m, --modes` | Execution modes | `string[]` | `[]` | No |
|
|
226
|
+
| `--nd, --nestingDelimiter` | Nesting level delimiter for flatten | `string` | `__` | No |
|
|
227
|
+
| `--arrDesc, --arrayDescomposition` | Whether serialize or break down arrays | `boolean` | `false` | No |
|
|
228
|
+
| `-x, --expand` | Interpolates environment variables using itself | `boolean` | `false` | No |
|
|
225
229
|
|
|
226
230
|
</br>
|
|
227
231
|
|
|
@@ -401,18 +405,18 @@ In example:
|
|
|
401
405
|
"VAR1": "v1_default"
|
|
402
406
|
},
|
|
403
407
|
"|MODE|": {
|
|
404
|
-
"
|
|
408
|
+
"build": {
|
|
405
409
|
"NODE_ENV": "production"
|
|
406
410
|
},
|
|
407
|
-
"
|
|
411
|
+
"debug": {
|
|
408
412
|
"NODE_ENV": "development"
|
|
409
413
|
},
|
|
410
|
-
"
|
|
414
|
+
"test": {
|
|
411
415
|
"NODE_ENV": "test"
|
|
412
416
|
}
|
|
413
417
|
},
|
|
414
418
|
"|ENV|": {
|
|
415
|
-
"
|
|
419
|
+
"dev": {
|
|
416
420
|
"C1": "V1",
|
|
417
421
|
"C2": "V2",
|
|
418
422
|
"C3": 3,
|
|
@@ -433,7 +437,7 @@ In example:
|
|
|
433
437
|
| Option | Description | Type | Default | Required? |
|
|
434
438
|
| ----------------------- | ------------------------------------ | -------- | --------------------------- | --------- |
|
|
435
439
|
| `--ef, --envFile` | Environment variables file path | `string` | `[[root]]/appsettings.json` | No |
|
|
436
|
-
| `--sp, --sectionPrefix` | Prefix for env and modes in env file | `string` |
|
|
440
|
+
| `--sp, --sectionPrefix` | Prefix for env and modes in env file | `string` | `` | No |
|
|
437
441
|
|
|
438
442
|
</br>
|
|
439
443
|
|
package/arguments.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { JSONSchemaType } from 'ajv';
|
|
1
2
|
import { Arguments, Options } from 'yargs';
|
|
2
3
|
import { EnvProviderConfig } from './interfaces';
|
|
3
4
|
export interface CommandArguments extends Arguments {
|
|
4
5
|
env: string;
|
|
5
6
|
modes?: string[];
|
|
6
7
|
app?: Record<string, unknown>;
|
|
7
|
-
schema?: Record<string, object
|
|
8
|
+
schema?: Record<string, JSONSchemaType<object>>;
|
|
8
9
|
providers: EnvProviderConfig[];
|
|
9
10
|
nestingDelimiter: string;
|
|
10
11
|
arrayDescomposition: boolean;
|
|
12
|
+
expand: boolean;
|
|
11
13
|
root: string;
|
|
12
14
|
configFile: string;
|
|
13
15
|
schemaFile: string;
|
package/arguments.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../src/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AASjD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../src/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AASjD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC;AAGD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,gBAAgB,EAAE,OAAO,CAqGxD,CAAC"}
|
package/arguments.js
CHANGED
|
@@ -38,6 +38,12 @@ exports.args = {
|
|
|
38
38
|
default: false,
|
|
39
39
|
describe: 'Whether serialize or break down arrays'
|
|
40
40
|
},
|
|
41
|
+
expand: {
|
|
42
|
+
alias: 'x',
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
default: false,
|
|
45
|
+
describe: 'Interpolates environment variables using itself'
|
|
46
|
+
},
|
|
41
47
|
root: {
|
|
42
48
|
group: GROUPS.GROUP_WORKSPACE,
|
|
43
49
|
type: 'string',
|
package/arguments.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arguments.js","sourceRoot":"","sources":["../src/arguments.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"arguments.js","sourceRoot":"","sources":["../src/arguments.ts"],"names":[],"mappings":";;;AAGA,2CAAuD;AAEvD,MAAM,MAAM,GAAG;IACX,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,mBAAmB;IACpC,qBAAqB,EAAE,qBAAqB;CAC/C,CAAC;AAuBW,QAAA,IAAI,GAA4C;IACzD,GAAG,EAAE;QACD,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,sCAAsC;KACnD;IACD,KAAK,EAAE;QACH,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,mCAAmC;KAChD;IACD,SAAS,EAAE;QACP,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,oCAAwB;QACjC,QAAQ,EAAE,sCAAsC;KACnD;IACD,gBAAgB,EAAE;QACd,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,QAAQ,EACJ,kGAAkG;KACzG;IACD,mBAAmB,EAAE;QACjB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,wCAAwC;KACrD;IACD,MAAM,EAAE;QACJ,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,iDAAiD;KAC9D;IACD,IAAI,EAAE;QACF,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,iCAAiC;KAC9C;IACD,UAAU,EAAE;QACR,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,OAA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,EAAE,OAAO;QACb,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,EAAE;KACd;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.command.d.ts","sourceRoot":"","sources":["../../src/commands/env.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"env.command.d.ts","sourceRoot":"","sources":["../../src/commands/env.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYhD,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAGzD,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,cAAc,EAAE,OAAO,CAAC;CAC3B;AAQD,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,GAAG,EAAE,mBAAmB,CAyG9D,CAAC"}
|
package/commands/env.command.js
CHANGED
|
@@ -36,10 +36,31 @@ exports.envCommand = {
|
|
|
36
36
|
});
|
|
37
37
|
return builder;
|
|
38
38
|
},
|
|
39
|
-
handler: async ({ providers, ...argv }) => {
|
|
39
|
+
handler: async ({ providers, schemaValidate, expand, ...argv }) => {
|
|
40
|
+
var _a;
|
|
40
41
|
const results = await (0, utils_1.loadVariablesFromProviders)(providers, argv);
|
|
41
|
-
let env = (0, merge_deep_1.default)({ NODE_ENV: 'development' }, ...(0, utils_1.
|
|
42
|
+
let env = (0, merge_deep_1.default)({ NODE_ENV: 'development' }, ...(0, utils_1.flatResults)(results));
|
|
43
|
+
env = (0, utils_1.flatten)(env, argv.nestingDelimiter);
|
|
44
|
+
if (schemaValidate) {
|
|
45
|
+
let schema = {};
|
|
46
|
+
for (const { handler: { key } } of providers) {
|
|
47
|
+
const providerSchema = (_a = argv.schema) === null || _a === void 0 ? void 0 : _a[key];
|
|
48
|
+
if (providerSchema) {
|
|
49
|
+
schema = Object.assign(schema, (0, utils_1.flatSchema)(providerSchema, '', argv.nestingDelimiter));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const validator = (0, utils_1.createValidator)({
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: schema
|
|
55
|
+
});
|
|
56
|
+
if (!validator(env)) {
|
|
57
|
+
utils_1.logger.error('schema validation failed', validator.errors);
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
42
61
|
env = (0, utils_1.normalize)(env, argv.nestingDelimiter, argv.arrayDescomposition);
|
|
62
|
+
if (expand)
|
|
63
|
+
env = (0, utils_1.interpolate)(env, env);
|
|
43
64
|
utils_1.logger.debug('environment loaded:', env);
|
|
44
65
|
process.env = {
|
|
45
66
|
...process.env,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.command.js","sourceRoot":"","sources":["../../src/commands/env.command.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAA+B;AAC/B,iDAAsC;AAGtC,
|
|
1
|
+
{"version":3,"file":"env.command.js","sourceRoot":"","sources":["../../src/commands/env.command.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAA+B;AAC/B,iDAAsC;AAGtC,oCASkB;AAgBL,QAAA,UAAU,GAA4C;IAC/D,OAAO,EAAE,+BAA+B;IACxC,QAAQ,EAAE,2CAA2C;IACrD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO;aACF,OAAO,CAAC;YACL,MAAM,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,0CAA0C;aACvD;YACD,cAAc,EAAE;gBACZ,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,+CAA+C;aAC5D;SACJ,CAAC;aACD,OAAO,CACJ,oCAAoC,EAC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@
|
|
|
1
|
-
{"version":3,"file":"export.command.d.ts","sourceRoot":"","sources":["../../src/commands/export.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"export.command.d.ts","sourceRoot":"","sources":["../../src/commands/export.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYhD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE1B,GAAG,EAAE,MAAM,CAAC;CACf;AAQD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,EAAE,sBAAsB,CA6DpE,CAAC"}
|
|
@@ -30,10 +30,13 @@ exports.exportCommand = {
|
|
|
30
30
|
.example('env export -e prod -m build -f json --uri [[env]].env.json', 'Exports "prod" variables to a json file at root as "prod.env.json"');
|
|
31
31
|
return builder;
|
|
32
32
|
},
|
|
33
|
-
handler: async ({ providers, ...argv }) => {
|
|
33
|
+
handler: async ({ providers, expand, ...argv }) => {
|
|
34
34
|
const results = await (0, utils_1.loadVariablesFromProviders)(providers, argv);
|
|
35
35
|
let env = (0, merge_deep_1.default)({ NODE_ENV: 'development' }, ...(0, utils_1.flatAndValidateResults)(results, argv));
|
|
36
|
+
env = (0, utils_1.flatten)(env, argv.nestingDelimiter);
|
|
36
37
|
env = (0, utils_1.normalize)(env, argv.nestingDelimiter, argv.arrayDescomposition);
|
|
38
|
+
if (expand)
|
|
39
|
+
env = (0, utils_1.interpolate)(env, env);
|
|
37
40
|
utils_1.logger.debug('environment loaded:', env);
|
|
38
41
|
const { format, uri } = argv;
|
|
39
42
|
switch (format) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.command.js","sourceRoot":"","sources":["../../src/commands/export.command.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAG/B,
|
|
1
|
+
{"version":3,"file":"export.command.js","sourceRoot":"","sources":["../../src/commands/export.command.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAG/B,oCASkB;AAcL,QAAA,aAAa,GAA+C;IACrE,OAAO,EAAE,oBAAoB;IAC7B,QAAQ,EAAE,+DAA+D;IACzE,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO;aACF,OAAO,CAAC;YACL,GAAG,EAAE;gBACD,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC;gBACzB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;gBACf,QAAQ,EAAE,oCAAoC;aACjD;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE,GAAG;gBACV,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;gBAC3B,QAAQ,EAAE,6BAA6B;aAC1C;SACJ,CAAC;aACD,OAAO,CACJ,4BAA4B,EAC5B,4DAA4D,CAC/D;aACA,OAAO,CACJ,4DAA4D,EAC5D,oEAAoE,CACvE,CAAC;QAEN,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;QAC9C,MAAM,OAAO,GAAG,MAAM,IAAA,kCAA0B,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAElE,IAAI,GAAG,GAAG,IAAA,oBAAK,EACX,EAAE,QAAQ,EAAE,aAAa,EAAE,EAC3B,GAAG,IAAA,8BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,CAC3C,CAAC;QAGF,GAAG,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC1C,GAAG,GAAG,IAAA,iBAAS,EAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACtE,IAAI,MAAM;YAAE,GAAG,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAExC,cAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;QAEzC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAE7B,QAAQ,MAAM,EAAE;YACZ,KAAK,QAAQ;gBACT,MAAM,IAAA,wBAAgB,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gBACvC,MAAM;YAEV,KAAK,MAAM;gBACP,MAAM,IAAA,iBAAS,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gBAChC,MAAM;YAEV;gBACI,cAAM,CAAC,KAAK,CAAC,UAAU,MAAM,iBAAiB,CAAC,CAAC;SACvD;IACL,CAAC;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-settings.provider.js","sourceRoot":"","sources":["../../src/providers/app-settings.provider.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,oCAAuD;AAEvD,MAAM,GAAG,GAAG,cAAc,CAAC;AAE3B,MAAM,oBAAoB,GAAG;IACzB,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;CACd,CAAC;AAUW,QAAA,mBAAmB,GAA6C;IACzE,GAAG,EAAE,GAAG;IAER,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,OAAO,CAAC;YACZ,OAAO,EAAE;gBACL,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,+CAA+C;aAC5D;YACD,aAAa,EAAE;gBACX,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"app-settings.provider.js","sourceRoot":"","sources":["../../src/providers/app-settings.provider.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,oCAAuD;AAEvD,MAAM,GAAG,GAAG,cAAc,CAAC;AAE3B,MAAM,oBAAoB,GAAG;IACzB,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;CACd,CAAC;AAUW,QAAA,mBAAmB,GAA6C;IACzE,GAAG,EAAE,GAAG;IAER,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,OAAO,CAAC;YACZ,OAAO,EAAE;gBACL,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,+CAA+C;aAC5D;YACD,aAAa,EAAE;gBACX,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,sCAAsC;aACnD;SACJ,CAAC,CAAC;IACP,CAAC;IAED,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;;QACxD,MAAM,CAAC,WAAW,GAAG,oBAAoB,EAAE,QAAQ,CAAC,GAAG,MAAM,IAAA,gBAAQ,EACjE,OAAO,CACV,CAAC;QAEF,IAAI,CAAC,QAAQ,EAAE;YACX,cAAM,CAAC,IAAI,CAAC,GAAG,eAAK,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;YAEhD,cAAM,CAAC,KAAK,CAAC,oBAAoB,eAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAE7D,MAAM,IAAA,iBAAS,EAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;SAClD;QAED,OAAO;YACH,WAAW,CAAC,WAAW,CAAC;YAExB,MAAA,WAAW,CAAC,OAAO,CAAC,0CAAG,GAAG,aAAa,GAAG,GAAG,EAAE,CAAC;YAEhD,GAAG,KAAK,CAAC,GAAG,CACR,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,WAAW,CAAC,QAAQ,CAAC,0CAAG,GAAG,aAAa,GAAG,IAAI,EAAE,CAAC,CAAA,EAAA,CAC/D;SACJ,CAAC;IACN,CAAC;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.provider.d.ts","sourceRoot":"","sources":["../../src/providers/secrets.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAKD,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"secrets.provider.d.ts","sourceRoot":"","sources":["../../src/providers/secrets.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAKD,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,uBAAuB,CA+ChE,CAAC"}
|
|
@@ -11,18 +11,24 @@ exports.SecretsProvider = {
|
|
|
11
11
|
key: KEY,
|
|
12
12
|
builder: (builder) => {
|
|
13
13
|
builder.options({
|
|
14
|
+
secretsFolder: {
|
|
15
|
+
group: KEY,
|
|
16
|
+
type: 'string',
|
|
17
|
+
default: '[[root]]/secrets',
|
|
18
|
+
describe: 'Secret variables file path'
|
|
19
|
+
},
|
|
14
20
|
secretFile: {
|
|
15
21
|
group: KEY,
|
|
16
22
|
alias: 'sf',
|
|
17
23
|
type: 'string',
|
|
18
|
-
default: '[[
|
|
24
|
+
default: '[[secretsFolder]]/[[env]].env.json',
|
|
19
25
|
describe: 'Secret variables file path'
|
|
20
26
|
},
|
|
21
27
|
localSecretFile: {
|
|
22
28
|
group: KEY,
|
|
23
29
|
alias: 'lsf',
|
|
24
30
|
type: 'string',
|
|
25
|
-
default: '[[
|
|
31
|
+
default: '[[secretsFolder]]/[[env]].local.env.json',
|
|
26
32
|
describe: 'Local secret variables file path'
|
|
27
33
|
}
|
|
28
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.provider.js","sourceRoot":"","sources":["../../src/providers/secrets.provider.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,oCAA4C;AAE5C,MAAM,GAAG,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"secrets.provider.js","sourceRoot":"","sources":["../../src/providers/secrets.provider.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,oCAA4C;AAE5C,MAAM,GAAG,GAAG,SAAS,CAAC;AAWT,QAAA,eAAe,GAAyC;IACjE,GAAG,EAAE,GAAG;IAER,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,OAAO,CAAC;YACZ,aAAa,EAAE;gBACX,KAAK,EAAE,GAAG;gBACV,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,4BAA4B;aACzC;YACD,UAAU,EAAE;gBACR,KAAK,EAAE,GAAG;gBACV,KAAK,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modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2018.full.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts","../src/interfaces/loader.interface.ts","../src/interfaces/index.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/merge-deep/index.d.ts","../src/commands/env.command.ts","../src/utils/command.util.ts","../node_modules/subslate/dist/subslate.d.ts","../src/utils/interpolate.util.ts","../src/utils/json.util.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/tslog/dist/types/interfaces.d.ts","../node_modules/tslog/dist/types/loggerwithoutcallsite.d.ts","../node_modules/tslog/dist/types/logger.d.ts","../node_modules/tslog/dist/types/index.d.ts","../src/utils/logger.ts","../src/utils/normalize.util.ts","../node_modules/uri-js/dist/es5/uri.all.d.ts","../node_modules/ajv/dist/compile/codegen/code.d.ts","../node_modules/ajv/dist/compile/codegen/scope.d.ts","../node_modules/ajv/dist/compile/codegen/index.d.ts","../node_modules/ajv/dist/compile/rules.d.ts","../node_modules/ajv/dist/compile/util.d.ts","../node_modules/ajv/dist/compile/validate/subschema.d.ts","../node_modules/ajv/dist/compile/errors.d.ts","../node_modules/ajv/dist/compile/validate/index.d.ts","../node_modules/ajv/dist/compile/validate/datatype.d.ts","../node_modules/ajv/dist/vocabularies/applicator/additionalitems.d.ts","../node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts","../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../node_modules/ajv/dist/vocabularies/applicator/propertynames.d.ts","../node_modules/ajv/dist/vocabularies/applicator/additionalproperties.d.ts","../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../node_modules/ajv/dist/vocabularies/applicator/anyof.d.ts","../node_modules/ajv/dist/vocabularies/applicator/oneof.d.ts","../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../node_modules/ajv/dist/vocabularies/validation/limitnumber.d.ts","../node_modules/ajv/dist/vocabularies/validation/multipleof.d.ts","../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../node_modules/ajv/dist/vocabularies/validation/uniqueitems.d.ts","../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../node_modules/ajv/dist/vocabularies/format/format.d.ts","../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedproperties.d.ts","../node_modules/ajv/dist/vocabularies/unevaluated/unevaluateditems.d.ts","../node_modules/ajv/dist/vocabularies/validation/dependentrequired.d.ts","../node_modules/ajv/dist/vocabularies/discriminator/types.d.ts","../node_modules/ajv/dist/vocabularies/discriminator/index.d.ts","../node_modules/ajv/dist/vocabularies/errors.d.ts","../node_modules/ajv/dist/types/json-schema.d.ts","../node_modules/ajv/dist/types/jtd-schema.d.ts","../node_modules/ajv/dist/runtime/validation_error.d.ts","../node_modules/ajv/dist/compile/ref_error.d.ts","../node_modules/ajv/dist/core.d.ts","../node_modules/ajv/dist/compile/resolve.d.ts","../node_modules/ajv/dist/compile/index.d.ts","../node_modules/ajv/dist/types/index.d.ts","../node_modules/ajv/dist/ajv.d.ts","../node_modules/ajv-formats/dist/formats.d.ts","../node_modules/ajv-formats/dist/limit.d.ts","../node_modules/ajv-formats/dist/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/to-json-schema/index.d.ts","../src/utils/schema.util.ts","../src/utils/index.ts","../src/providers/app-settings.provider.ts","../src/providers/secrets.provider.ts","../src/providers/package-json.provider.ts","../src/providers/index.ts","../src/arguments.ts","../src/commands/export.command.ts","../src/commands/pull.command.ts","../src/commands/push.command.ts","../src/commands/schema.command.ts","../src/commands/index.ts","../src/exec.ts","../src/index.ts","../src/main.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/difflines.d.ts","../node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","7ac58c514222c349d17c6c6a573f0b13e1e3e74640a52c24d7fd44ea3206510c","e21214db03876cf6aa62b705854c3cf85085ba0f2604081cd45d2210bd6fdc58","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","a0e55afbb3ae89e8f0fddead1df495227f46fd85c59ff727c848bc7b79bf505c","7dde6a96a075804d5f10e28ac44f80d32131857b232733ba203efb7a7c89ff62","7bd08029c239748b55ad3f80831fea03693038c7bdc5bbeaa220d456c048a41a","79c05f66816f59ba956b12f6dd5b975628e74e96d3f93b6f22dbe428103c2c07","7ea002937230b94b3df44656399dc79bf706d367835ac895dfee10554645fb16","878fff23baec7c85710a42f56c86d9cdb6c71a227652c11e88c42a1a869c0a85","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","c4a35c80b3c420ac1be413808cb5873b01ed99df0f5b57888b06d1490abe785d","98c8be32d77ad011db4b2a47e5bf364d38b6b673ca1a7c5f4d9b2048bfa9d015","708fbc734aa5c2cd8b3273468edf360f204f8a5b92c81231202d43d25ad50099","01804e8ac37ae5de50a107245341a63e7bba07bada763a0dee2e7f828f8d256f","79da135b8e5d5139448b25d7a931af18c843f480148ee35db059fbb3f22a6fdb","c23d6a85c4f53164f5e5abd5fbf3d70688ccea9b95b3e3acb266ba20246510e1","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","44a8d350600656882fd7462774e32e8d13788313ba2e36d2e8d5437ac91b98df","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b8870b5155d11a273c75718a4f19026da49f91c548703858cd3400d06c3bd3b8","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","8d26ae32e5c9c080e44aee4a67e5ef02b5fda0604e6fecbb7b753c537e5282d9","05c4e792dae38912ba333725cdf8c42d242337d006c0d887f4ce5a7787871a95","cd44995ee13d5d23df17a10213fed7b483fabfd5ea08f267ab52c07ce0b6b4da","58ce1486f851942bd2d3056b399079bc9cb978ec933fe9833ea417e33eab676e","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","d3d0d11d30c9878ada3356b9c36a2754b8c7b6204a41c86bfb1488c08ce263b0","a6493f1f479637ed89a3ebec03f6dc117e3b1851d7e938ac4c8501396b8639a8","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9d00e3a59eff68fa8c40e89953083eeaad1c5b2580ed7da2304424b249ecb237","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","4430dea494b0ee77bf823d9a7c4850a539e1060d5d865316bb23fb393e4f01d7","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","66e655f7c43558bae6703242cbd6c0551a94d0a97204bd4c4bbf7e77f24d1f85","72f7b32e023814078046c036ed4b7ad92414be0aebb63e805c682e14103ae38a","a89d8e67966d085ff971c9900cfa1abdd9732bab66d9c1914ecc15befdf8623d","7dfd0308261bb91b058eb91802690fe3f09192b263e070a19df4d629df29e265","608eb9d411ac76e93a10e05f8aae92b3a5cefc87594219b737df7c8737ba2bd7","cde493e09daad4bb29922fe633f760be9f0e8e2f39cdca999cce3b8690b5e13a","3d7f9eb12aface876f7b535cc89dcd416daf77f0b3573333f16ec0a70bcf902a","93ba4ac36f570c70a12d588e21c10dda9f351fad3e77d416952acddb27bff01d","8750f9dc1e277ffff7446c95571bae61aca0984e8f99e40fc1e8cb7161ae0642","66408d81ba8962282b1a55da34c6bd767105141f54d0ba14dca330efe0c8f552","7481b9d93ca44eb1f689e0b939545ff00dead7bdb9daba401dfb74292d83f831","821e64ddbdfa10fac5f0aed1c1d4e1f275840400caa96357ddfd15d02e5afba1","18992725cbd51b0846132ec46237bc7de4da1db440deb66a6242e2de8715dcfb","44f29187cfbc7aa4a6109204c8e5186509abc3b78874a2ee1498c51ab50f0f62","19ab78c1376c16e18c5b87dfa750813c935f0c4ce1d6ef88058ec38f9cf5ef08","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","43ebeef6bf83eef39d935b01c7f7b95329f5a5539d12e89ef9367b3b6dbb9d76","b857bbe9f8c85b066aa65420cec24520688ed5d23b0210c98cc2b73e49513ddb","8b7fc9319fe4b9e308011284c772dcda31e809ce44e5ecf680ba44c4a19a2cb2","4909707a690cd4798b0225f8ea6d4b1d3feb9842c1e76117e3ccf9b5b485e565","0b706b461daa408c2c9bf9a49fda386a41f197946b5ea8952c8d4c4765f0d5a0","dd97dddb9f59aee9b53b74b2613d86d07b8bf8b63b044cdc9b90f44d8fd0ada6","a317a141ab9b87914d860ae0f5efe9f60e344eff5564807f0846a0fd94856a55","0a3ee0069efe320683accd69bb75262c1c2e41ad2f35b5d29d104c0eaead88d5","6ec75eb3209e74d6419778aca99aae32f1b11e219ee3aa01580bdc9c0dd70670","bdc3166dec92868173d959faeba5bf15633b02bf5cf3fb8ae7a3c55298e0d3a6","845ee3f9ff19d44c5705f8b5b327fd19fbe10c0230cb7644f6c7087c75ef0b5f","7c0270c458afa3bf4c3f8a544aff63df1bdc9d2c193f93a1d35d86c5fbcd8bc1","01e605d2608e2304c5ffc98c53be1111a8abaa656b4b9afb0dc413ecf4ea8cbb","5ba127b42f038420e421a6a284b9f057515a3f51383ea77881fe49a0daef23df","e915afd61aa321582c417a251e7324153ec711f8ccba677454d83cc0992d8e2c","76714fc7b9065987f79ffc088e7017c7535ded4766d08876ad5e0b9407b1a9ac","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298"],"options":{"declaration":true,"declarationMap":true,"downlevelIteration":false,"emitDecoratorMetadata":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"experimentalDecorators":true,"importHelpers":false,"module":1,"noFallthroughCasesInSwitch":false,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","removeComments":true,"skipLibCheck":false,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":5},"fileIdsList":[[98,177],[98],[98,177,178,179,180,181],[98,177,179],[71,98,105],[98,184],[98,185],[98,189,194],[55,98],[58,98],[59,64,98],[60,70,71,78,87,97,98],[60,61,70,78,98],[62,98],[63,64,71,79,98],[64,87,94,98],[65,67,70,78,98],[66,98],[67,68,98],[69,70,98],[70,98],[70,71,72,87,97,98],[70,71,72,87,98],[73,78,87,97,98],[70,71,73,74,78,87,94,97,98],[73,75,87,94,97,98],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],[70,76,98],[77,97,98],[67,70,78,87,98],[79,98],[80,98],[58,81,98],[82,96,98,102],[83,98],[84,98],[70,85,98],[85,86,98,100],[70,87,88,89,98],[87,89,98],[87,88,98],[90,98],[91,98],[70,92,93,98],[92,93,98],[64,78,87,94,98],[95,98],[78,96,98],[59,73,84,97,98],[64,98],[87,98,99],[98,100],[98,101],[59,64,70,72,81,87,97,98,100,102],[87,98,103],[98,160],[44,98],[98,156],[98,156,157,158],[98,115,116,120,147,148,152,154,155],[98,113,114],[98,113],[98,115,155],[98,115,116,152,153,155],[98,155],[98,112,155,156],[98,115,116,154,155],[98,115,116,118,119,154,155],[98,115,116,117,154,155],[98,115,116,120,147,148,149,150,151,154,155],[98,112,115,116,120,152,154],[98,120,155],[98,122,123,124,125,126,127,128,129,130,131,155],[98,145,155],[98,121,132,140,141,142,143,144,146],[98,125,155],[98,133,134,135,136,137,138,139,155],[98,187,190],[98,187,190,191,192],[98,189],[48,98,193],[98,188],[98,106,107,108],[98,105],[98,107,109],[98,105,106,108],[45,47,98,167],[45,48,49,60,98,163,168],[45,49,98,163,168],[50,98,169,170,171,172],[45,48,98,163,168],[45,98,163,168],[44,45,48,98,163,167,168,173],[47,98,110,168],[46,98],[45,98],[98,174],[47,48,98,163,168],[47,98,164,165,166],[47,98,168],[45,47,48,49,50,98,163,168],[51,53,54,98,110,111,162],[52,98],[71,72,79,80,98],[98,109],[98,156,159,161]],"referencedMap":[[179,1],[177,2],[182,3],[178,1],[180,4],[181,1],[183,5],[184,2],[185,6],[186,7],[195,8],[160,2],[49,2],[55,9],[56,9],[58,10],[59,11],[60,12],[61,13],[62,14],[63,15],[64,16],[65,17],[66,18],[67,19],[68,19],[69,20],[70,21],[71,22],[72,23],[57,2],[104,2],[73,24],[74,25],[75,26],[105,27],[76,28],[77,29],[78,30],[79,31],[80,32],[81,33],[82,34],[83,35],[84,36],[85,37],[86,38],[87,39],[89,40],[88,41],[90,42],[91,43],[92,44],[93,45],[94,46],[95,47],[96,48],[97,49],[98,50],[99,51],[100,52],[101,53],[102,54],[103,55],[196,2],[197,2],[198,2],[161,56],[44,2],[45,57],[157,58],[159,59],[158,58],[156,60],[113,2],[115,61],[114,62],[119,63],[154,64],[151,65],[153,66],[116,65],[117,67],[121,67],[120,68],[118,69],[152,70],[150,65],[155,71],[148,2],[149,2],[122,72],[127,65],[129,65],[124,65],[125,72],[131,65],[132,73],[123,65],[128,65],[130,65],[126,65],[146,74],[145,65],[147,75],[141,65],[143,65],[142,65],[138,65],[144,76],[139,65],[140,77],[133,65],[134,65],[135,65],[136,65],[137,65],[48,2],[187,2],[191,78],[193,79],[192,78],[190,80],[194,81],[189,82],[188,2],[52,2],[109,83],[106,84],[108,85],[107,86],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[43,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,2],[168,87],[50,88],[169,89],[173,90],[170,91],[171,91],[172,92],[174,93],[175,94],[47,95],[46,96],[176,97],[164,98],[167,99],[166,100],[165,98],[51,101],[163,102],[53,103],[54,104],[110,105],[111,2],[162,106]],"exportedModulesMap":[[179,1],[177,2],[182,3],[178,1],[180,4],[181,1],[183,5],[184,2],[185,6],[186,7],[195,8],[160,2],[49,2],[55,9],[56,9],[58,10],[59,11],[60,12],[61,13],[62,14],[63,15],[64,16],[65,17],[66,18],[67,19],[68,19],[69,20],[70,21],[71,22],[72,23],[57,2],[104,2],[73,24],[74,25],[75,26],[105,27],[76,28],[77,29],[78,30],[79,31],[80,32],[81,33],[82,34],[83,35],[84,36],[85,37],[86,38],[87,39],[89,40],[88,41],[90,42],[91,43],[92,44],[93,45],[94,46],[95,47],[96,48],[97,49],[98,50],[99,51],[100,52],[101,53],[102,54],[103,55],[196,2],[197,2],[198,2],[161,56],[44,2],[45,57],[157,58],[159,59],[158,58],[156,60],[113,2],[115,61],[114,62],[119,63],[154,64],[151,65],[153,66],[116,65],[117,67],[121,67],[120,68],[118,69],[152,70],[150,65],[155,71],[148,2],[149,2],[122,72],[127,65],[129,65],[124,65],[125,72],[131,65],[132,73],[123,65],[128,65],[130,65],[126,65],[146,74],[145,65],[147,75],[141,65],[143,65],[142,65],[138,65],[144,76],[139,65],[140,77],[133,65],[134,65],[135,65],[136,65],[137,65],[48,2],[187,2],[191,78],[193,79],[192,78],[190,80],[194,81],[189,82],[188,2],[52,2],[109,83],[106,84],[108,85],[107,86],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[43,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,2],[168,87],[50,88],[169,89],[173,90],[170,91],[171,91],[172,92],[174,93],[175,94],[47,95],[46,96],[176,97],[164,98],[167,99],[166,100],[165,98],[51,101],[163,102],[53,103],[54,104],[110,105],[111,2],[162,106]],"semanticDiagnosticsPerFile":[179,177,182,178,180,181,183,184,185,186,195,160,49,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,57,104,73,74,75,105,76,77,78,79,80,81,82,83,84,85,86,87,89,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,196,197,198,161,44,45,157,159,158,156,113,115,114,119,154,151,153,116,117,121,120,118,152,150,155,148,149,122,127,129,124,125,131,132,123,128,130,126,146,145,147,141,143,142,138,144,139,140,133,134,135,136,137,48,187,191,193,192,190,194,189,188,52,109,106,108,107,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,43,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,1,42,11,10,112,168,50,169,173,170,171,172,174,175,47,46,176,164,167,166,165,51,163,53,54,110,111,162]},"version":"4.6.3"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2018.full.d.ts","../node_modules/uri-js/dist/es5/uri.all.d.ts","../node_modules/ajv/dist/compile/codegen/code.d.ts","../node_modules/ajv/dist/compile/codegen/scope.d.ts","../node_modules/ajv/dist/compile/codegen/index.d.ts","../node_modules/ajv/dist/compile/rules.d.ts","../node_modules/ajv/dist/compile/util.d.ts","../node_modules/ajv/dist/compile/validate/subschema.d.ts","../node_modules/ajv/dist/compile/errors.d.ts","../node_modules/ajv/dist/compile/validate/index.d.ts","../node_modules/ajv/dist/compile/validate/datatype.d.ts","../node_modules/ajv/dist/vocabularies/applicator/additionalitems.d.ts","../node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts","../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../node_modules/ajv/dist/vocabularies/applicator/propertynames.d.ts","../node_modules/ajv/dist/vocabularies/applicator/additionalproperties.d.ts","../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../node_modules/ajv/dist/vocabularies/applicator/anyof.d.ts","../node_modules/ajv/dist/vocabularies/applicator/oneof.d.ts","../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../node_modules/ajv/dist/vocabularies/validation/limitnumber.d.ts","../node_modules/ajv/dist/vocabularies/validation/multipleof.d.ts","../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../node_modules/ajv/dist/vocabularies/validation/uniqueitems.d.ts","../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../node_modules/ajv/dist/vocabularies/format/format.d.ts","../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedproperties.d.ts","../node_modules/ajv/dist/vocabularies/unevaluated/unevaluateditems.d.ts","../node_modules/ajv/dist/vocabularies/validation/dependentrequired.d.ts","../node_modules/ajv/dist/vocabularies/discriminator/types.d.ts","../node_modules/ajv/dist/vocabularies/discriminator/index.d.ts","../node_modules/ajv/dist/vocabularies/errors.d.ts","../node_modules/ajv/dist/types/json-schema.d.ts","../node_modules/ajv/dist/types/jtd-schema.d.ts","../node_modules/ajv/dist/runtime/validation_error.d.ts","../node_modules/ajv/dist/compile/ref_error.d.ts","../node_modules/ajv/dist/core.d.ts","../node_modules/ajv/dist/compile/resolve.d.ts","../node_modules/ajv/dist/compile/index.d.ts","../node_modules/ajv/dist/types/index.d.ts","../node_modules/ajv/dist/ajv.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts","../src/interfaces/loader.interface.ts","../src/interfaces/index.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/merge-deep/index.d.ts","../src/commands/env.command.ts","../src/utils/command.util.ts","../node_modules/subslate/dist/subslate.d.ts","../src/utils/interpolate.util.ts","../src/utils/json.util.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/tslog/dist/types/interfaces.d.ts","../node_modules/tslog/dist/types/loggerwithoutcallsite.d.ts","../node_modules/tslog/dist/types/logger.d.ts","../node_modules/tslog/dist/types/index.d.ts","../src/utils/logger.ts","../src/utils/normalize.util.ts","../node_modules/ajv-formats/dist/formats.d.ts","../node_modules/ajv-formats/dist/limit.d.ts","../node_modules/ajv-formats/dist/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/to-json-schema/index.d.ts","../src/utils/schema.util.ts","../src/utils/index.ts","../src/providers/app-settings.provider.ts","../src/providers/secrets.provider.ts","../src/providers/package-json.provider.ts","../src/providers/index.ts","../src/arguments.ts","../src/commands/export.command.ts","../src/commands/pull.command.ts","../src/commands/push.command.ts","../src/commands/schema.command.ts","../src/commands/index.ts","../src/exec.ts","../src/index.ts","../src/main.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/difflines.d.ts","../node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","44a8d350600656882fd7462774e32e8d13788313ba2e36d2e8d5437ac91b98df","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b8870b5155d11a273c75718a4f19026da49f91c548703858cd3400d06c3bd3b8","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","8d26ae32e5c9c080e44aee4a67e5ef02b5fda0604e6fecbb7b753c537e5282d9","05c4e792dae38912ba333725cdf8c42d242337d006c0d887f4ce5a7787871a95","cd44995ee13d5d23df17a10213fed7b483fabfd5ea08f267ab52c07ce0b6b4da","58ce1486f851942bd2d3056b399079bc9cb978ec933fe9833ea417e33eab676e","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","d3d0d11d30c9878ada3356b9c36a2754b8c7b6204a41c86bfb1488c08ce263b0","a6493f1f479637ed89a3ebec03f6dc117e3b1851d7e938ac4c8501396b8639a8","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9d00e3a59eff68fa8c40e89953083eeaad1c5b2580ed7da2304424b249ecb237","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","4430dea494b0ee77bf823d9a7c4850a539e1060d5d865316bb23fb393e4f01d7","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","66e655f7c43558bae6703242cbd6c0551a94d0a97204bd4c4bbf7e77f24d1f85","72f7b32e023814078046c036ed4b7ad92414be0aebb63e805c682e14103ae38a","a89d8e67966d085ff971c9900cfa1abdd9732bab66d9c1914ecc15befdf8623d","7dfd0308261bb91b058eb91802690fe3f09192b263e070a19df4d629df29e265","608eb9d411ac76e93a10e05f8aae92b3a5cefc87594219b737df7c8737ba2bd7","cde493e09daad4bb29922fe633f760be9f0e8e2f39cdca999cce3b8690b5e13a","3d7f9eb12aface876f7b535cc89dcd416daf77f0b3573333f16ec0a70bcf902a","93ba4ac36f570c70a12d588e21c10dda9f351fad3e77d416952acddb27bff01d","8750f9dc1e277ffff7446c95571bae61aca0984e8f99e40fc1e8cb7161ae0642","66408d81ba8962282b1a55da34c6bd767105141f54d0ba14dca330efe0c8f552","7481b9d93ca44eb1f689e0b939545ff00dead7bdb9daba401dfb74292d83f831","821e64ddbdfa10fac5f0aed1c1d4e1f275840400caa96357ddfd15d02e5afba1","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","7ac58c514222c349d17c6c6a573f0b13e1e3e74640a52c24d7fd44ea3206510c","e21214db03876cf6aa62b705854c3cf85085ba0f2604081cd45d2210bd6fdc58","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","a0e55afbb3ae89e8f0fddead1df495227f46fd85c59ff727c848bc7b79bf505c","302052b7011138b5bfe17540b2d117bc38d12f830c7aafd2c5a6001de19b3c2f","c6f2af3fcc02d5eee6797258176a289d5797d4b7337d263ab2e8c6b875c5185d","79c05f66816f59ba956b12f6dd5b975628e74e96d3f93b6f22dbe428103c2c07","7ea002937230b94b3df44656399dc79bf706d367835ac895dfee10554645fb16","331ae2d44259389426bfbe88202c626addccfe45fc5dacfc932a563eca32d2d1","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","c4a35c80b3c420ac1be413808cb5873b01ed99df0f5b57888b06d1490abe785d","98c8be32d77ad011db4b2a47e5bf364d38b6b673ca1a7c5f4d9b2048bfa9d015","708fbc734aa5c2cd8b3273468edf360f204f8a5b92c81231202d43d25ad50099","01804e8ac37ae5de50a107245341a63e7bba07bada763a0dee2e7f828f8d256f","79da135b8e5d5139448b25d7a931af18c843f480148ee35db059fbb3f22a6fdb","63280f5a9a0833d3ecebe4b4fb3924d76f2ceb44dc5533ffb028ac18c25d2495","18992725cbd51b0846132ec46237bc7de4da1db440deb66a6242e2de8715dcfb","44f29187cfbc7aa4a6109204c8e5186509abc3b78874a2ee1498c51ab50f0f62","19ab78c1376c16e18c5b87dfa750813c935f0c4ce1d6ef88058ec38f9cf5ef08","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","43ebeef6bf83eef39d935b01c7f7b95329f5a5539d12e89ef9367b3b6dbb9d76","5e2056533e40092b6500db6214e28f347f389eaa3794681560789081155eba33","8b7fc9319fe4b9e308011284c772dcda31e809ce44e5ecf680ba44c4a19a2cb2","ac525974eee4cc1041a6df0f3795ec145f8fb4db0ed17e5a11f6258b5ee9f0b4","d9584ed6d577e9fc32ce977afc04259b7e880ca58f73c18da93f50900405e6e2","dd97dddb9f59aee9b53b74b2613d86d07b8bf8b63b044cdc9b90f44d8fd0ada6","a317a141ab9b87914d860ae0f5efe9f60e344eff5564807f0846a0fd94856a55","b6591c81e8e4469efa72b5f546666158f7725a4b72d47ca8ef6761fcd23ae3cc","1c84498cfbc0e75b7bc1b7c13ddf4ddf2811b9c2df77bad144876b668f4ba74b","bdc3166dec92868173d959faeba5bf15633b02bf5cf3fb8ae7a3c55298e0d3a6","845ee3f9ff19d44c5705f8b5b327fd19fbe10c0230cb7644f6c7087c75ef0b5f","7c0270c458afa3bf4c3f8a544aff63df1bdc9d2c193f93a1d35d86c5fbcd8bc1","01e605d2608e2304c5ffc98c53be1111a8abaa656b4b9afb0dc413ecf4ea8cbb","5ba127b42f038420e421a6a284b9f057515a3f51383ea77881fe49a0daef23df","e915afd61aa321582c417a251e7324153ec711f8ccba677454d83cc0992d8e2c","76714fc7b9065987f79ffc088e7017c7535ded4766d08876ad5e0b9407b1a9ac","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298"],"options":{"declaration":true,"declarationMap":true,"downlevelIteration":false,"emitDecoratorMetadata":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"experimentalDecorators":true,"importHelpers":false,"module":1,"noFallthroughCasesInSwitch":false,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","removeComments":true,"skipLibCheck":false,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":5},"fileIdsList":[[143,177],[143],[143,177,178,179,180,181],[143,177,179],[116,143,150],[143,184],[143,185],[143,189,194],[100,143],[103,143],[104,109,143],[105,115,116,123,132,142,143],[105,106,115,123,143],[107,143],[108,109,116,124,143],[109,132,139,143],[110,112,115,123,143],[111,143],[112,113,143],[114,115,143],[115,143],[115,116,117,132,142,143],[115,116,117,132,143],[118,123,132,142,143],[115,116,118,119,123,132,139,142,143],[118,120,132,139,142,143],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],[115,121,143],[122,142,143],[112,115,123,132,143],[124,143],[125,143],[103,126,143],[127,141,143,147],[128,143],[129,143],[115,130,143],[130,131,143,145],[115,132,133,134,143],[132,134,143],[132,133,143],[135,143],[136,143],[115,137,138,143],[137,138,143],[109,123,132,139,143],[140,143],[123,141,143],[104,118,129,142,143],[109,143],[132,143,144],[143,145],[143,146],[104,109,115,117,126,132,142,143,145,147],[132,143,148],[143,160],[89,143],[88,143],[88,143,157,158],[47,48,52,79,80,84,86,87,143],[45,46,143],[45,143],[47,87,143],[47,48,84,85,87,143],[87,143],[44,87,88,143],[47,48,86,87,143],[47,48,50,51,86,87,143],[47,48,49,86,87,143],[47,48,52,79,80,81,82,83,86,87,143],[44,47,48,52,84,86,143],[52,87,143],[54,55,56,57,58,59,60,61,62,63,87,143],[77,87,143],[53,64,72,73,74,75,76,78,143],[57,87,143],[65,66,67,68,69,70,71,87,143],[143,187,190],[143,187,190,191,192],[143,189],[93,143,193],[143,188],[143,151,152,153],[143,150],[143,152,154],[143,150,151,153],[88,90,92,143,167],[90,93,94,105,143,163,168],[90,94,143,163,168],[95,143,169,170,171,172],[90,93,143,163,168],[90,143,163,168],[89,90,93,143,163,167,168,173],[92,143,155,168],[91,143],[90,143],[143,174],[92,93,143,163,168],[92,143,164,165,166],[92,143,168],[90,92,93,94,95,143,163,168],[96,98,99,143,155,156,162],[97,143],[116,117,124,125,143],[143,154],[88,143,159,161]],"referencedMap":[[179,1],[177,2],[182,3],[178,1],[180,4],[181,1],[183,5],[184,2],[185,6],[186,7],[195,8],[160,2],[94,2],[100,9],[101,9],[103,10],[104,11],[105,12],[106,13],[107,14],[108,15],[109,16],[110,17],[111,18],[112,19],[113,19],[114,20],[115,21],[116,22],[117,23],[102,2],[149,2],[118,24],[119,25],[120,26],[150,27],[121,28],[122,29],[123,30],[124,31],[125,32],[126,33],[127,34],[128,35],[129,36],[130,37],[131,38],[132,39],[134,40],[133,41],[135,42],[136,43],[137,44],[138,45],[139,46],[140,47],[141,48],[142,49],[143,50],[144,51],[145,52],[146,53],[147,54],[148,55],[196,2],[197,2],[198,2],[161,56],[89,2],[90,57],[157,58],[159,59],[158,58],[88,60],[45,2],[47,61],[46,62],[51,63],[86,64],[83,65],[85,66],[48,65],[49,67],[53,67],[52,68],[50,69],[84,70],[82,65],[87,71],[80,2],[81,2],[54,72],[59,65],[61,65],[56,65],[57,72],[63,65],[64,73],[55,65],[60,65],[62,65],[58,65],[78,74],[77,65],[79,75],[73,65],[75,65],[74,65],[70,65],[76,76],[71,65],[72,77],[65,65],[66,65],[67,65],[68,65],[69,65],[93,2],[187,2],[191,78],[193,79],[192,78],[190,80],[194,81],[189,82],[188,2],[97,2],[154,83],[151,84],[153,85],[152,86],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[43,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[44,2],[168,87],[95,88],[169,89],[173,90],[170,91],[171,91],[172,92],[174,93],[175,94],[92,95],[91,96],[176,97],[164,98],[167,99],[166,100],[165,98],[96,101],[163,102],[98,103],[99,104],[155,105],[156,2],[162,106]],"exportedModulesMap":[[179,1],[177,2],[182,3],[178,1],[180,4],[181,1],[183,5],[184,2],[185,6],[186,7],[195,8],[160,2],[94,2],[100,9],[101,9],[103,10],[104,11],[105,12],[106,13],[107,14],[108,15],[109,16],[110,17],[111,18],[112,19],[113,19],[114,20],[115,21],[116,22],[117,23],[102,2],[149,2],[118,24],[119,25],[120,26],[150,27],[121,28],[122,29],[123,30],[124,31],[125,32],[126,33],[127,34],[128,35],[129,36],[130,37],[131,38],[132,39],[134,40],[133,41],[135,42],[136,43],[137,44],[138,45],[139,46],[140,47],[141,48],[142,49],[143,50],[144,51],[145,52],[146,53],[147,54],[148,55],[196,2],[197,2],[198,2],[161,56],[89,2],[90,57],[157,58],[159,59],[158,58],[88,60],[45,2],[47,61],[46,62],[51,63],[86,64],[83,65],[85,66],[48,65],[49,67],[53,67],[52,68],[50,69],[84,70],[82,65],[87,71],[80,2],[81,2],[54,72],[59,65],[61,65],[56,65],[57,72],[63,65],[64,73],[55,65],[60,65],[62,65],[58,65],[78,74],[77,65],[79,75],[73,65],[75,65],[74,65],[70,65],[76,76],[71,65],[72,77],[65,65],[66,65],[67,65],[68,65],[69,65],[93,2],[187,2],[191,78],[193,79],[192,78],[190,80],[194,81],[189,82],[188,2],[97,2],[154,83],[151,84],[153,85],[152,86],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[43,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[44,2],[168,87],[95,88],[169,89],[173,90],[170,91],[171,91],[172,92],[174,93],[175,94],[92,95],[91,96],[176,97],[164,98],[167,99],[166,100],[165,98],[96,101],[163,102],[98,103],[99,104],[155,105],[156,2],[162,106]],"semanticDiagnosticsPerFile":[179,177,182,178,180,181,183,184,185,186,195,160,94,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,102,149,118,119,120,150,121,122,123,124,125,126,127,128,129,130,131,132,134,133,135,136,137,138,139,140,141,142,143,144,145,146,147,148,196,197,198,161,89,90,157,159,158,88,45,47,46,51,86,83,85,48,49,53,52,50,84,82,87,80,81,54,59,61,56,57,63,64,55,60,62,58,78,77,79,73,75,74,70,76,71,72,65,66,67,68,69,93,187,191,193,192,190,194,189,188,97,154,151,153,152,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,43,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,1,42,11,10,44,168,95,169,173,170,171,172,174,175,92,91,176,164,167,166,165,96,163,98,99,155,156,162]},"version":"4.6.3"}
|
package/utils/command.util.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare function getSubcommand(rawArgv: string[], delimiters: [string, st
|
|
|
7
7
|
export declare function loadSchemaFile(argv: Record<string, unknown>, delimiters: [string, string]): Promise<Record<string, unknown> | undefined>;
|
|
8
8
|
export declare function loadProjectInfo(): Promise<Record<string, unknown> | undefined>;
|
|
9
9
|
export declare function loadVariablesFromProviders(providers: EnvProviderConfig[], argv: Partial<Arguments<EnvCommandArguments>>): Promise<EnvProviderResult[]>;
|
|
10
|
+
export declare function flatResults(results: EnvProviderResult[]): EnvProviderResult[] | never;
|
|
10
11
|
export declare function flatAndValidateResults(results: EnvProviderResult[], argv: Partial<Arguments<EnvCommandArguments>>): EnvProviderResult[] | never;
|
|
11
12
|
export declare function generateSchemaFrom(env: EnvProviderResult[], argv: Arguments<CommandArguments>): Promise<object>;
|
|
12
13
|
//# sourceMappingURL=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,mBAAmB,CAAC,CAAC,GAC9C,iBAAiB,EAAE,GAAG,KAAK,CAmB7B;AAYD,wBAAsB,kBAAkB,CACpC,GAAG,EAAE,iBAAiB,EAAE,EACxB,IAAI,EAAE,SAAS,CAAC,gBAAgB,CAAC,GAClC,OAAO,CAAC,MAAM,CAAC,CAoBjB"}
|
package/utils/command.util.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.generateSchemaFrom = exports.flatAndValidateResults = exports.loadVariablesFromProviders = exports.loadProjectInfo = exports.loadSchemaFile = exports.getSubcommand = exports.loadConfigFile = void 0;
|
|
29
|
+
exports.generateSchemaFrom = exports.flatAndValidateResults = exports.flatResults = exports.loadVariablesFromProviders = exports.loadProjectInfo = exports.loadSchemaFile = exports.getSubcommand = exports.loadConfigFile = void 0;
|
|
30
30
|
const chalk_1 = __importDefault(require("chalk"));
|
|
31
31
|
const merge_deep_1 = __importDefault(require("merge-deep"));
|
|
32
32
|
const utils_1 = require("../utils");
|
|
@@ -96,14 +96,17 @@ function loadVariablesFromProviders(providers, argv) {
|
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
98
98
|
exports.loadVariablesFromProviders = loadVariablesFromProviders;
|
|
99
|
+
function flatResults(results) {
|
|
100
|
+
return results.flatMap(({ value }) => {
|
|
101
|
+
if (Array.isArray(value))
|
|
102
|
+
value = (0, merge_deep_1.default)({}, ...value);
|
|
103
|
+
return value;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
exports.flatResults = flatResults;
|
|
99
107
|
function flatAndValidateResults(results, argv) {
|
|
100
|
-
if (!argv.schemaValidate)
|
|
101
|
-
return results
|
|
102
|
-
if (Array.isArray(value))
|
|
103
|
-
value = (0, merge_deep_1.default)({}, ...value);
|
|
104
|
-
return value;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
108
|
+
if (!argv.schemaValidate)
|
|
109
|
+
return flatResults(results);
|
|
107
110
|
const validators = (0, utils_1.createValidators)(argv.schema, argv.detectFormat);
|
|
108
111
|
return results.flatMap(({ key, value }) => {
|
|
109
112
|
if (Array.isArray(value))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.util.js","sourceRoot":"","sources":["../../src/utils/command.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4DAA+B;AAK/B,oCAOkB;AAQX,KAAK,UAAU,cAAc,CAChC,IAA6B,EAC7B,UAA4B;;IAE5B,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE;QACrC,MAAM,IAAI,GAAG,IAAA,mBAAW,EAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;QAE/C,IAAI,OAAO,EAAE;YACT,KAAK,MAAM,GAAG,IAAI,MAAM;gBAAE,MAAA,IAAI,CAAC,GAAG,qCAAR,IAAI,CAAC,GAAG,IAAM,MAAM,CAAC,GAAG,CAAC,EAAC;SACvD;aAAM;YACH,cAAM,CAAC,KAAK,CACR,eAAe,eAAK,CAAC,SAAS,CAAC,MAAM,CACjC,IAAI,CACP,4BAA4B,CAChC,CAAC;SACL;KACJ;AACL,CAAC;AAlBD,wCAkBC;AAWD,SAAgB,aAAa,CAAC,OAAiB,EAAE,UAA4B;IACzE,IAAI,UAAU,GAAa,EAAE,CAAC;IAG9B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK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,EAAC,GAAG,EAAE;YAC1B,QAAQ;YACR,OAAO,EAAE,EAAE,YAAY,EAAE;SAC5B,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,EAA6B,CAAC,CAAC;IAElC,IAAI,OAAO,KAAK,OAAO;QAAE,MAAM,GAAG,IAAA,oBAAK,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7D,MAAM,IAAA,iBAAS,EAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAE1C,OAAO,MAAM,CAAC;AAClB,CAAC;AAvBD,gDAuBC"}
|
package/utils/json.util.js
CHANGED
|
@@ -25,7 +25,7 @@ async function writeJson(path, content, overwrite = false) {
|
|
|
25
25
|
const exists = (0, fs_1.existsSync)(path);
|
|
26
26
|
if (exists && !overwrite)
|
|
27
27
|
return false;
|
|
28
|
-
await (0, promises_1.writeFile)(path, JSON.stringify(content, undefined, 4)
|
|
28
|
+
await (0, promises_1.writeFile)(path, `${JSON.stringify(content, undefined, 4)}\n`, 'utf8');
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
31
|
exports.writeJson = writeJson;
|
package/utils/json.util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.util.js","sourceRoot":"","sources":["../../src/utils/json.util.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,2BAAgC;AAChC,0CAAkD;AAUlD,SAAgB,WAAW,CAAC,QAAgB;IACxC,MAAM,IAAI,GAAG,YAAE,CAAC,OAAO,EAAE,CAAC;IAE1B,IAAI,IAAI,KAAK,SAAS;QAClB,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC;IAE5D,OAAO,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAPD,kCAOC;AAW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AC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AAC5D,CAAC;AAND,4BAMC;AAYM,KAAK,UAAU,SAAS,CAC3B,IAAY,EACZ,OAAgC,EAChC,SAAS,GAAG,KAAK;IAEjB,MAAM,MAAM,GAAG,IAAA,eAAU,EAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,MAAM,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAEvC,MAAM,IAAA,oBAAS,EAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAZD,8BAYC;AAYM,KAAK,UAAU,gBAAgB,CAClC,IAAY,EACZ,OAAgC,EAChC,SAAS,GAAG,KAAK;IAEjB,MAAM,MAAM,GAAG,IAAA,eAAU,EAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,MAAM,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAEvC,IAAI,IAAI,GAAG,EAAE,CAAC;IAEd,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE;QACvB,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,KAAK,GAAG,IAAI,KAAK,GAAG,CAAC;QAEpD,IAAI,IAAI,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;KAC/B;IAED,MAAM,IAAA,oBAAS,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAEpC,OAAO,IAAI,CAAC;AAChB,CAAC;AArBD,4CAqBC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export declare function flatten(obj: Record<string, any>, nestingDelimiter?: string, pkey?: string): Record<string, string>;
|
|
1
2
|
export declare function normalize(obj: Record<string, any>, nestingDelimiter?: string, arrayDescomposition?: boolean, pkey?: string): Record<string, string>;
|
|
2
3
|
//# sourceMappingURL=normalize.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.util.d.ts","sourceRoot":"","sources":["../../src/utils/normalize.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.util.d.ts","sourceRoot":"","sources":["../../src/utils/normalize.util.ts"],"names":[],"mappings":"AAYA,wBAAgB,OAAO,CACnB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxB,gBAAgB,SAAO,EACvB,IAAI,SAAK,GACV,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BxB;AAcD,wBAAgB,SAAS,CACrB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxB,gBAAgB,SAAO,EACvB,mBAAmB,UAAQ,EAC3B,IAAI,SAAK,GACV,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyCxB"}
|
package/utils/normalize.util.js
CHANGED
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalize = void 0;
|
|
4
|
-
function
|
|
3
|
+
exports.normalize = exports.flatten = void 0;
|
|
4
|
+
function flatten(obj, nestingDelimiter = '__', pkey = '') {
|
|
5
5
|
const flattened = {};
|
|
6
6
|
for (let key in obj) {
|
|
7
7
|
const value = obj[key];
|
|
8
8
|
const type = typeof value;
|
|
9
|
-
if (value ===
|
|
9
|
+
if (value === undefined || type === 'function')
|
|
10
10
|
continue;
|
|
11
11
|
if (key[0] === '#')
|
|
12
12
|
continue;
|
|
13
|
+
key = pkey + key;
|
|
14
|
+
if (value === null || type !== 'object' || Array.isArray(value)) {
|
|
15
|
+
flattened[key] = value;
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
Object.assign(flattened, flatten(value, nestingDelimiter, `${key}${nestingDelimiter}`));
|
|
19
|
+
}
|
|
20
|
+
return flattened;
|
|
21
|
+
}
|
|
22
|
+
exports.flatten = flatten;
|
|
23
|
+
function normalize(obj, nestingDelimiter = '__', arrayDescomposition = false, pkey = '') {
|
|
24
|
+
const flattened = {};
|
|
25
|
+
for (let key in obj) {
|
|
26
|
+
const value = obj[key];
|
|
27
|
+
const type = typeof value;
|
|
28
|
+
if (value === null || value === undefined || type === 'function')
|
|
29
|
+
continue;
|
|
13
30
|
key = pkey + key.replace('$', '');
|
|
14
31
|
if (type !== 'object') {
|
|
15
32
|
flattened[key] = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.util.js","sourceRoot":"","sources":["../../src/utils/normalize.util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"normalize.util.js","sourceRoot":"","sources":["../../src/utils/normalize.util.ts"],"names":[],"mappings":";;;AAYA,SAAgB,OAAO,CACnB,GAAwB,EACxB,gBAAgB,GAAG,IAAI,EACvB,IAAI,GAAG,EAAE;IAET,MAAM,SAAS,GAA2B,EAAE,CAAC;IAE7C,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC;QAE1B,IAAI,KAAK,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU;YAAE,SAAS;QAGzD,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;YAAE,SAAS;QAC7B,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;QAEjB,IAAI,KAAK,KAAK,IAAI,IAAI,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC7D,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAEvB,SAAS;SACZ;QAED,MAAM,CAAC,MAAM,CACT,SAAS,EACT,OAAO,CAA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EAAE,CAAC;QAElC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACnC,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;gBAC9B,MAAM,CAAC,MAAM,CACT,SAAS,EACT,SAAS,CACL,KAAK,CAAC,CAAC,CAAC,EACR,gBAAgB,EAChB,mBAAmB,EACnB,GAAG,GAAG,GAAG,CAAC,GAAG,gBAAgB,EAAE,CAClC,CACJ,CAAC;aACL;iBAAM;gBACH,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;aACtC;SACJ;KACJ;SAAM;QACH,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACzE;AACL,CAAC"}
|
package/utils/schema.util.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { ValidateFunction } from 'ajv';
|
|
1
|
+
import { JSONSchemaType, ValidateFunction } from 'ajv';
|
|
2
2
|
import { Options } from 'to-json-schema';
|
|
3
3
|
export declare function schemaFrom(json: Record<string, unknown>, options?: Options & {
|
|
4
4
|
nullable?: boolean;
|
|
5
5
|
}): Record<string, unknown>;
|
|
6
|
+
export declare function isJsonSchemaObject(schema: Record<string, unknown>): schema is JSONSchemaType<object>;
|
|
7
|
+
export declare function schemaToJson(schema: Record<string, unknown>, container?: Record<string, any>): unknown;
|
|
8
|
+
export declare function flatSchema(schema: Record<string, unknown>, parentKey?: string, nestingDelimiter?: string, container?: Record<string, any>): Record<string, unknown>;
|
|
9
|
+
export declare function createValidator(schema: Record<string, unknown>, enableFormats?: boolean): ValidateFunction;
|
|
6
10
|
export declare function createValidators(schemaLookup: Record<string, object>, enableFormats?: boolean): Record<string, ValidateFunction>;
|
|
7
11
|
//# sourceMappingURL=schema.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.util.d.ts","sourceRoot":"","sources":["../../src/utils/schema.util.ts"],"names":[],"mappings":"AAAA,OAAY,EAAU,gBAAgB,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.util.d.ts","sourceRoot":"","sources":["../../src/utils/schema.util.ts"],"names":[],"mappings":"AAAA,OAAY,EAAU,cAAc,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAEpE,OAAqB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AA+BvD,wBAAgB,UAAU,CACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,OAAO,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC3C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAazB;AAUD,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,MAAM,IAAI,cAAc,CAAC,MAAM,CAAC,CAIlC;AAWD,wBAAgB,YAAY,CACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GACpC,OAAO,CAST;AAaD,wBAAgB,UAAU,CACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,SAAS,SAAK,EACd,gBAAgB,SAAO,EACvB,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmBzB;AAaD,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,aAAa,UAAO,GACrB,gBAAgB,CAclB;AAaD,wBAAgB,gBAAgB,CAC5B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,aAAa,UAAO,GACrB,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAmBlC"}
|
package/utils/schema.util.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createValidators = exports.schemaFrom = void 0;
|
|
6
|
+
exports.createValidators = exports.createValidator = exports.flatSchema = exports.schemaToJson = exports.isJsonSchemaObject = exports.schemaFrom = void 0;
|
|
7
7
|
const ajv_1 = __importDefault(require("ajv"));
|
|
8
8
|
const ajv_formats_1 = __importDefault(require("ajv-formats"));
|
|
9
9
|
const to_json_schema_1 = __importDefault(require("to-json-schema"));
|
|
@@ -32,6 +32,55 @@ function schemaFrom(json, options) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
exports.schemaFrom = schemaFrom;
|
|
35
|
+
function isJsonSchemaObject(schema) {
|
|
36
|
+
if (schema.type === 'object')
|
|
37
|
+
return true;
|
|
38
|
+
return Array.isArray(schema.type) && schema.type.includes('object');
|
|
39
|
+
}
|
|
40
|
+
exports.isJsonSchemaObject = isJsonSchemaObject;
|
|
41
|
+
function schemaToJson(schema, container = {}) {
|
|
42
|
+
var _a;
|
|
43
|
+
if (isJsonSchemaObject(schema)) {
|
|
44
|
+
for (const key in schema.properties)
|
|
45
|
+
container[key] = schemaToJson(schema.properties[key]);
|
|
46
|
+
return container;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return (_a = schema.default) !== null && _a !== void 0 ? _a : (schema.nullable ? null : undefined);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.schemaToJson = schemaToJson;
|
|
53
|
+
function flatSchema(schema, parentKey = '', nestingDelimiter = '__', container = {}) {
|
|
54
|
+
if (isJsonSchemaObject(schema)) {
|
|
55
|
+
for (const key in schema.properties) {
|
|
56
|
+
if (key[0] === '#')
|
|
57
|
+
continue;
|
|
58
|
+
const subKey = parentKey + (parentKey ? nestingDelimiter : '') + key;
|
|
59
|
+
container = {
|
|
60
|
+
...container,
|
|
61
|
+
...flatSchema(schema.properties[key], subKey)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return container;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
return { [parentKey]: schema };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.flatSchema = flatSchema;
|
|
71
|
+
function createValidator(schema, enableFormats = true) {
|
|
72
|
+
const ajv = new ajv_1.default({
|
|
73
|
+
allErrors: true,
|
|
74
|
+
allowUnionTypes: true
|
|
75
|
+
});
|
|
76
|
+
if (enableFormats) {
|
|
77
|
+
(0, ajv_formats_1.default)(ajv, { mode: 'fast' });
|
|
78
|
+
for (const key in FORMAT_REGEXPS)
|
|
79
|
+
ajv.addFormat(key, FORMAT_REGEXPS[key]);
|
|
80
|
+
}
|
|
81
|
+
return ajv.compile(schema);
|
|
82
|
+
}
|
|
83
|
+
exports.createValidator = createValidator;
|
|
35
84
|
function createValidators(schemaLookup, enableFormats = true) {
|
|
36
85
|
const ajv = new ajv_1.default({
|
|
37
86
|
allErrors: true,
|
package/utils/schema.util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.util.js","sourceRoot":"","sources":["../../src/utils/schema.util.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"schema.util.js","sourceRoot":"","sources":["../../src/utils/schema.util.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoE;AACpE,8DAAqC;AACrC,oEAAuD;AAEvD,MAAM,cAAc,GAA2B;IAC3C,YAAY,EACR,+EAA+E;IAEnF,KAAK,EAAE,8VAA8V;IAErW,QAAQ,EAC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