Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@discordjs/collection

Package Overview
Dependencies
Maintainers
2
Versions
1196
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 0.2.1 to 0.2.2

dist/index.js.map

9

dist/index.d.ts

@@ -1,2 +0,2 @@

export interface CollectionConstructor {
interface CollectionConstructor {
new (): Collection<unknown, unknown>;

@@ -14,3 +14,3 @@ new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | null): Collection<K, V>;

*/
export declare class Collection<K, V> extends Map<K, V> {
declare class Collection<K, V> extends Map<K, V> {
static readonly default: typeof Collection;

@@ -326,3 +326,4 @@ ['constructor']: CollectionConstructor;

}
export declare type Comparator<K, V> = (firstValue: V, secondValue: V, firstKey: K, secondKey: K) => number;
export default Collection;
declare type Comparator<K, V> = (firstValue: V, secondValue: V, firstKey: K, secondKey: K) => number;
export { Collection, CollectionConstructor, Comparator, Collection as default };
{
"name": "@discordjs/collection",
"version": "0.2.1",
"version": "0.2.2",
"description": "Utility data structure used in Discord.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"lint": "eslint test src --ext .ts",
"lint:fix": "eslint test src --ext .ts --fix",
"pretest": "npm run build",
"test": "jest --pass-with-no-tests",
"test:ci": "jest --no-stack-trace --verbose --pass-with-no-tests",
"prebuild": "npm run lint",
"build": "rimraf dist/ && tsc",
"pretest": "npm run build",
"test": "jest",
"build": "tsup",
"lint": "eslint src --ext mjs,js,ts",
"lint:fix": "eslint src --ext mjs,js,ts --fix",
"format": "prettier --write **/*.{ts,js,json,yml,yaml}",
"prepare": "is-ci || husky install",
"docs": "docgen --jsdoc jsdoc.json --source src/*.ts src/**/*.ts --custom docs/index.yml --output docs/docs.json",
"docs:test": "docgen --jsdoc jsdoc.json --source src/*.ts src/**/*.ts --custom docs/index.yml"
"docs:test": "docgen --jsdoc jsdoc.json --source src/*.ts src/**/*.ts --custom docs/index.yml",
"release": "standard-version --preset angular"
},
"repository": {
"type": "git",
"url": "git+https://github.com/discordjs/collection.git"
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"directories": {
"lib": "src",
"test": "__tests__"
},
"files": [
"dist"
],
"contributors": [
"Crawl <icrawltogo@gmail.com>",
"Amish Shah <amishshah.2k@gmail.com>",
"SpaceEEC <spaceeec@yahoo.com>",
"Vlad Frangu <kingdgrizzle@gmail.com>"
],
"license": "Apache-2.0",
"keywords": [

@@ -26,81 +45,43 @@ "map",

],
"files": [
"!**/*.ts",
"**/*.d.ts",
"!package-lock.json"
],
"author": "Amish Shah <amishshah.2k@gmail.com>",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/discordjs/collection.git"
},
"bugs": {
"url": "https://github.com/discordjs/collection/issues"
},
"homepage": "https://github.com/discordjs/collection#readme",
"engines": {
"node": ">=14.0.0"
},
"homepage": "https://github.com/discordjs/collection",
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.14.8",
"@babel/preset-env": "^7.14.8",
"@babel/preset-typescript": "^7.14.5",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-angular": "^13.1.0",
"@types/jest": "^26.0.24",
"@types/node": "^16.4.8",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.28.5",
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-angular": "^13.2.0",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"discord.js-docgen": "discordjs/docgen#ts-patch",
"eslint": "^7.32.0",
"eslint": "^8.1.0",
"eslint-config-marine": "^9.0.6",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^4.3.7",
"jest": "^27.0.6",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"is-ci": "^3.0.1",
"jest": "^27.3.1",
"jsdoc-babel": "^0.5.0",
"lint-staged": "^11.1.1",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"typescript": "^4.3.5"
"lint-staged": "^11.2.6",
"prettier": "^2.4.1",
"standard-version": "^9.3.2",
"tsup": "^5.5.0",
"typescript": "^4.4.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix"
],
"*.{json,yml,yaml}": [
"prettier --write"
]
},
"commitlint": {
"extends": [
"@commitlint/config-angular"
],
"rules": {
"type-enum": [
2,
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"types",
"wip",
"src"
]
]
}
"publishConfig": {
"access": "public"
}
}

Sorry, the diff of this file is too big to display

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