backend-manager 3.2.71 → 3.2.72
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": "backend-manager",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.72",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"shortid": "^2.2.16",
|
|
66
66
|
"sizeitup": "^1.0.7",
|
|
67
67
|
"uid-generator": "^2.0.0",
|
|
68
|
-
"ultimate-jekyll-poster": "^1.0.
|
|
68
|
+
"ultimate-jekyll-poster": "^1.0.1",
|
|
69
69
|
"uuid": "^9.0.1",
|
|
70
70
|
"wonderful-fetch": "^1.1.1",
|
|
71
71
|
"wonderful-log": "^1.0.5",
|
|
@@ -34,13 +34,18 @@ Module.prototype.main = function () {
|
|
|
34
34
|
// Save to disk OR commit
|
|
35
35
|
poster.onDownload = function (meta) {
|
|
36
36
|
return new Promise(async function(resolve, reject) {
|
|
37
|
-
const tempPath =
|
|
37
|
+
const tempPath = meta.tempPath;
|
|
38
38
|
const finalPath = poster.removeDirDot(meta.finalPath);
|
|
39
39
|
|
|
40
40
|
// Log
|
|
41
41
|
assistant.log(`onDownload(): tempPath`, tempPath);
|
|
42
42
|
assistant.log(`onDownload(): finalPath`, finalPath);
|
|
43
43
|
|
|
44
|
+
// Check for missing paths
|
|
45
|
+
if (!tempPath || !finalPath) {
|
|
46
|
+
return reject(new Error(`onDownload(): tempPath or finalPath is missing`));
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
// Save to disk
|
|
45
50
|
poster.readImage(tempPath)
|
|
46
51
|
.then(image => {
|