repzo 1.0.225 → 1.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/index.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repzo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.227",
|
|
4
4
|
"description": "Repzo TypeScript SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"homepage": "https://github.com/Repzo/repzo-ts#readme",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/parser": "^7.14.7",
|
|
54
|
+
"@types/axios": "^0.9.36",
|
|
54
55
|
"uuid": "^8.3.2"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -261,7 +261,7 @@ export default class Repzo {
|
|
|
261
261
|
if (params) {
|
|
262
262
|
params = normalizeParams(params);
|
|
263
263
|
}
|
|
264
|
-
let res = await axios.get(`${baseUrl}/${path}`, {
|
|
264
|
+
let res: any = await axios.get(`${baseUrl}/${path}`, {
|
|
265
265
|
params,
|
|
266
266
|
headers: this.headers,
|
|
267
267
|
timeout: this.timeout,
|
|
@@ -275,7 +275,7 @@ export default class Repzo {
|
|
|
275
275
|
body: Data,
|
|
276
276
|
params?: Params,
|
|
277
277
|
) {
|
|
278
|
-
let res = await axios.post(`${baseUrl}/${path}`, body, {
|
|
278
|
+
let res: any = await axios.post(`${baseUrl}/${path}`, body, {
|
|
279
279
|
params,
|
|
280
280
|
headers: this.headers,
|
|
281
281
|
timeout: this.timeout,
|
|
@@ -289,7 +289,7 @@ export default class Repzo {
|
|
|
289
289
|
body: Data,
|
|
290
290
|
params?: Params,
|
|
291
291
|
) {
|
|
292
|
-
let res = await axios.put(`${baseUrl}/${path}`, body, {
|
|
292
|
+
let res: any = await axios.put(`${baseUrl}/${path}`, body, {
|
|
293
293
|
params,
|
|
294
294
|
headers: this.headers,
|
|
295
295
|
timeout: this.timeout,
|
|
@@ -303,7 +303,7 @@ export default class Repzo {
|
|
|
303
303
|
body: Data,
|
|
304
304
|
params?: Params,
|
|
305
305
|
) {
|
|
306
|
-
let res = await axios.put(`${baseUrl}/${path}`, body, {
|
|
306
|
+
let res: any = await axios.put(`${baseUrl}/${path}`, body, {
|
|
307
307
|
params,
|
|
308
308
|
headers: this.headers,
|
|
309
309
|
timeout: this.timeout,
|
|
@@ -312,7 +312,7 @@ export default class Repzo {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
private async _delete(baseUrl: string, path: string, params?: Params) {
|
|
315
|
-
let res = await axios.delete(`${baseUrl}/${path}`, {
|
|
315
|
+
let res: any = await axios.delete(`${baseUrl}/${path}`, {
|
|
316
316
|
params,
|
|
317
317
|
headers: this.headers,
|
|
318
318
|
timeout: this.timeout,
|