@livechat/developer-studio-api 3.1.2 → 3.1.3
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/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -254,7 +254,7 @@ var ApiClient = class {
|
|
|
254
254
|
return __async(this, null, function* () {
|
|
255
255
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
256
256
|
method: "POST",
|
|
257
|
-
body: JSON.stringify(body)
|
|
257
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
258
258
|
}));
|
|
259
259
|
});
|
|
260
260
|
}
|
|
@@ -262,7 +262,7 @@ var ApiClient = class {
|
|
|
262
262
|
return __async(this, null, function* () {
|
|
263
263
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
264
264
|
method: "PATCH",
|
|
265
|
-
body: JSON.stringify(body)
|
|
265
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
266
266
|
}));
|
|
267
267
|
});
|
|
268
268
|
}
|
|
@@ -270,7 +270,7 @@ var ApiClient = class {
|
|
|
270
270
|
return __async(this, null, function* () {
|
|
271
271
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
272
272
|
method: "PUT",
|
|
273
|
-
body: JSON.stringify(body)
|
|
273
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
274
274
|
}));
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -278,7 +278,7 @@ var ApiClient = class {
|
|
|
278
278
|
return __async(this, null, function* () {
|
|
279
279
|
return this.fetch(url, config, __spreadProps(__spreadValues({}, options), {
|
|
280
280
|
method: "DELETE",
|
|
281
|
-
body: JSON.stringify(body)
|
|
281
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
282
282
|
}));
|
|
283
283
|
});
|
|
284
284
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -124,7 +124,7 @@ var ApiClient = class {
|
|
|
124
124
|
return __async(this, null, function* () {
|
|
125
125
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
126
126
|
method: "POST",
|
|
127
|
-
body: JSON.stringify(body)
|
|
127
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
128
128
|
}));
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -132,7 +132,7 @@ var ApiClient = class {
|
|
|
132
132
|
return __async(this, null, function* () {
|
|
133
133
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
134
134
|
method: "PATCH",
|
|
135
|
-
body: JSON.stringify(body)
|
|
135
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
136
136
|
}));
|
|
137
137
|
});
|
|
138
138
|
}
|
|
@@ -140,7 +140,7 @@ var ApiClient = class {
|
|
|
140
140
|
return __async(this, null, function* () {
|
|
141
141
|
return this.fetch(url, customConfig, __spreadProps(__spreadValues({}, customOptions), {
|
|
142
142
|
method: "PUT",
|
|
143
|
-
body: JSON.stringify(body)
|
|
143
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
144
144
|
}));
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -148,7 +148,7 @@ var ApiClient = class {
|
|
|
148
148
|
return __async(this, null, function* () {
|
|
149
149
|
return this.fetch(url, config, __spreadProps(__spreadValues({}, options), {
|
|
150
150
|
method: "DELETE",
|
|
151
|
-
body: JSON.stringify(body)
|
|
151
|
+
body: body instanceof URLSearchParams ? body : JSON.stringify(body)
|
|
152
152
|
}));
|
|
153
153
|
});
|
|
154
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
23
|
"eslint-config-custom": "0.0.8",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"tsconfig": "0.0.1",
|
|
25
|
+
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|