Skip to content

Commit

Permalink
chore: install tslib
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Oct 1, 2022
1 parent ea644da commit fe24166
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": {
"name": "KagChi"
},
"version": "0.2.4",
"version": "0.2.5",
"license": "GPL-3.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -52,6 +52,7 @@
"@sapphire/async-queue": "^1.3.1",
"gen-esm-wrapper": "^1.1.3",
"lavalink-api-types": "^1.1.2",
"tslib": "^2.4.0",
"undici": "^5.8.0"
}
}
6 changes: 5 additions & 1 deletion src/Structures/REST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export class REST {
const { query } = options;
return this.get<LoadTrackResponse>(
Routes.loadTracks(
this.isUrl(options.query) ? encodeURIComponent(query) : query.includes(":") ? query : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
this.isUrl(options.query)
? encodeURIComponent(query)
: query.includes(':')
? query
: `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@sapphire/ts-config",
"compilerOptions": {
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"composite": true,
Expand Down

0 comments on commit fe24166

Please sign in to comment.