@digitalculture/ochre-sdk 0.5.3 → 0.5.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/dist/index.cjs CHANGED
@@ -739,6 +739,7 @@ function parseLink(linkRaw) {
739
739
  if ("height" in link && link.height != null && link.width != null && link.heightPreview != null && link.widthPreview != null) {
740
740
  returnLink.image = {
741
741
  isInline: link.rend === "inline",
742
+ isPrimary: link.isPrimary ?? false,
742
743
  heightPreview: link.heightPreview,
743
744
  widthPreview: link.widthPreview,
744
745
  height: link.height,
package/dist/index.d.cts CHANGED
@@ -118,6 +118,7 @@ type Link = {
118
118
  href: string | null;
119
119
  image: {
120
120
  isInline: boolean;
121
+ isPrimary: boolean;
121
122
  heightPreview: number;
122
123
  widthPreview: number;
123
124
  height: number;
@@ -1034,6 +1035,7 @@ type OchreLinkItem = {
1034
1035
  height?: number;
1035
1036
  width?: number;
1036
1037
  href?: string;
1038
+ isPrimary?: boolean;
1037
1039
  };
1038
1040
 
1039
1041
  /**
package/dist/index.d.ts CHANGED
@@ -118,6 +118,7 @@ type Link = {
118
118
  href: string | null;
119
119
  image: {
120
120
  isInline: boolean;
121
+ isPrimary: boolean;
121
122
  heightPreview: number;
122
123
  widthPreview: number;
123
124
  height: number;
@@ -1034,6 +1035,7 @@ type OchreLinkItem = {
1034
1035
  height?: number;
1035
1036
  width?: number;
1036
1037
  href?: string;
1038
+ isPrimary?: boolean;
1037
1039
  };
1038
1040
 
1039
1041
  /**
package/dist/index.js CHANGED
@@ -662,6 +662,7 @@ function parseLink(linkRaw) {
662
662
  if ("height" in link && link.height != null && link.width != null && link.heightPreview != null && link.widthPreview != null) {
663
663
  returnLink.image = {
664
664
  isInline: link.rend === "inline",
665
+ isPrimary: link.isPrimary ?? false,
665
666
  heightPreview: link.heightPreview,
666
667
  widthPreview: link.widthPreview,
667
668
  height: link.height,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
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",
@@ -48,13 +48,13 @@
48
48
  "@arethetypeswrong/cli": "^0.17.4",
49
49
  "@changesets/cli": "^2.28.1",
50
50
  "@total-typescript/ts-reset": "^0.6.1",
51
- "@types/node": "^22.13.14",
51
+ "@types/node": "^22.14.0",
52
52
  "eslint": "^9.23.0",
53
53
  "eslint-plugin-unused-imports": "^4.1.4",
54
54
  "prettier": "^3.5.3",
55
55
  "tsup": "^8.4.0",
56
56
  "typescript": "^5.8.2",
57
- "vitest": "^3.0.9"
57
+ "vitest": "^3.1.1"
58
58
  },
59
59
  "scripts": {
60
60
  "dev": "tsup src/index.ts --watch",