@dotdev/apparel21-sdk
Advanced tools
Comparing version 0.0.45 to 0.0.46
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.46](https://gitlab.com/dotdevv/packages/apparel21-sdk/compare/v0.0.45...v0.0.46) (2023-03-22) | ||
### [0.0.45](https://gitlab.com/dotdevv/packages/apparel21-sdk/compare/v0.0.44...v0.0.45) (2023-03-17) | ||
@@ -7,0 +9,0 @@ |
@@ -140,3 +140,3 @@ "use strict"; | ||
catch (error) { | ||
throw error; | ||
return []; | ||
} | ||
@@ -152,8 +152,13 @@ }; | ||
const url = `/ProductColourNotes/${id}`; | ||
const { ProductColourNoteTypes } = await this.request({ | ||
uri: url, | ||
}); | ||
if (!ProductColourNoteTypes.ProductColourNoteType) | ||
try { | ||
const { ProductColourNoteTypes } = await this.request({ | ||
uri: url, | ||
}); | ||
if (!ProductColourNoteTypes.ProductColourNoteType) | ||
return []; | ||
return products_1.formatProductColourNotes(ProductColourNoteTypes.ProductColourNoteType); | ||
} | ||
catch (e) { | ||
return []; | ||
return products_1.formatProductColourNotes(ProductColourNoteTypes.ProductColourNoteType); | ||
} | ||
}; | ||
@@ -160,0 +165,0 @@ } |
{ | ||
"name": "@dotdev/apparel21-sdk", | ||
"version": "0.0.45", | ||
"version": "0.0.46", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "description": "Apparel21 Interface Library", |
Sorry, the diff of this file is not supported yet
225764
293
3459