@architect/inventory 4.0.5 → 4.0.6
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@architect/inventory",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Architect project resource enumeration utility",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@architect/utils": "~4.0.6",
|
|
28
28
|
"@aws-lite/client": "^0.21.1",
|
|
29
29
|
"@aws-lite/ssm": "^0.2.3",
|
|
30
|
-
"lambda-runtimes": "~2.0.
|
|
30
|
+
"lambda-runtimes": "~2.0.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@architect/eslint-config": "~3.0.0",
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
"tap-arc": "^1.2.2",
|
|
41
41
|
"tape": "^5.7.5"
|
|
42
42
|
},
|
|
43
|
-
"eslintConfig": {
|
|
44
|
-
"extends": "@architect/eslint-config"
|
|
45
|
-
},
|
|
46
43
|
"nyc": {
|
|
47
44
|
"check-coverage": true,
|
|
48
45
|
"branches": 100,
|
|
@@ -21,6 +21,9 @@ module.exports = async function getPluginModules ({ arc, inventory, errors }) {
|
|
|
21
21
|
if (arc?.plugins?.length) tagPlugins(arc.plugins, 'plugin')
|
|
22
22
|
if (arc?.macros?.length) tagPlugins(arc.macros, 'macro')
|
|
23
23
|
|
|
24
|
+
let { node } = process.versions
|
|
25
|
+
let nodeVer = Number(node.split('.')[0])
|
|
26
|
+
|
|
24
27
|
for (let pluginItem of pluginItems) {
|
|
25
28
|
let { plugin, type } = pluginItem
|
|
26
29
|
let name
|
|
@@ -52,6 +55,9 @@ module.exports = async function getPluginModules ({ arc, inventory, errors }) {
|
|
|
52
55
|
if (type === 'plugin') {
|
|
53
56
|
try {
|
|
54
57
|
plugins[name] = require(pluginPath)
|
|
58
|
+
if (nodeVer >= 22 && plugins[name].default) {
|
|
59
|
+
plugins[name] = plugins[name].default
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
catch (err) {
|
|
57
63
|
if (hasEsmError(err)) {
|
|
@@ -152,6 +158,7 @@ function resolve (path, cwd) {
|
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
let esmErrors = [
|
|
161
|
+
'require() cannot be used on an ESM graph with top-level await. Use import() instead.',
|
|
155
162
|
'Cannot use import statement outside a module',
|
|
156
163
|
`Unexpected token 'export'`,
|
|
157
164
|
'require() of ES Module',
|