@digitalculture/ochre-sdk 0.17.1 → 0.17.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -646,6 +646,10 @@ function parseFakeString(string) {
646
646
  * @internal
647
647
  */
648
648
  function parseRichTextItemString(stringField) {
649
+ if (stringField == null) return {
650
+ content: "",
651
+ whitespace: null
652
+ };
649
653
  if (typeof stringField === "string" || typeof stringField === "number" || typeof stringField === "boolean") return {
650
654
  content: parseFakeString(stringField).replaceAll("<", String.raw`\<`).replaceAll("{", String.raw`\{`),
651
655
  whitespace: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
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",