Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@architect/hydrate
Advanced tools
Architect dependency hydrator and shared file manager
@architect/hydrate
@architect/hydrate ensures that all functions managed by architect have their dependencies installed. Functions containing all its required dependencies are considered to be 'hydrated' - thus the name!
@architect/hydrate supports dependencies managed in the following languages using the following package managers:
npm
using package.json
and package-lock.json
filespip3
using a requirements.txt
filebundle
using Gemfile
and Gemfile.lock
filesnpm install @architect/hydrate
Note: the process running
hydrate
must be the same as the root of the project it's hydrating. So if the project you're trying tohydrate
is located locally at/projects/myapp
and you're runninghydrate
from/scripts/hydrate
, you'll need to ensure youprocess.chdir('/projects/myapp')
prior to execution
hydrate(options)
options
object can include the following properties:
basepath
: What path hydrate should consider as the root for searching for functions to hydrate. Useful if you want to hydrate a subset of functions. Defaults to src
in the current working directory.install
: If truthy, will invoke hydrate.install()
.update
: If truthy, will invoke hydrate.update()
.By default, invokes hydrate.shared()
.
hydrate.install(options, callback)
Installs dependencies for all Functions found in the specified basepath
. Invokes hydrate.shared()
.
Note that for the default value of basepath='src'
, this means install
will also hydrate shared folders like src/shared
and src/views
.
To ensure local development behavior is as close to staging
and production
as possible, hydrate.install()
(and other hydrate functions) uses:
npm ci
if package-lock.json
is present and npm i
if notpip3 install
bundle install
hydrate.update(options, callback)
Updates dependencies in all Functions found in the specified basepath
. Invokes hydrate.shared()
. Note that this will only functionally differ from hydrate.install()
if you use a lockfile like package-lock.json
or Gemfile.lock
.
Note that for the default value of basepath='src'
, this means update
will also update dependencies in shared folders like src/shared
and src/views
.
update
is functionally almost identical to install
, except it will update dependencies to newer versions if they exist. This is done via:
npm update
pip3 install -U --upgrade-strategy eager
bundle update
hydrate.shared(options, callback)
Copies shared code (from src/shared
and src/views
) into all Functions.
FAQs
Architect dependency hydrator and shared file manager
The npm package @architect/hydrate receives a total of 463 weekly downloads. As such, @architect/hydrate popularity was classified as not popular.
We found that @architect/hydrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.