@jobber/components 6.103.6 → 6.104.0

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.
@@ -1649,8 +1649,11 @@ function InputFile({ variation = "dropzone", size = "base", name, buttonLabel: p
1649
1649
  try {
1650
1650
  params = yield getUploadParams(file);
1651
1651
  }
1652
- catch (_a) {
1653
- onUploadError && onUploadError(new Error("Failed to get upload params"));
1652
+ catch (error) {
1653
+ onUploadError &&
1654
+ onUploadError(error instanceof Error
1655
+ ? error
1656
+ : new Error("Failed to get upload params"));
1654
1657
  return;
1655
1658
  }
1656
1659
  const { url, key = generateId(), fields = {}, httpMethod = "POST", } = params;
@@ -1647,8 +1647,11 @@ function InputFile({ variation = "dropzone", size = "base", name, buttonLabel: p
1647
1647
  try {
1648
1648
  params = yield getUploadParams(file);
1649
1649
  }
1650
- catch (_a) {
1651
- onUploadError && onUploadError(new Error("Failed to get upload params"));
1650
+ catch (error) {
1651
+ onUploadError &&
1652
+ onUploadError(error instanceof Error
1653
+ ? error
1654
+ : new Error("Failed to get upload params"));
1652
1655
  return;
1653
1656
  }
1654
1657
  const { url, key = generateId(), fields = {}, httpMethod = "POST", } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.103.6",
3
+ "version": "6.104.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -538,5 +538,5 @@
538
538
  "> 1%",
539
539
  "IE 10"
540
540
  ],
541
- "gitHead": "953deb18e2cf5a920ab5e23295e15aefd3865c0f"
541
+ "gitHead": "f8415d7accb1a1cd52fb25cb36ab4fe022a369ea"
542
542
  }