@colijnit/mainapi 260.1.10 → 260.1.11
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/build/main-auth.js +1 -1
- package/build/main-public.js +1 -1
- package/package.json +1 -1
package/build/main-auth.js
CHANGED
|
@@ -719,7 +719,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
719
719
|
getImage(key, publication = 4, includeMimetype = false, thumb = true, tableName = table_name_enum_1.TableName.Goods) {
|
|
720
720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
721
721
|
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, tableName);
|
|
722
|
-
if (getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
722
|
+
if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
723
723
|
if (getImageObject.resultObject) {
|
|
724
724
|
const document = getImageObject.resultObject;
|
|
725
725
|
const type = document.documentType;
|
package/build/main-public.js
CHANGED
|
@@ -375,7 +375,7 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
375
375
|
getImage(key, publication = 4, includeMimetype = false, thumb = true) {
|
|
376
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
377
377
|
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, table_name_enum_1.TableName.Goods);
|
|
378
|
-
if (getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
378
|
+
if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
379
379
|
if (getImageObject.resultObject) {
|
|
380
380
|
const document = getImageObject.resultObject;
|
|
381
381
|
const type = document.documentType;
|