mobiletto-base
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -213,6 +213,16 @@ "use strict"; | ||
_metadata(client)(realPath) | ||
.then((meta) => resolve(JSON.stringify(meta))) | ||
.then((meta) => { | ||
if (job.data.mobilettoJobID && | ||
typeof META_HANDLERS[job.data.mobilettoJobID] === "function") { | ||
META_HANDLERS[job.data.mobilettoJobID](meta); | ||
} | ||
resolve(JSON.stringify(meta)); | ||
}) | ||
.catch((err) => { | ||
const message = `${logPrefix} error fetching _metadata: ${err}`; | ||
mobiletto_common_1.logger.warn(message); | ||
if (job.data.mobilettoJobID && | ||
typeof META_ERR_HANDLERS[job.data.mobilettoJobID] === "function") { | ||
META_ERR_HANDLERS[job.data.mobilettoJobID](message); | ||
} | ||
reject(message); | ||
@@ -219,0 +229,0 @@ }); |
@@ -184,6 +184,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
_metadata(client)(realPath) | ||
.then((meta) => resolve(JSON.stringify(meta))) | ||
.then((meta) => { | ||
if (job.data.mobilettoJobID && | ||
typeof META_HANDLERS[job.data.mobilettoJobID] === "function") { | ||
META_HANDLERS[job.data.mobilettoJobID](meta); | ||
} | ||
resolve(JSON.stringify(meta)); | ||
}) | ||
.catch((err) => { | ||
const message = `${logPrefix} error fetching _metadata: ${err}`; | ||
logger.warn(message); | ||
if (job.data.mobilettoJobID && | ||
typeof META_ERR_HANDLERS[job.data.mobilettoJobID] === "function") { | ||
META_ERR_HANDLERS[job.data.mobilettoJobID](message); | ||
} | ||
reject(message); | ||
@@ -190,0 +200,0 @@ }); |
{ | ||
"name": "mobiletto-base", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A storage layer that presents a uniform interface to Amazon S3, Backblaze B2, local and other storage systems.", |
152389
2854