@nexrender/core 1.60.6 → 1.60.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/core",
3
- "version": "1.60.6",
3
+ "version": "1.60.9",
4
4
  "main": "src/index.js",
5
5
  "author": "Inlife",
6
6
  "homepage": "https://www.nexrender.com",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "11a6be2cf0daffc3da0acfcacbf53cdd84ab434f"
46
+ "gitHead": "5be66801935697f079768197e8e3ec2214316653"
47
47
  }
@@ -14,6 +14,8 @@ const NEXRENDER_DOWNLOAD_TIMEOUT = process.env.NEXRENDER_DOWNLOAD_TIMEOUT || 3 *
14
14
  const download = (job, settings, asset) => {
15
15
  if (asset.type == 'data') return Promise.resolve();
16
16
 
17
+ settings.logger.log(`[${job.uid}] > Downloading asset ${asset.src}...`);
18
+
17
19
  // eslint-disable-next-line
18
20
  const uri = global.URL ? new URL(asset.src) : url.parse(asset.src)
19
21
  const protocol = uri.protocol.replace(/:$/, '');
@@ -109,7 +111,7 @@ const download = (job, settings, asset) => {
109
111
 
110
112
  return withTimeout(new Promise((resolve, reject) => {
111
113
  const errorHandler = (error) => {
112
- reject(new Error({reason: 'Unable to download file', meta: {src, error}}))
114
+ reject(new Error('Unable to download file ' + asset.src + ' due to ' + error))
113
115
  };
114
116
 
115
117
  res.body