proskomma-core 0.10.9 → 0.10.10

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.js CHANGED
@@ -15986,7 +15986,7 @@ var bitset = {
15986
15986
  })(bitset, bitsetExports);
15987
15987
  const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
15988
15988
  const name = "proskomma-core";
15989
- const version = "0.10.9";
15989
+ const version = "0.10.10";
15990
15990
  const description$b = "A Scripture Runtime Engine";
15991
15991
  const files = [
15992
15992
  "dist"
@@ -18834,19 +18834,37 @@ const unsuccinctifyItemsWithScriptureCV = (docSet, block2, cv, options2) => {
18834
18834
  }
18835
18835
  };
18836
18836
  const ret = [];
18837
- for (const item of docSet.unsuccinctifyItems(
18838
- block2.c,
18839
- {},
18840
- block2.nt.nByte(0)
18841
- )) {
18842
- if (item[0] === "scope" && item[1] === "start") {
18843
- openScopes.add(item[2]);
18844
- }
18845
- if (itemMatchesCV() && itemInOptions(item)) {
18846
- ret.push(item);
18837
+ if (options2.excludeScopeTypes) {
18838
+ for (const item of docSet.unsuccinctifyItems(
18839
+ block2.c,
18840
+ options2,
18841
+ block2.nt.nByte(0)
18842
+ )) {
18843
+ if (item[0] === "scope" && item[1] === "start") {
18844
+ openScopes.add(item[2]);
18845
+ }
18846
+ if (itemMatchesCV() && itemInOptions(item)) {
18847
+ ret.push(item);
18848
+ }
18849
+ if (item[0] === "scope" && item[1] === "end") {
18850
+ openScopes.delete(item[2]);
18851
+ }
18847
18852
  }
18848
- if (item[0] === "scope" && item[1] === "end") {
18849
- openScopes.delete(item[2]);
18853
+ } else {
18854
+ for (const item of docSet.unsuccinctifyItems(
18855
+ block2.c,
18856
+ {},
18857
+ block2.nt.nByte(0)
18858
+ )) {
18859
+ if (item[0] === "scope" && item[1] === "start") {
18860
+ openScopes.add(item[2]);
18861
+ }
18862
+ if (itemMatchesCV() && itemInOptions(item)) {
18863
+ ret.push(item);
18864
+ }
18865
+ if (item[0] === "scope" && item[1] === "end") {
18866
+ openScopes.delete(item[2]);
18867
+ }
18850
18868
  }
18851
18869
  }
18852
18870
  return ret;
@@ -44257,8 +44275,14 @@ const blockResolvers = {
44257
44275
  return context.docSet.unsuccinctifyItemsWithScriptureCV(
44258
44276
  root,
44259
44277
  args.withScriptureCV,
44260
- {},
44261
- args.includeContext || false
44278
+ args.excludeScopeTypes ? {
44279
+ tokens: true,
44280
+ scopes: true,
44281
+ grafts: true,
44282
+ excludeScopeTypes: args.excludeScopeTypes || [],
44283
+ anyScope: args.anyScope || false,
44284
+ includeContext: args.includeContext || false
44285
+ } : {}
44262
44286
  );
44263
44287
  } else {
44264
44288
  return context.docSet.unsuccinctifyPrunedItems(root, {
package/dist/index.mjs CHANGED
@@ -15984,7 +15984,7 @@ var bitset = {
15984
15984
  })(bitset, bitsetExports);
15985
15985
  const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
15986
15986
  const name = "proskomma-core";
15987
- const version = "0.10.9";
15987
+ const version = "0.10.10";
15988
15988
  const description$b = "A Scripture Runtime Engine";
15989
15989
  const files = [
15990
15990
  "dist"
@@ -18832,19 +18832,37 @@ const unsuccinctifyItemsWithScriptureCV = (docSet, block2, cv, options2) => {
18832
18832
  }
18833
18833
  };
18834
18834
  const ret = [];
18835
- for (const item of docSet.unsuccinctifyItems(
18836
- block2.c,
18837
- {},
18838
- block2.nt.nByte(0)
18839
- )) {
18840
- if (item[0] === "scope" && item[1] === "start") {
18841
- openScopes.add(item[2]);
18842
- }
18843
- if (itemMatchesCV() && itemInOptions(item)) {
18844
- ret.push(item);
18835
+ if (options2.excludeScopeTypes) {
18836
+ for (const item of docSet.unsuccinctifyItems(
18837
+ block2.c,
18838
+ options2,
18839
+ block2.nt.nByte(0)
18840
+ )) {
18841
+ if (item[0] === "scope" && item[1] === "start") {
18842
+ openScopes.add(item[2]);
18843
+ }
18844
+ if (itemMatchesCV() && itemInOptions(item)) {
18845
+ ret.push(item);
18846
+ }
18847
+ if (item[0] === "scope" && item[1] === "end") {
18848
+ openScopes.delete(item[2]);
18849
+ }
18845
18850
  }
18846
- if (item[0] === "scope" && item[1] === "end") {
18847
- openScopes.delete(item[2]);
18851
+ } else {
18852
+ for (const item of docSet.unsuccinctifyItems(
18853
+ block2.c,
18854
+ {},
18855
+ block2.nt.nByte(0)
18856
+ )) {
18857
+ if (item[0] === "scope" && item[1] === "start") {
18858
+ openScopes.add(item[2]);
18859
+ }
18860
+ if (itemMatchesCV() && itemInOptions(item)) {
18861
+ ret.push(item);
18862
+ }
18863
+ if (item[0] === "scope" && item[1] === "end") {
18864
+ openScopes.delete(item[2]);
18865
+ }
18848
18866
  }
18849
18867
  }
18850
18868
  return ret;
@@ -44255,8 +44273,14 @@ const blockResolvers = {
44255
44273
  return context.docSet.unsuccinctifyItemsWithScriptureCV(
44256
44274
  root,
44257
44275
  args.withScriptureCV,
44258
- {},
44259
- args.includeContext || false
44276
+ args.excludeScopeTypes ? {
44277
+ tokens: true,
44278
+ scopes: true,
44279
+ grafts: true,
44280
+ excludeScopeTypes: args.excludeScopeTypes || [],
44281
+ anyScope: args.anyScope || false,
44282
+ includeContext: args.includeContext || false
44283
+ } : {}
44260
44284
  );
44261
44285
  } else {
44262
44286
  return context.docSet.unsuccinctifyPrunedItems(root, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proskomma-core",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "description": "A Scripture Runtime Engine",
5
5
  "files": [
6
6
  "dist"