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.1.4 to 3.1.5

13

changelog.md

@@ -5,2 +5,15 @@ # Architect Hydrate changelog

## [3.1.5] 2022-11-15
### Changed
- Changed `hydrate.copy` API to copy files into all Lambdas, not just those with shared code enabled
### Fixed
- Fixed issue where `hydrate.copy` plugins breaking on projects that disabled or aren't using shared code; thanks @tbeseda!
---
## [3.1.4] 2022-10-07

@@ -7,0 +20,0 @@

2

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

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

@@ -10,7 +10,6 @@ let { deepFrozenCopy } = require('@architect/utils')

let { inv } = inventory
let { lambdasBySrcDir } = inv
let { lambdasBySrcDir, lambdaSrcDirs } = inv
let { cwd } = inv._project
let copyPlugins = inv.plugins?._methods?.hydrate?.copy
let shared = inv.shared?.shared
if (copyPlugins && shared.length) {
if (copyPlugins && lambdaSrcDirs?.length) {
let frozen = deepFrozenCopy(inventory)

@@ -41,13 +40,11 @@ let { arc } = frozen.inv._project

// Sure what's one more nested sequence of ops?
series(shared.map(share => {
series(lambdaSrcDirs.map(dir => {
return function copier (callback) {
if (paths.shared[share]) {
let isNode = lambdasBySrcDir[share].config.runtime.startsWith('nodejs')
let filename = target || basename(source)
let nodeModules = join(share, 'node_modules', filename)
let vendorDir = join(share, 'vendor', filename)
let dest = isNode ? nodeModules : vendorDir
cp(src, dest, params, callback)
}
else callback()
let lambda = lambdasBySrcDir[dir]
let isNode = lambda.config.runtime.startsWith('nodejs')
let filename = target || basename(source)
let nodeModules = join(lambda.src, 'node_modules', filename)
let vendorDir = join(lambda.src, 'vendor', filename)
let dest = isNode ? nodeModules : vendorDir
cp(src, dest, params, callback)
}

@@ -54,0 +51,0 @@ }), function _done (err) {

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