@architect/hydrate
Advanced tools
Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "@architect/hydrate", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Architect dependency hydrator and shared file manager", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -44,4 +44,4 @@ let { existsSync, renameSync, writeFileSync } = require('fs') | ||
Object.values(inventory.inv.lambdasBySrcDir).forEach(lambda => { | ||
// Multi-tenant Lambda check | ||
if (Array.isArray(lambda)) lambda = lambda[0] | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
let { runtime, shared, views } = lambda.config | ||
@@ -73,3 +73,3 @@ if (!runtime.startsWith('nodejs')) return | ||
let lambda = inventory.inv.lambdasBySrcDir[dir] | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Handle multitenant Lambdae | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
let { config, name, pragma } = lambda | ||
@@ -76,0 +76,0 @@ let { runtime } = config |
@@ -119,2 +119,3 @@ let { globSync } = require('glob') | ||
let dirs = Object.entries(inv.lambdasBySrcDir).map(([ src, lambda ]) => { | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
let rel = stripCwd(src, cwd) | ||
@@ -121,0 +122,0 @@ let lambdaHasManifest = files.some(file => dirname(file) === rel) |
@@ -42,3 +42,3 @@ let { deepFrozenCopy } = require('@architect/utils') | ||
let lambda = lambdasBySrcDir[dir] | ||
if (Array.isArray(lambda)) lambda = lambda[0] | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
let isNode = lambda.config?.runtimeConfig?.baseRuntime?.startsWith('nodejs') || | ||
@@ -45,0 +45,0 @@ lambda.config.runtime.startsWith('nodejs') |
@@ -19,5 +19,4 @@ let { join } = require('path') | ||
// Account for multi-tenant Lambdas | ||
let item = lambdasBySrcDir[src] | ||
let lambda = Array.isArray(item) ? item[0] : item | ||
let lambda = lambdasBySrcDir[src] | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
let { config } = lambda | ||
@@ -24,0 +23,0 @@ let nodeModules = join(src, 'node_modules', '@architect') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60236
1152