@architect/inventory 3.5.1 → 3.5.3

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": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Architect project resource enumeration utility",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -53,6 +53,9 @@ module.exports = function setRuntimePlugins (params, project) {
53
53
  // Adhere to Postel's Law
54
54
  build = 'build'
55
55
  if (is.string(runtime.build)) build = runtime.build
56
+ if (type === 'compiled') {
57
+ runtime.baseRuntime = runtime.baseRuntime || 'provided.al2'
58
+ }
56
59
  }
57
60
  if (type === 'transpiled' && !allRuntimes.includes(baseRuntime)) {
58
61
  return errors.push(`Runtime '${name}' must include a valid baseRuntime property corresponding to a valid Lambda runtime (e.g. 'nodejs18.x')`)
package/src/env/index.js CHANGED
@@ -11,7 +11,8 @@ module.exports = function env (params, inventory, callback) {
11
11
  /* istanbul ignore next */
12
12
  try {
13
13
  // eslint-disable-next-line
14
- require('aws-sdk/lib/maintenance_mode_message').suppress = true
14
+ try { require('aws-sdk/lib/maintenance_mode_message').suppress = true }
15
+ catch { /* Noop */ }
15
16
  // eslint-disable-next-line
16
17
  var aws = require('aws-sdk')
17
18
  }