manifesto.js
Advanced tools
Comparing version
@@ -61,4 +61,6 @@ "use strict"; | ||
} | ||
if (services.length) { | ||
var service = services[0]; | ||
var service = services | ||
? services.find(function (service) { return internal_1.Utils.isImageProfile(service.getProfile()); }) | ||
: null; | ||
if (service) { | ||
id = service.id; | ||
@@ -65,0 +67,0 @@ quality = internal_1.Utils.getImageQuality(service.getProfile()); |
@@ -59,4 +59,6 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
if (services.length) { | ||
var service = services[0]; | ||
var service = services | ||
? services.find(function (service) { return Utils.isImageProfile(service.getProfile()); }) | ||
: null; | ||
if (service) { | ||
id = service.id; | ||
@@ -63,0 +65,0 @@ quality = Utils.getImageQuality(service.getProfile()); |
{ | ||
"name": "manifesto.js", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "IIIF Presentation API utility library for client and server", | ||
@@ -5,0 +5,0 @@ "main": "./dist-commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
36647408
0277849
0