pinata 2.4.4 → 2.4.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.
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2722,10 +2722,16 @@ var uploadFile = async (config, file, network, options) => {
|
|
|
2722
2722
|
throw error;
|
|
2723
2723
|
}
|
|
2724
2724
|
if (error instanceof Error) {
|
|
2725
|
-
throw new chunkP556VRQU_js.PinataError(
|
|
2725
|
+
throw new chunkP556VRQU_js.PinataError(
|
|
2726
|
+
`Error uploading file: ${error.message}`,
|
|
2727
|
+
void 0,
|
|
2728
|
+
{
|
|
2729
|
+
error: error.toString()
|
|
2730
|
+
}
|
|
2731
|
+
);
|
|
2726
2732
|
}
|
|
2727
2733
|
throw new chunkP556VRQU_js.PinataError(
|
|
2728
|
-
"An unknown error occurred while trying to upload
|
|
2734
|
+
"An unknown error occurred while trying to upload file"
|
|
2729
2735
|
);
|
|
2730
2736
|
}
|
|
2731
2737
|
}
|
|
@@ -2794,9 +2800,17 @@ var uploadFile = async (config, file, network, options) => {
|
|
|
2794
2800
|
throw error;
|
|
2795
2801
|
}
|
|
2796
2802
|
if (error instanceof Error) {
|
|
2797
|
-
throw new chunkP556VRQU_js.PinataError(
|
|
2803
|
+
throw new chunkP556VRQU_js.PinataError(
|
|
2804
|
+
`Error uploading file: ${error.message}`,
|
|
2805
|
+
void 0,
|
|
2806
|
+
{
|
|
2807
|
+
error: error.toString()
|
|
2808
|
+
}
|
|
2809
|
+
);
|
|
2798
2810
|
}
|
|
2799
|
-
throw new chunkP556VRQU_js.PinataError(
|
|
2811
|
+
throw new chunkP556VRQU_js.PinataError(
|
|
2812
|
+
"An unknown error occurred while trying to upload file"
|
|
2813
|
+
);
|
|
2800
2814
|
}
|
|
2801
2815
|
};
|
|
2802
2816
|
|