
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@types/emilbayes__capped-array
Advanced tools
TypeScript definitions for @emilbayes/capped-array
npm install --save @types/emilbayes__capped-array
This package contains type definitions for @emilbayes/capped-array (https://github.com/emilbayes/capped-array#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emilbayes__capped-array.
// Type definitions for @emilbayes/capped-array 1.0
// Project: https://github.com/emilbayes/capped-array#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = CappedArray;
/**
* `CappedArray` inherited from `Array`.
*
* @example
* import CappedArray = require('@emilbayes/capped-array')
*
* const arr = new CappedArray(2) // max 2 elements
*
* arr.push('foo')
* arr.deleted // === 0
* arr.length // === 1
* arr.size // === 2
*
* arr.push('bar')
* arr.deleted // === 0
* arr.length // === 2
* arr.size // === 2
*
* arr.push('baz')
* arr.deleted // === 1
* arr.length // === 2
* arr.size // === 2
* // arr is now ['bar', 'baz']
*/
declare class CappedArray<T> extends Array<T> {
/**
* Create a new `CappedArray`.
*
* @param size The maximum size of the array.
*/
constructor(size: number);
/**
* The maximum size of the capped array.
*/
readonly size: number;
/**
* This property is updated on each mutation (`push`, `unshift`) that might have delete elements.
*/
readonly deleted: number;
}
These definitions were written by BendingBender.
FAQs
TypeScript definitions for @emilbayes/capped-array
The npm package @types/emilbayes__capped-array receives a total of 12 weekly downloads. As such, @types/emilbayes__capped-array popularity was classified as not popular.
We found that @types/emilbayes__capped-array 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

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.