@iflyrpa/share 0.0.19-beta.0 → 0.1.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271,7 +271,7 @@ async function downloadImageOnce(url, savePath) {
|
|
|
271
271
|
};
|
|
272
272
|
const requestFn = url.startsWith("http://") ? external_node_http_default().get : external_node_https_default().get;
|
|
273
273
|
const req = requestFn(url, handleResponse);
|
|
274
|
-
req.setTimeout(
|
|
274
|
+
req.setTimeout(60000, ()=>{
|
|
275
275
|
req.destroy();
|
|
276
276
|
reject({
|
|
277
277
|
code: 500,
|
package/dist/index.mjs
CHANGED
|
@@ -208,7 +208,7 @@ async function downloadImageOnce(url, savePath) {
|
|
|
208
208
|
};
|
|
209
209
|
const requestFn = url.startsWith("http://") ? __WEBPACK_EXTERNAL_MODULE_node_http_2dc67212__["default"].get : __WEBPACK_EXTERNAL_MODULE_node_https_626f33a7__["default"].get;
|
|
210
210
|
const req = requestFn(url, handleResponse);
|
|
211
|
-
req.setTimeout(
|
|
211
|
+
req.setTimeout(60000, ()=>{
|
|
212
212
|
req.destroy();
|
|
213
213
|
reject({
|
|
214
214
|
code: 500,
|