@superblocksteam/sdk 0.0.18 → 0.0.19
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/client.js +1 -0
- package/package.json +1 -1
- package/src/client.ts +1 -0
package/dist/client.js
CHANGED
|
@@ -115,6 +115,7 @@ ${e.message}`);
|
|
|
115
115
|
exports.registerComponents = registerComponents;
|
|
116
116
|
async function uploadComponents({ applicationId, componentConfigs, files, token, superblocksBaseUrl, }) {
|
|
117
117
|
var _a, _b, _c;
|
|
118
|
+
superblocksBaseUrl = superblocksBaseUrl.replace(/\/$/, "");
|
|
118
119
|
const bucketeerBaseUrl = (0, util_1.getBucketeerUrlFromSuperblocksUrl)(superblocksBaseUrl);
|
|
119
120
|
// parse files to source and bundled files based on path
|
|
120
121
|
const uploadFiles = files.map((file, ind) => {
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -153,6 +153,7 @@ export async function uploadComponents({
|
|
|
153
153
|
token: string;
|
|
154
154
|
superblocksBaseUrl: string;
|
|
155
155
|
}) {
|
|
156
|
+
superblocksBaseUrl = superblocksBaseUrl.replace(/\/$/, "");
|
|
156
157
|
const bucketeerBaseUrl =
|
|
157
158
|
getBucketeerUrlFromSuperblocksUrl(superblocksBaseUrl);
|
|
158
159
|
// parse files to source and bundled files based on path
|