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
0
Versions
1278
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

to
3.0.0-dev.1741219963-e273afbb9

5

dist/index.d.ts

@@ -511,2 +511,7 @@ /**

/**
* Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy | Map.groupBy()}
* but returns a Collection instead of a Map.
*/
static groupBy<Key, Item>(items: Iterable<Item>, keySelector: (item: Item, index: number) => Key): Collection<Key, Item[]>;
/**
* @internal

@@ -513,0 +518,0 @@ */

9

dist/index.js

@@ -602,6 +602,13 @@ "use strict";

}
/**
* Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy | Map.groupBy()}
* but returns a Collection instead of a Map.
*/
static groupBy(items, keySelector) {
return new this[Symbol.species](Map.groupBy(items, keySelector));
}
};
// src/index.ts
var version = "3.0.0-dev.1740874409-d1f56ffb2";
var version = "3.0.0-dev.1741219963-e273afbb9";
// Annotate the CommonJS export names for ESM import in node:

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

6

package.json
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/collection",
"version": "3.0.0-dev.1740874409-d1f56ffb2",
"version": "3.0.0-dev.1741219963-e273afbb9",
"description": "Utility data structure used in discord.js",

@@ -65,4 +65,4 @@ "exports": {

"vitest": "^2.1.8",
"@discordjs/scripts": "^0.1.0",
"@discordjs/api-extractor": "^7.38.1"
"@discordjs/api-extractor": "^7.38.1",
"@discordjs/scripts": "^0.1.0"
},

@@ -69,0 +69,0 @@ "engines": {

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