ochre-sdk 1.0.22 → 1.0.23

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.
@@ -201,7 +201,7 @@ const XMLImage = v.object({
201
201
  fileSize: XMLOptionalNumber,
202
202
  payload: v.optional(v.string("XMLImage: payload is string and optional"))
203
203
  }, "XMLImage: Shape error");
204
- const XMLImageMapArea = v.pipe(v.object({
204
+ const XMLImageMapArea = v.object({
205
205
  uuid: v.pipe(v.string("XMLImageMapArea: uuid is string and required"), v.check(isPseudoUuid, "XMLImageMapArea: uuid is not a valid pseudo-UUID")),
206
206
  publicationDateTime: v.optional(customDateTime("XMLImageMapArea: publicationDateTime is not a valid datetime")),
207
207
  type: v.string("XMLImageMapArea: type is string and required"),
@@ -213,7 +213,7 @@ const XMLImageMapArea = v.pipe(v.object({
213
213
  "poly"
214
214
  ], "XMLImageMapArea: shape is rect, circle, or poly"),
215
215
  coords: v.string("XMLImageMapArea: coords is string and required")
216
- }, "XMLImageMapArea: Shape error"), v.check((area) => area.type === "person" || area.publicationDateTime != null, "XMLImageMapArea: publicationDateTime is required unless type is person"));
216
+ }, "XMLImageMapArea: Shape error");
217
217
  const XMLImageMap = v.object({
218
218
  area: v.array(XMLImageMapArea, "XMLImageMap: area is array of XMLImageMapArea"),
219
219
  width: XMLNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",