Skip to content

Commit

Permalink
handle prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jptmoore committed Aug 29, 2024
1 parent 943c130 commit 582e70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maniiifest",
"version": "1.0.8",
"version": "1.0.9",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function normalize_resource_selector<T extends { type: string }, R>(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.`);
Expand Down

0 comments on commit 582e70e

Please sign in to comment.