glitch-javascript-sdk 0.1.1 → 0.1.2
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 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +167 -183
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/util/Requests.ts +5 -1
package/dist/cjs/index.js
CHANGED
|
@@ -15624,9 +15624,11 @@ var Requests = /** @class */ (function () {
|
|
|
15624
15624
|
if (fileData) {
|
|
15625
15625
|
headers['Content-Type'] = 'multipart/form-data';
|
|
15626
15626
|
}
|
|
15627
|
+
var uri = "".concat(this.baseUrl).concat(url);
|
|
15628
|
+
var validUri = uri.replace(/\/\//g, '/');
|
|
15627
15629
|
var axiosPromise = axios({
|
|
15628
15630
|
method: method,
|
|
15629
|
-
url:
|
|
15631
|
+
url: validUri,
|
|
15630
15632
|
data: fileData || data,
|
|
15631
15633
|
headers: headers,
|
|
15632
15634
|
});
|