@architect/inventory 3.5.5 → 3.5.7

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.5",
3
+ "version": "3.5.7",
4
4
  "description": "Architect project resource enumeration utility",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -47,6 +47,7 @@ module.exports = function configureTables ({ arc, inventory, errors }) {
47
47
  }
48
48
  if (key === 'stream') t.stream = value
49
49
  if (value === 'TTL') t.ttl = key
50
+ if (value === 'ttl') t.ttl = key
50
51
  if (key === 'encrypt') t.encrypt = value
51
52
  if (key === 'PITR') t.pitr = value
52
53
  if (key === 'pitr') t.pitr = value
@@ -7,11 +7,14 @@ module.exports = function checkFilePaths (inventory, errors) {
7
7
  if (!ascii.test(proj.src)) return err('Project source')
8
8
  if (proj.build && !ascii.test(proj.build)) return err('Build')
9
9
 
10
- let lambdas = inventory.lambdasBySrcDir
11
- if (lambdas){
12
- Object.values(lambdas).forEach(lambda => {
13
- let { name, pragma, src } = lambda
14
- if (!ascii.test(src)) err(`@${pragma} ${name} source`)
10
+ let { lambdasBySrcDir } = inventory
11
+ if (lambdasBySrcDir){
12
+ Object.values(lambdasBySrcDir).forEach(lambdae => {
13
+ if (!Array.isArray(lambdae)) lambdae = [ lambdae ] // Normalize possible multi-tenant Lambdas
14
+ lambdae.forEach(lambda => {
15
+ let { name, pragma, src } = lambda
16
+ if (!ascii.test(src)) err(`@${pragma} ${name} source`)
17
+ })
15
18
  })
16
19
  }
17
20
  }