New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@discordjs/collection

Package Overview
Dependencies
Maintainers
2
Versions
1252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discordjs/collection - npm Package Compare versions

Comparing version 3.0.0-dev.1737893068-0ab6abbcf to 3.0.0-dev.1737936741-3db8ce70a

10

dist/index.d.ts

@@ -7,9 +7,7 @@ /**

/**
* Ambient declaration to allow `this.constructor[@@species]` in class methods.
* Ambient declaration to allow references to `this.constructor` in class methods.
*
* @internal
*/
constructor: typeof Collection & {
readonly [Symbol.species]: typeof Collection;
};
constructor: typeof Collection;
}

@@ -513,2 +511,6 @@ /**

static combineEntries<Key, Value>(entries: Iterable<[Key, Value]>, combine: (firstValue: Value, secondValue: Value, key: Key) => Value): Collection<Key, Value>;
/**
* @internal
*/
static readonly [Symbol.species]: typeof Collection;
}

@@ -515,0 +517,0 @@ /**

4

dist/index.js

@@ -592,3 +592,3 @@ "use strict";

static combineEntries(entries, combine) {
const coll = new _Collection();
const coll = new this[Symbol.species]();
for (const [key, value] of entries) {

@@ -606,3 +606,3 @@ if (coll.has(key)) {

// src/index.ts
var version = "3.0.0-dev.1737893068-0ab6abbcf";
var version = "3.0.0-dev.1737936741-3db8ce70a";
// Annotate the CommonJS export names for ESM import in node:

@@ -609,0 +609,0 @@ 0 && (module.exports = {

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/collection",
"version": "3.0.0-dev.1737893068-0ab6abbcf",
"version": "3.0.0-dev.1737936741-3db8ce70a",
"description": "Utility data structure used in discord.js",

@@ -53,3 +53,3 @@ "exports": {

"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",

@@ -70,3 +70,3 @@ "cross-env": "^7.0.3",

"engines": {
"node": ">=20"
"node": ">=22.12.0"
},

@@ -78,3 +78,3 @@ "publishConfig": {

"scripts": {
"test": "vitest run",
"test": "vitest run --config ../../vitest.config.ts",
"build": "tsc --noEmit && tsup",

@@ -81,0 +81,0 @@ "build:docs": "tsc -p tsconfig.docs.json",

@@ -26,3 +26,3 @@ <div align="center">

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

@@ -29,0 +29,0 @@ ```sh

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc