cloudxs 0.1.2 → 0.1.4

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/index.js CHANGED
@@ -44,8 +44,9 @@ var CloudXS = class {
44
44
  apiKey: this.apiKey
45
45
  })
46
46
  });
47
+ const json = await res.json();
47
48
  if (!res.ok) {
48
- throw new Error("Failed to get upload URL");
49
+ throw new Error("Failed to get upload URL" + json + file + file.name + file.type);
49
50
  }
50
51
  const { uploadUrl } = await res.json();
51
52
  const uploadRes = await fetch(uploadUrl, {
package/dist/index.mjs CHANGED
@@ -18,8 +18,9 @@ var CloudXS = class {
18
18
  apiKey: this.apiKey
19
19
  })
20
20
  });
21
+ const json = await res.json();
21
22
  if (!res.ok) {
22
- throw new Error("Failed to get upload URL");
23
+ throw new Error("Failed to get upload URL" + json + file + file.name + file.type);
23
24
  }
24
25
  const { uploadUrl } = await res.json();
25
26
  const uploadRes = await fetch(uploadUrl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudxs",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",