Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@aws-sdk/middleware-recursion-detection
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-recursion-detection/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-recursion-detection) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-recursion-detectio
@aws-sdk/middleware-recursion-detection is a middleware package for the AWS SDK for JavaScript. It helps in detecting and preventing recursive calls in AWS SDK clients, which can be useful in avoiding infinite loops and ensuring the stability of your application.
Recursion Detection Middleware
This feature allows you to add recursion detection middleware to an AWS SDK client. The middleware helps in detecting recursive calls and prevents potential infinite loops.
const { S3Client } = require('@aws-sdk/client-s3');
const { recursionDetectionMiddleware } = require('@aws-sdk/middleware-recursion-detection');
const client = new S3Client({});
client.middlewareStack.add(recursionDetectionMiddleware, {
step: 'initialize',
name: 'recursionDetectionMiddleware',
tags: ['RECURSION_DETECTION'],
});
// Now you can use the client with recursion detection enabled
client.send(new ListBucketsCommand({}));
infinite-loop-detector is another package designed to detect infinite loops in JavaScript code. It provides a way to monitor and stop loops that exceed a certain iteration count, making it more general-purpose compared to @aws-sdk/middleware-recursion-detection, which is tailored for AWS SDK clients.
An internal package
You probably shouldn't, at least directly.
3.290.0 (2023-03-13)
FAQs
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-recursion-detection/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-recursion-detection) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-recursion-detectio
The npm package @aws-sdk/middleware-recursion-detection receives a total of 19,324,801 weekly downloads. As such, @aws-sdk/middleware-recursion-detection popularity was classified as popular.
We found that @aws-sdk/middleware-recursion-detection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.