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

@discordjs/ws

Package Overview
Dependencies
Maintainers
0
Versions
1102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discordjs/ws - npm Package Compare versions

Comparing version 3.0.0-dev.1735603914-b81ad113a to 3.0.0-dev.1735690431-bc3a0c838

2

dist/defaultWorker.js

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

const diff = state.resetsAt - Date.now();
if (diff <= 5e3) {
if (diff > 0 && diff <= 5e3) {
const time = diff + Math.random() * 1500;

@@ -286,0 +286,0 @@ await (0, import_promises.setTimeout)(time);

import * as _discordjs_util from '@discordjs/util';
import { Awaitable } from '@discordjs/util';
import { GatewayDispatchPayload, GatewayReadyDispatchData, GatewaySendPayload, GatewayOpcodes, GatewayIntentBits, APIGatewayBotInfo, GatewayIdentifyProperties, GatewayPresenceUpdateData } from 'discord-api-types/v10';
import { GatewayDispatchPayload, GatewayReadyDispatchData, GatewaySendPayload, GatewayOpcodes, GatewayIntentBits, GatewayIdentifyProperties, GatewayPresenceUpdateData, APIGatewayBotInfo } from 'discord-api-types/v10';
import * as _discordjs_collection from '@discordjs/collection';

@@ -5,0 +5,0 @@ import { Collection } from '@discordjs/collection';

@@ -32,4 +32,4 @@ "use strict";

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
CloseCodes: () => CloseCodes,

@@ -59,3 +59,3 @@ CompressionMethod: () => CompressionMethod,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);

@@ -504,3 +504,3 @@ // src/strategies/context/IContextFetchingStrategy.ts

const diff = state.resetsAt - Date.now();
if (diff <= 5e3) {
if (diff > 0 && diff <= 5e3) {
const time = diff + Math.random() * 1500;

@@ -526,3 +526,3 @@ await (0, import_promises.setTimeout)(time);

})(CompressionMethod || {});
var DefaultDeviceProperty = `@discordjs/ws 3.0.0-dev.1735603914-b81ad113a`;
var DefaultDeviceProperty = `@discordjs/ws 3.0.0-dev.1735690431-bc3a0c838`;
var getDefaultSessionStore = (0, import_util.lazy)(() => new import_collection4.Collection());

@@ -1587,3 +1587,3 @@ var CompressionParameterMap = {

// src/index.ts
var version = "3.0.0-dev.1735603914-b81ad113a";
var version = "3.0.0-dev.1735690431-bc3a0c838";
// Annotate the CommonJS export names for ESM import in node:

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

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/ws",
"version": "3.0.0-dev.1735603914-b81ad113a",
"version": "3.0.0-dev.1735690431-bc3a0c838",
"description": "Wrapper around Discord's gateway",

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

"@vladfrangu/async_event_emitter": "^2.4.6",
"discord-api-types": "^0.37.109",
"discord-api-types": "^0.37.114",
"tslib": "^2.8.1",

@@ -78,4 +78,4 @@ "ws": "^8.18.0",

"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.8",
"@vitest/coverage-v8": "^2.1.5",
"@types/node": "^20.17.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",

@@ -87,9 +87,9 @@ "esbuild-plugin-version-injector": "^1.2.1",

"mock-socket": "^9.3.1",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"tsd": "^0.31.2",
"tsup": "^8.3.5",
"turbo": "^2.3.0",
"turbo": "^2.3.3",
"typescript": "~5.5.4",
"undici": "6.21.0",
"vitest": "^2.1.5",
"vitest": "^2.1.8",
"zlib-sync": "^0.1.9",

@@ -96,0 +96,0 @@ "@discordjs/scripts": "^0.1.0",

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

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