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 4.0.3 to 4.0.4

2

package.json
{
"name": "@architect/hydrate",
"version": "4.0.3",
"version": "4.0.4",
"description": "Architect dependency hydrator and shared file manager",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -10,2 +10,7 @@ let { renameSync, writeFileSync } = require('fs')

let asap = inventory.inv.http?.find(l => l.arcStaticAssetProxy)
if (asap) {
dirs.push(asap.src)
}
update.start('Finding dependencies')

@@ -72,2 +77,6 @@

let lambda = inventory.inv.lambdasBySrcDir[dir]
if (!lambda) {
lambda = inventory.inv.http?.find(l => l.arcStaticAssetProxy)
if (!lambda) throw ReferenceError(`Cannot find Lambda at: ${dir}`)
}
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check

@@ -74,0 +83,0 @@ let { runtime, hydrate } = lambda.config

@@ -70,2 +70,6 @@ let { existsSync } = require('fs')

let lambda = inventory.inv.lambdasBySrcDir[dir]
if (!lambda) {
lambda = inventory.inv.http?.find(l => l.arcStaticAssetProxy)
if (!lambda) throw ReferenceError(`Cannot find Lambda at: ${dir}`)
}
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check

@@ -72,0 +76,0 @@ let { config, name, pragma } = lambda

@@ -87,3 +87,9 @@ let { dirname, join, sep } = require('path')

prodFlag = isRoot ? '' : '--prod'
let localPnpm = exists(join(cwd, 'node_modules', 'pnpm'))
let localPnpm
try {
// eslint-disable-next-line
require.resolve('pnpm')
localPnpm = true
}
catch { /* noop */ }
let cmd = localPnpm ? `npx pnpm i ${prodFlag}` : `pnpm i ${prodFlag}`

@@ -93,3 +99,10 @@ exec(cmd, options, callback)

else if (isYarn) {
let localYarn = exists(join(cwd, 'node_modules', 'yarn'))
let localYarn
try {
// eslint-disable-next-line
require.resolve('yarn')
localYarn = true
}
catch { /* noop */ }
localYarn = true
let cmd = localYarn ? `npx yarn ${prodFlag}` : `yarn ${prodFlag}`

@@ -96,0 +109,0 @@ exec(cmd, options, callback)

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