Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@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.693.0 (2024-11-15)
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 3,715,223 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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.