glitch-javascript-sdk 0.3.0 → 0.3.1
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/cjs/index.js +3 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/util/Requests.ts +7 -1
package/dist/esm/index.js
CHANGED
|
@@ -29903,6 +29903,9 @@ var Requests = /** @class */ (function () {
|
|
|
29903
29903
|
var queryString = Object.entries(params)
|
|
29904
29904
|
.map(function (_a) {
|
|
29905
29905
|
var key = _a[0], value = _a[1];
|
|
29906
|
+
if (Array.isArray(value)) {
|
|
29907
|
+
return value.map(function (item) { return "".concat(key, "[]=").concat(encodeURIComponent(item)); }).join('&');
|
|
29908
|
+
}
|
|
29906
29909
|
return "".concat(key, "=").concat(encodeURIComponent(value));
|
|
29907
29910
|
})
|
|
29908
29911
|
.join('&');
|