@znemz/cfn-include 2.1.4 → 2.1.5
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/bin/cli.js +9 -5
- package/lib/schema.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +6 -7
package/bin/cli.js
CHANGED
|
@@ -4,7 +4,6 @@ const exec = require('child_process').execSync;
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const _ = require('lodash');
|
|
6
6
|
const pathParse = require('path-parse');
|
|
7
|
-
const yargs = require('yargs');
|
|
8
7
|
|
|
9
8
|
const include = require('../index');
|
|
10
9
|
const yaml = require('../lib/yaml');
|
|
@@ -12,11 +11,14 @@ const Client = require('../lib/cfnclient');
|
|
|
12
11
|
const pkg = require('../package.json');
|
|
13
12
|
const replaceEnv = require('../lib/replaceEnv');
|
|
14
13
|
|
|
15
|
-
yargs.version(false);
|
|
16
|
-
|
|
17
14
|
const { env } = process;
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
|
|
16
|
+
(async () => {
|
|
17
|
+
const { default : yargs } = await import('yargs');
|
|
18
|
+
const { hideBin } = await import('yargs/helpers');
|
|
19
|
+
|
|
20
|
+
const opts = yargs(hideBin(process.argv))
|
|
21
|
+
.version(false)
|
|
20
22
|
.command('$0 [path] [options]', pkg.description, (y) =>
|
|
21
23
|
y.positional('path', {
|
|
22
24
|
positional: true,
|
|
@@ -189,3 +191,5 @@ promise
|
|
|
189
191
|
console.log(err.stack);
|
|
190
192
|
process.exit(1);
|
|
191
193
|
});
|
|
194
|
+
|
|
195
|
+
})();
|
package/lib/schema.js
CHANGED
|
@@ -103,7 +103,7 @@ const BANG_AMAZON_FUNCS = [
|
|
|
103
103
|
|
|
104
104
|
const EXPLICIT_AMAZON_FUNCS = BANG_AMAZON_FUNCS.map((f) => `Fn::${f}`);
|
|
105
105
|
|
|
106
|
-
module.exports = yaml.
|
|
106
|
+
module.exports = yaml.DEFAULT_SCHEMA.extend(tags);
|
|
107
107
|
|
|
108
108
|
module.exports.EXPLICIT_AMAZON_FUNCS = EXPLICIT_AMAZON_FUNCS;
|
|
109
109
|
module.exports.BANG_AMAZON_FUNCS = BANG_AMAZON_FUNCS;
|
package/lib/yaml.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@znemz/cfn-include",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Preprocessor for CloudFormation templates with support for loops and flexible include statements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"name": "Nicholas McCready",
|
|
22
22
|
"email": "nemtcan@gmail.com"
|
|
23
23
|
},
|
|
24
|
-
"main": "index.js",
|
|
25
24
|
"bin": {
|
|
26
25
|
"cfn-include": "bin/cli.js"
|
|
27
26
|
},
|
|
@@ -43,19 +42,19 @@
|
|
|
43
42
|
"dependencies": {
|
|
44
43
|
"@aws-sdk/client-cloudformation": "^3.637.0",
|
|
45
44
|
"@aws-sdk/client-s3": "^3.637.0",
|
|
46
|
-
"@znemz/cft-utils": "0.1.
|
|
45
|
+
"@znemz/cft-utils": "0.1.23",
|
|
47
46
|
"@znemz/sort-object": "^3.0.4",
|
|
48
47
|
"aws-sdk-v3-proxy": "2.2.0",
|
|
49
48
|
"bluebird": "^3.7.2",
|
|
50
49
|
"deepmerge": "^4.2.2",
|
|
51
|
-
"glob": "^
|
|
50
|
+
"glob": "^12.0.0",
|
|
52
51
|
"jmespath": "^0.16.0",
|
|
53
|
-
"js-yaml": "^
|
|
52
|
+
"js-yaml": "^4.1.1",
|
|
54
53
|
"jsonminify": "^0.4.1",
|
|
55
54
|
"lodash": "^4.17.21",
|
|
56
55
|
"path-parse": "~1.0.7",
|
|
57
56
|
"proxy-agent": "6.5.0",
|
|
58
|
-
"yargs": "~
|
|
57
|
+
"yargs": "~18.0.0"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
60
|
"@commitlint/cli": "^20",
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
"eslint-config-prettier": "10",
|
|
68
67
|
"eslint-plugin-mocha": "11",
|
|
69
68
|
"eslint-plugin-prettier": "5",
|
|
70
|
-
"mocha": "11.7.
|
|
69
|
+
"mocha": "11.7.5",
|
|
71
70
|
"npm-run-all": "4.1.5",
|
|
72
71
|
"prettier": "3",
|
|
73
72
|
"serve": "14.2.5",
|