@colijnit/mainapi 259.1.13 → 259.1.14
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
|
@@ -709,7 +709,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
709
709
|
getImage(key, publication = 4, includeMimetype = false, thumb = true, tableName = table_name_enum_1.TableName.Goods) {
|
|
710
710
|
return __awaiter(this, void 0, void 0, function* () {
|
|
711
711
|
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, tableName);
|
|
712
|
-
if (getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
712
|
+
if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
713
713
|
if (getImageObject.resultObject) {
|
|
714
714
|
const document = getImageObject.resultObject;
|
|
715
715
|
const type = document.documentType;
|
package/build/main-public.js
CHANGED
|
@@ -353,7 +353,7 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
353
353
|
getImage(key, publication = 4, includeMimetype = false, thumb = true) {
|
|
354
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
355
|
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, table_name_enum_1.TableName.Goods);
|
|
356
|
-
if (getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
356
|
+
if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
357
357
|
if (getImageObject.resultObject) {
|
|
358
358
|
const document = getImageObject.resultObject;
|
|
359
359
|
const type = document.documentType;
|