diff --git a/build/inaturalistjs.js b/build/inaturalistjs.js index 97c4da0..707423d 100644 --- a/build/inaturalistjs.js +++ b/build/inaturalistjs.js @@ -2448,6 +2448,9 @@ var Taxon = /*#__PURE__*/function (_Model) { if (_this.default_photo && _this.default_photo !== undefined) { _this.defaultPhoto = new Photo(_this.default_photo); } + if (_this.representative_photo && _this.representative_photo !== undefined) { + _this.representativePhoto = new Photo(_this.representative_photo); + } if (_this.taxon_photos && _this.taxon_photos !== undefined) { _this.taxonPhotos = _this.taxon_photos.map(function (tp) { return { diff --git a/lib/models/taxon.js b/lib/models/taxon.js index 9309775..88cce62 100644 --- a/lib/models/taxon.js +++ b/lib/models/taxon.js @@ -9,6 +9,9 @@ const Taxon = class Taxon extends Model { if ( this.default_photo && this.default_photo !== undefined ) { this.defaultPhoto = new Photo( this.default_photo ); } + if ( this.representative_photo && this.representative_photo !== undefined ) { + this.representativePhoto = new Photo( this.representative_photo ); + } if ( this.taxon_photos && this.taxon_photos !== undefined ) { this.taxonPhotos = this.taxon_photos.map( tp => ( { taxon: new Taxon( tp.taxon ), diff --git a/package.json b/package.json index b15c0f2..b34badb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inaturalistjs", - "version": "2.15.0", + "version": "2.16.0", "description": "inaturalistjs", "author": "iNaturalist", "license": "MIT",