
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@awsless/lambda
Advanced tools
- Rename ViewableError to ExpectedError - Think of ways to type errors (TypeScript might need to figure this out first.)
import { lambda } from "@awsless/lambda";
// simple echo function
export default lambda({
handle(event) {
return event
}
})
import { lambda } from "@awsless/lambda";
import { object, string } from "@awsless/validate";
import { bugsnag } from "@awsless/bugsnag";
export default lambda({
// Validate the input
schema: object({
message: string()
}),
// Log errors to bugsnag
logger: bugsnag(),
handle({ message }) {
return message
}
})
import { lambda, invoke } from "@awsless/lambda";
import { string } from "@awsless/validate";
export const echo = lambda({
schema: string(),
handle(value) {
return value
}
})
export default lambda({
handle() {
// Providing the type definition of the lambda you want to invoke will give you type hinting for the payload and return value.
return invoke<typeof echo>({
name: 'echo',
payload: 'Hi'
})
}
})
import { mockLambda } from "@awsless/lambda";
const lambdas = mockLambda({
echo: a => a,
})
it('your test', async () => {
const result = await invoke({
name: 'echo',
payload: 'Hi'
})
expect(result).toBe('Hi')
expect(lambdas.echo).toBeCalled()
})
FAQs
- Rename ViewableError to ExpectedError - Think of ways to type errors (TypeScript might need to figure this out first.)
We found that @awsless/lambda demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.