@guildedts/rest
Advanced tools
Comparing version 0.0.0-dev-20221127223103 to 0.0.0-dev-20221204213613
# @guildedts/rest | ||
## 0.0.0-dev-20221127223103 | ||
## 0.0.0-dev-20221204213613 | ||
### Patch Changes | ||
- ab5493c: fix: query parameters | ||
## 0.14.2 | ||
### Patch Changes | ||
- Updated dependencies [913a2b8] | ||
- guilded-api-typings@0.0.0-dev-20221127223103 | ||
- guilded-api-typings@0.13.1 | ||
@@ -10,0 +16,0 @@ ## 0.14.1 |
@@ -63,4 +63,4 @@ "use strict"; | ||
for (const [key, value] of Object.entries(options.params)) | ||
searchParams.append(key, value.toString()); | ||
const response = await (0, node_fetch_1.default)(this.baseURL + path + searchParams, { | ||
searchParams.append(key, value instanceof Date ? value.toISOString() : String(value)); | ||
const response = await (0, node_fetch_1.default)(`${this.baseURL}${path}${searchParams ? `?${searchParams}` : ''}`, { | ||
method, | ||
@@ -67,0 +67,0 @@ headers: { |
{ | ||
"name": "@guildedts/rest", | ||
"version": "0.0.0-dev-20221127223103", | ||
"version": "0.0.0-dev-20221204213613", | ||
"description": "The REST API manager for Guilded.TS.", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"dependencies": { | ||
"guilded-api-typings": "^0.0.0-dev-20221127223103", | ||
"guilded-api-typings": "^0.13.1", | ||
"node-fetch": "^2.6.7" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146098
+ Addedguilded-api-typings@0.13.2(transitive)
- Removedguilded-api-typings@0.0.0-dev-20221206175006(transitive)
Updatedguilded-api-typings@^0.13.1