@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sdk",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Superblocks JS SDK",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
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