
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@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.
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.

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.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.