
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@y13i/apex.js
Advanced tools
Fork: add debug output to CloudWatch Logs.
Node.js module that makes AWS Lambda's user experience a little nicer.
export default λ(e => 'Hello World')
$ npm install --save apex.js
The following example fetches some urls and reports the response status of each. The context and callback are also passed, but are not shown here.
import axios from 'axios'
import λ from 'apex.js'
import 'babel-polyfill'
export default λ(e => {
console.log('fetching %d urls', e.urls.length)
return Promise.all(e.urls.map(async (url) => {
console.log('fetching %s', url)
return {
status: (await axios.get(url)).status,
url
}
}))
})
Without this module it looks something like the following, as Lambda does not try/catch, and the Context provided has awkward method names that are not idiomatic, or you must use the callback.
import axios from 'axios'
import 'babel-polyfill'
// Vanilla Lambda function.
export default async (e, ctx, cb) => {
console.log('fetching %d urls', e.urls.length)
try {
const res = await Promise.all(e.urls.map(async (url) => {
console.log('fetching %s', url)
return {
status: (await axios.get(url)).status,
url
}
}))
// or ctx.succeed(res);
cb(null, res);
} catch (err) {
// or ctx.fail(err);
cb(err);
}
}
tjholowaychuk.com · GitHub @tj · Twitter @tjholowaychuk
FAQs
λ improves AWS Lambda's UX with promises
The npm package @y13i/apex.js receives a total of 0 weekly downloads. As such, @y13i/apex.js popularity was classified as not popular.
We found that @y13i/apex.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.