@digitalculture/ochre-sdk 0.5.2 → 0.5.3

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
@@ -243,7 +243,7 @@ function parseStringItem(item) {
243
243
  break;
244
244
  }
245
245
  }
246
- return returnString.replaceAll(/^(\d+)\./gm, String.raw`$1\.`);
246
+ return returnString.replaceAll("'", "'").replaceAll(/^(\d+)\./gm, String.raw`$1\.`);
247
247
  }
248
248
  function parseStringDocumentItem(item, footnotes) {
249
249
  if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
package/dist/index.js CHANGED
@@ -166,7 +166,7 @@ function parseStringItem(item) {
166
166
  break;
167
167
  }
168
168
  }
169
- return returnString.replaceAll(/^(\d+)\./gm, String.raw`$1\.`);
169
+ return returnString.replaceAll("'", "'").replaceAll(/^(\d+)\./gm, String.raw`$1\.`);
170
170
  }
171
171
  function parseStringDocumentItem(item, footnotes) {
172
172
  if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
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",