proskomma-core 0.10.2 → 0.10.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.js +17 -2
- package/dist/index.mjs +17 -2
- package/package.json +1 -1
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.
|
|
15989
|
+
const version = "0.10.3";
|
|
15990
15990
|
const description$b = "A Scripture Runtime Engine";
|
|
15991
15991
|
const files = [
|
|
15992
15992
|
"dist"
|
|
@@ -17749,6 +17749,9 @@ const succinctScopeLabel$1 = (enums2, enumIndexes2, succinct2, itemSubtype, pos)
|
|
|
17749
17749
|
}
|
|
17750
17750
|
return `${scopeType}${scopeBits}`;
|
|
17751
17751
|
};
|
|
17752
|
+
const succinctScopeType = (itemSubtype) => {
|
|
17753
|
+
return scopeDefs.scopeEnumLabels[itemSubtype];
|
|
17754
|
+
};
|
|
17752
17755
|
const succinctGraftName$1 = (enums2, enumIndexes2, itemSubtype) => {
|
|
17753
17756
|
const graftIndex = enumIndexes2.graftTypes[itemSubtype];
|
|
17754
17757
|
return enums2.graftTypes.countedString(graftIndex);
|
|
@@ -17854,6 +17857,7 @@ const succinct = {
|
|
|
17854
17857
|
pushSuccinctScopeBytes: pushSuccinctScopeBytes$3,
|
|
17855
17858
|
succinctTokenChars: succinctTokenChars$1,
|
|
17856
17859
|
succinctScopeLabel: succinctScopeLabel$1,
|
|
17860
|
+
succinctScopeType,
|
|
17857
17861
|
succinctGraftName: succinctGraftName$1,
|
|
17858
17862
|
succinctGraftSeqId: succinctGraftSeqId$1,
|
|
17859
17863
|
unpackEnum
|
|
@@ -18599,7 +18603,18 @@ const unsuccinctifyItems = (docSet, succinct2, options2, nextToken, openScopes)
|
|
|
18599
18603
|
let tokenCount = nextToken || 0;
|
|
18600
18604
|
const scopes = new Set(openScopes || []);
|
|
18601
18605
|
while (pos < succinct2.length) {
|
|
18602
|
-
const [
|
|
18606
|
+
const [itemLength, itemType, itemSubtype] = utils.succinct.headerBytes(
|
|
18607
|
+
succinct2,
|
|
18608
|
+
pos
|
|
18609
|
+
);
|
|
18610
|
+
if ([utils.itemDefs.itemEnum.startScope, utils.itemDefs.itemEnum.endScope].includes(itemType)) {
|
|
18611
|
+
const itemTypeName = utils.succinct.succinctScopeType(itemSubtype);
|
|
18612
|
+
if (Object.keys(options2).length > 0 && options2.scopes && options2.excludeScopeTypes && options2.excludeScopeTypes.includes(itemTypeName)) {
|
|
18613
|
+
pos += itemLength;
|
|
18614
|
+
continue;
|
|
18615
|
+
}
|
|
18616
|
+
}
|
|
18617
|
+
const item = docSet.unsuccinctifyItem(succinct2, pos, {})[0];
|
|
18603
18618
|
if (item[0] === "token") {
|
|
18604
18619
|
if (Object.keys(options2).length === 0 || options2.tokens) {
|
|
18605
18620
|
if (nextToken !== null) {
|
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.
|
|
15987
|
+
const version = "0.10.3";
|
|
15988
15988
|
const description$b = "A Scripture Runtime Engine";
|
|
15989
15989
|
const files = [
|
|
15990
15990
|
"dist"
|
|
@@ -17747,6 +17747,9 @@ const succinctScopeLabel$1 = (enums2, enumIndexes2, succinct2, itemSubtype, pos)
|
|
|
17747
17747
|
}
|
|
17748
17748
|
return `${scopeType}${scopeBits}`;
|
|
17749
17749
|
};
|
|
17750
|
+
const succinctScopeType = (itemSubtype) => {
|
|
17751
|
+
return scopeDefs.scopeEnumLabels[itemSubtype];
|
|
17752
|
+
};
|
|
17750
17753
|
const succinctGraftName$1 = (enums2, enumIndexes2, itemSubtype) => {
|
|
17751
17754
|
const graftIndex = enumIndexes2.graftTypes[itemSubtype];
|
|
17752
17755
|
return enums2.graftTypes.countedString(graftIndex);
|
|
@@ -17852,6 +17855,7 @@ const succinct = {
|
|
|
17852
17855
|
pushSuccinctScopeBytes: pushSuccinctScopeBytes$3,
|
|
17853
17856
|
succinctTokenChars: succinctTokenChars$1,
|
|
17854
17857
|
succinctScopeLabel: succinctScopeLabel$1,
|
|
17858
|
+
succinctScopeType,
|
|
17855
17859
|
succinctGraftName: succinctGraftName$1,
|
|
17856
17860
|
succinctGraftSeqId: succinctGraftSeqId$1,
|
|
17857
17861
|
unpackEnum
|
|
@@ -18597,7 +18601,18 @@ const unsuccinctifyItems = (docSet, succinct2, options2, nextToken, openScopes)
|
|
|
18597
18601
|
let tokenCount = nextToken || 0;
|
|
18598
18602
|
const scopes = new Set(openScopes || []);
|
|
18599
18603
|
while (pos < succinct2.length) {
|
|
18600
|
-
const [
|
|
18604
|
+
const [itemLength, itemType, itemSubtype] = utils.succinct.headerBytes(
|
|
18605
|
+
succinct2,
|
|
18606
|
+
pos
|
|
18607
|
+
);
|
|
18608
|
+
if ([utils.itemDefs.itemEnum.startScope, utils.itemDefs.itemEnum.endScope].includes(itemType)) {
|
|
18609
|
+
const itemTypeName = utils.succinct.succinctScopeType(itemSubtype);
|
|
18610
|
+
if (Object.keys(options2).length > 0 && options2.scopes && options2.excludeScopeTypes && options2.excludeScopeTypes.includes(itemTypeName)) {
|
|
18611
|
+
pos += itemLength;
|
|
18612
|
+
continue;
|
|
18613
|
+
}
|
|
18614
|
+
}
|
|
18615
|
+
const item = docSet.unsuccinctifyItem(succinct2, pos, {})[0];
|
|
18601
18616
|
if (item[0] === "token") {
|
|
18602
18617
|
if (Object.keys(options2).length === 0 || options2.tokens) {
|
|
18603
18618
|
if (nextToken !== null) {
|