@nexrender/core 1.52.1 → 1.52.2
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 +2 -2
- package/src/tasks/download.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/core",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.2",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Inlife",
|
|
6
6
|
"homepage": "https://www.nexrender.com",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "3469ea7297504fc0953661f13a13fd2f877ef994"
|
|
44
44
|
}
|
package/src/tasks/download.js
CHANGED
|
@@ -26,7 +26,9 @@ const download = (job, settings, asset) => {
|
|
|
26
26
|
destName = decodeURI(destName) /* < remove/decode any special URI symbols within filename */
|
|
27
27
|
|
|
28
28
|
/* prevent duplicate filename collisions during parallel fetch */
|
|
29
|
-
|
|
29
|
+
if (!asset.sequence) {
|
|
30
|
+
destName = Math.random().toString(36).substring(2) + '-' + destName;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/* force asset name if it is provided */
|