Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/hydrate

Package Overview
Dependencies
Maintainers
6
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/hydrate - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

2

package.json
{
"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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc