@architect/inventory 4.0.8 → 4.0.10-RC.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/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@architect/inventory",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10-RC.0",
|
|
4
4
|
"description": "Architect project resource enumeration utility",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "npm run lint && npm run test:integration && npm run coverage",
|
|
8
|
-
"test:nolint": "npm run test:integration && npm run coverage",
|
|
9
|
-
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-arc",
|
|
10
|
-
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-arc",
|
|
11
|
-
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",
|
|
12
7
|
"lint": "eslint . --fix",
|
|
8
|
+
"test": "npm run lint && npm run test:integration && npm run test:coverage",
|
|
9
|
+
"test:integration": "node --test --test-reporter=spec test/integration/*-test.js",
|
|
10
|
+
"test:coverage": "node --test --test-reporter=spec --experimental-test-coverage test/unit/**/*-test.js",
|
|
11
|
+
"test:unit": "node --test --test-reporter=spec test/unit/**/*-test.js",
|
|
13
12
|
"rc": "npm version prerelease --preid RC",
|
|
14
13
|
"vendor": "scripts/vendor"
|
|
15
14
|
},
|
|
16
15
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
16
|
+
"node": ">=20"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
20
19
|
"type": "git",
|
|
@@ -23,28 +22,15 @@
|
|
|
23
22
|
"license": "Apache-2.0",
|
|
24
23
|
"dependencies": {
|
|
25
24
|
"@architect/asap": "~7.0.10",
|
|
26
|
-
"@architect/parser": "~
|
|
27
|
-
"@architect/utils": "~
|
|
28
|
-
"@aws-lite/client": "^0.
|
|
29
|
-
"@aws-lite/ssm": "^0.2.
|
|
30
|
-
"lambda-runtimes": "~2.0.5"
|
|
25
|
+
"@architect/parser": "~8.0.1",
|
|
26
|
+
"@architect/utils": "~5.0.0",
|
|
27
|
+
"@aws-lite/client": "^0.23.2",
|
|
28
|
+
"@aws-lite/ssm": "^0.2.5"
|
|
31
29
|
},
|
|
32
30
|
"devDependencies": {
|
|
33
31
|
"@architect/eslint-config": "~3.0.0",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"mock-tmp": "~0.0.4",
|
|
38
|
-
"nyc": "~15.1.0",
|
|
39
|
-
"proxyquire": "~2.1.3",
|
|
40
|
-
"tap-arc": "^1.2.2",
|
|
41
|
-
"tape": "^5.7.5"
|
|
42
|
-
},
|
|
43
|
-
"nyc": {
|
|
44
|
-
"check-coverage": true,
|
|
45
|
-
"branches": 100,
|
|
46
|
-
"lines": 100,
|
|
47
|
-
"functions": 100,
|
|
48
|
-
"statements": 100
|
|
32
|
+
"dotenv": "~17.2.2",
|
|
33
|
+
"eslint": "~9.36.0",
|
|
34
|
+
"mock-tmp": "~0.0.4"
|
|
49
35
|
}
|
|
50
36
|
}
|
|
@@ -79,6 +79,10 @@ module.exports = async function getPluginModules ({ arc, inventory, errors }) {
|
|
|
79
79
|
if (type === 'macro') {
|
|
80
80
|
plugins[name] = { deploy: { start: require(pluginPath) } }
|
|
81
81
|
}
|
|
82
|
+
// Check the plugin has at least one recognised method configured
|
|
83
|
+
if (![ 'set', ...pluginMethods ].some((method) => plugins[name][method])) {
|
|
84
|
+
errors.push(`No recognized methods for plugin: ${name}`)
|
|
85
|
+
}
|
|
82
86
|
// Walk each plugin and build the method tree
|
|
83
87
|
Object.entries(plugins[name]).forEach(([ method, item ]) => {
|
|
84
88
|
// Primitive setters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let { aliases, runtimeList } = require('lambda-runtimes')
|
|
1
|
+
let { aliases, runtimeList } = require('@architect/utils/lambda-runtimes')
|
|
2
2
|
let { deepFrozenCopy } = require('@architect/utils')
|
|
3
3
|
let { is, validationPatterns } = require('../../../lib')
|
|
4
4
|
let { looserName } = validationPatterns
|
package/src/validate/config.js
CHANGED