From 582e70eab030413defade71450e1bf4c7252f36f Mon Sep 17 00:00:00 2001 From: John Moore Date: Thu, 29 Aug 2024 15:03:36 +0100 Subject: [PATCH] handle prefix --- package.json | 2 +- src/adapter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 901bd8b..ef3cd39 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "maniiifest", - "version": "1.0.8", + "version": "1.0.9", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/src/adapter.ts b/src/adapter.ts index a770fac..4966971 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -114,7 +114,7 @@ export function normalize_resource_selector(x: T, return fn(['T3', x], context); } else if (typeof x === 'object' && x.type === 'SvgSelector') { return fn(['T4', x], context); - } else if (typeof x === 'object' && x.type === 'ImageApiSelector') { + } else if (typeof x === 'object' && x.type === 'ImageApiSelector' || x.type === 'iiif:ImageApiSelector') { return fn(['T5', x], context); } else { throw new Error(`${JSON.stringify(x)}: Input type did not match expected types.`);