Skip to content

Commit fe24166

Browse files
committed
chore: install tslib
1 parent ea644da commit fe24166

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": {
44
"name": "KagChi"
55
},
6-
"version": "0.2.4",
6+
"version": "0.2.5",
77
"license": "GPL-3.0",
88
"main": "./dist/index.js",
99
"module": "./dist/index.mjs",
@@ -52,6 +52,7 @@
5252
"@sapphire/async-queue": "^1.3.1",
5353
"gen-esm-wrapper": "^1.1.3",
5454
"lavalink-api-types": "^1.1.2",
55+
"tslib": "^2.4.0",
5556
"undici": "^5.8.0"
5657
}
5758
}

Diff for: src/Structures/REST.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ export class REST {
6262
const { query } = options;
6363
return this.get<LoadTrackResponse>(
6464
Routes.loadTracks(
65-
this.isUrl(options.query) ? encodeURIComponent(query) : query.includes(":") ? query : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
65+
this.isUrl(options.query)
66+
? encodeURIComponent(query)
67+
: query.includes(':')
68+
? query
69+
: `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
6670
)
6771
);
6872
}

Diff for: tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "@sapphire/ts-config",
3-
"compilerOptions": {
3+
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./dist",
66
"composite": true,

0 commit comments

Comments
 (0)