@paulhectork/aiiinotate 0.12.2 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paulhectork/aiiinotate",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "description": "a fast IIIF-compliant annotation server",
5
5
  "main": "./cli/index.js",
6
6
  "type": "module",
@@ -7,7 +7,7 @@ import fastifyPlugin from "fastify-plugin";
7
7
  import CollectionAbstract from "#data/collectionAbstract.js";
8
8
  import { STRICT_MODE } from "#constants";
9
9
  import { IIIF_PRESENTATION_2_CONTEXT } from "#utils/iiifUtils.js";
10
- import { ajvCompile, objectHasKey, isNullish, maybeToArray, visibleLog, memoize, getFirstNonEmptyPair } from "#utils/utils.js";
10
+ import { ajvCompile, objectHasKey, isNullish, maybeToArray, visibleLog, memoize, getFirstNonEmptyPair, inspectObj } from "#utils/utils.js";
11
11
  import { getManifestShortId, makeTarget, makeAnnotationId, toAnnotationList, canvasUriToManifestUri } from "#utils/iiif2Utils.js";
12
12
  import { PAGE_SIZE } from "#constants";
13
13
 
@@ -253,6 +253,7 @@ class Annotations2 extends CollectionAbstract {
253
253
  * @returns {Promise<object>} the updated annotation
254
254
  */
255
255
  async #updateAnnotationPostManifestInsert(annotation, insertedManifestIds, throwOnCanvasIndexError) {
256
+ this.fastify.log.error(inspectObj(annotation))
256
257
  /** @type {object[]} */
257
258
  let targetArray = annotation.on;
258
259
  targetArray = await Promise.all(
@@ -113,7 +113,7 @@ class Manifests2 extends CollectionAbstract {
113
113
  * @returns
114
114
  */
115
115
  async #fetchManifestFromUri(manifestUri) {
116
- this.fastify.log.error(">>>> MANIFEST URI", manifestUri);
116
+ this.fastify.log.error(`>>>> MANIFEST URI _${manifestUri}_`);
117
117
  try {
118
118
  const r = await fetch(manifestUri);
119
119
  return await r.json();