
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
cdk-lambda-code
Advanced tools
Wrapper arroud @aws-cdk/aws-lambda Code to support mocking in test mode and configuration wtih package.json namespaces
Wrapper arroud @aws-cdk/aws-lambda Code to support mocking in test mode and configuration wtih package.json namespaces
:warning: This is experimental and subject to breaking changes.
// with npm
npm install cdk-lambda-code
// with yarn
yarn add cdk-lambda-code
fromPackageJson// package.json
{
"name": "construct",
"lambdaDependencies": {
"lambdaHandler": {
"runtime": "nodejs10.x",
"handler": "lib/index.handler",
"artifact": "lambda/bundle.zip"
}
}
}
// smaple-construct.ts
import { LambdaCode } from 'cdk-lambda-code';
new Function(this, 'LambdaFunction', {
...LambdaCode.fromPackageJson('lambdaHandler', {
cwd: __dirname,
mockInTestMode: true
})
});
fromFileAsInline// smaple-construct.ts
import { LambdaCode } from 'cdk-lambda-code';
new Function(this, 'LambdaFunction', {
code: LambdaCode.fromFileAsInline(path.join(__dirname, '..', 'handler.js'))
runtime: Runtime.NODEJS_10_X,
handler: 'index.handler'
});
FAQs
Wrapper arroud @aws-cdk/aws-lambda Code to support mocking in test mode and configuration wtih package.json namespaces
We found that cdk-lambda-code 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.