@tblabs/storage 5.12.3 → 5.12.5

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.
@@ -51,7 +51,12 @@ export class PicturesDataset extends DatasetBase {
51
51
  formData.append('database', this._db.DatabaseDir);
52
52
  formData.append('dataset', this.dataset);
53
53
  formData.append('config', JSON.stringify(this.picsConfig));
54
- const response = await fetch(this._db.Server + "/picures-upload", {
54
+ let serverUrl = this._db.Server;
55
+ if (serverUrl.endsWith("/")) // Because for local env we use ".../src/" but for prod ".../v5"
56
+ {
57
+ serverUrl = serverUrl.slice(0, -1);
58
+ }
59
+ const response = await fetch(serverUrl + "/pictures-upload", {
55
60
  method: 'POST',
56
61
  body: formData,
57
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tblabs/storage",
3
- "version": "5.12.3",
3
+ "version": "5.12.5",
4
4
  "description": "online storage module with auth",
5
5
  "license": "beerware",
6
6
  "main": "index.js",
Binary file
Binary file