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/cjs/index.js
CHANGED
|
@@ -15681,6 +15681,9 @@ var Requests = /** @class */ (function () {
|
|
|
15681
15681
|
var queryString = Object.entries(params)
|
|
15682
15682
|
.map(function (_a) {
|
|
15683
15683
|
var key = _a[0], value = _a[1];
|
|
15684
|
+
if (Array.isArray(value)) {
|
|
15685
|
+
return value.map(function (item) { return "".concat(key, "[]=").concat(encodeURIComponent(item)); }).join('&');
|
|
15686
|
+
}
|
|
15684
15687
|
return "".concat(key, "=").concat(encodeURIComponent(value));
|
|
15685
15688
|
})
|
|
15686
15689
|
.join('&');
|