Socket
Socket
Sign inDemoInstall

shoukaku

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shoukaku - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

23

dist/package.json
{
"name": "shoukaku",
"version": "3.2.2",
"version": "3.2.3",
"description": "A stable and updated wrapper around Lavalink",

@@ -42,17 +42,18 @@ "main": "dist/index.js",

"dependencies": {
"undici": "^5.8.0",
"ws": "^8.8.1"
"node-fetch": "^2.6.7",
"ws": "^8.11.0"
},
"devDependencies": {
"@augu/eslint-config": "^2.2.0",
"@types/node": "^18.0.0",
"@augu/eslint-config": "^3.0.0",
"@types/node": "^18.11.17",
"@types/node-fetch": "^2.6.2",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"eslint": "^8.17.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"eslint": "^8.23.0",
"gen-esm-wrapper": "^1.1.3",
"ts-node": "^10.8.1",
"typedoc": "^0.22.17",
"typescript": "^4.7.3"
"ts-node": "^10.9.1",
"typedoc": "^0.23.23",
"typescript": "^4.9.4"
}
}

@@ -6,5 +6,5 @@ /// <reference types="node" />

import { Connection } from './Connection';
export declare type TrackEndReason = 'FINISHED' | 'LOAD_FAILED' | 'STOPPED' | 'REPLACED' | 'CLEANUP';
export declare type Severity = 'COMMON' | 'SUSPICIOUS' | 'FAULT';
export declare type PlayerEventType = 'TrackStartEvent' | 'TrackEndEvent' | 'TrackExceptionEvent' | 'TrackStuckEvent' | 'WebSocketClosedEvent';
export type TrackEndReason = 'FINISHED' | 'LOAD_FAILED' | 'STOPPED' | 'REPLACED' | 'CLEANUP';
export type Severity = 'COMMON' | 'SUSPICIOUS' | 'FAULT';
export type PlayerEventType = 'TrackStartEvent' | 'TrackEndEvent' | 'TrackExceptionEvent' | 'TrackStuckEvent' | 'WebSocketClosedEvent';
/**

@@ -11,0 +11,0 @@ * Options when playing a new track

import { Node } from './Node';
import { NodeOption } from '../Shoukaku';
export declare type LoadType = 'TRACK_LOADED' | 'PLAYLIST_LOADED' | 'SEARCH_RESULT' | 'NO_MATCHES' | 'LOAD_FAILED';
export type LoadType = 'TRACK_LOADED' | 'PLAYLIST_LOADED' | 'SEARCH_RESULT' | 'NO_MATCHES' | 'LOAD_FAILED';
export interface Track {

@@ -5,0 +5,0 @@ track: string;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rest = void 0;
const undici_1 = require("undici");
const node_fetch_1 = __importDefault(require("node-fetch"));
/**

@@ -93,17 +96,13 @@ * Wrapper around Lavalink REST API

const timeout = setTimeout(() => abortController.abort(), this.node.manager.options.restTimeout || 15000);
const request = await (0, undici_1.fetch)(url.toString(), {
const request = await (0, node_fetch_1.default)(url.toString(), {
method: options.method?.toUpperCase() || 'GET',
headers: { ...headers, ...options.headers },
headers,
...((['GET', 'HEAD'].includes(options.method?.toUpperCase() || 'GET')) && options.body ? { body: JSON.stringify(options.body ?? {}) } : {}),
// @ts-expect-error
signal: abortController.signal
});
clearTimeout(timeout);
if (request.status && (request.status >= 400))
})
.finally(() => clearTimeout(timeout));
if (!request.ok)
throw new Error(`Rest request failed with response code: ${request.status}`);
if (!request.body)
return null;
const body = await request.json().catch(() => null);
if (!body)
return null;
return body;
return await request.json();
}

@@ -110,0 +109,0 @@ }

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

export declare type Constructor<T> = new (...args: any[]) => T;
export type Constructor<T> = new (...args: any[]) => T;
/**

@@ -3,0 +3,0 @@ * Merge the default options to user input

{
"name": "shoukaku",
"version": "3.2.2",
"version": "3.2.3",
"description": "A stable and updated wrapper around Lavalink",

@@ -42,17 +42,18 @@ "main": "dist/index.js",

"dependencies": {
"undici": "^5.8.0",
"ws": "^8.8.1"
"node-fetch": "^2.6.7",
"ws": "^8.11.0"
},
"devDependencies": {
"@augu/eslint-config": "^2.2.0",
"@types/node": "^18.0.0",
"@augu/eslint-config": "^3.0.0",
"@types/node": "^18.11.17",
"@types/node-fetch": "^2.6.2",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"eslint": "^8.17.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"eslint": "^8.23.0",
"gen-esm-wrapper": "^1.1.3",
"ts-node": "^10.8.1",
"typedoc": "^0.22.17",
"typescript": "^4.7.3"
"ts-node": "^10.9.1",
"typedoc": "^0.23.23",
"typescript": "^4.9.4"
}
}

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