proskomma-core 0.10.13 → 0.10.15
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/README.md +1 -5
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
# EXPERIMENTAL
|
|
2
|
-
|
|
3
|
-
DISCLAIMER : if you want the production version please [click on this link](https://github.com/mvahowe/proskomma-js)
|
|
4
|
-
|
|
5
1
|
# proskomma-core
|
|
6
2
|
|
|
7
3
|
A Javascript Implementation of the Proskomma Scripture Processing Model.
|
|
@@ -50,4 +46,4 @@ Method to solve this problem :
|
|
|
50
46
|
* normally it's listed in the link above
|
|
51
47
|
* then replace `false` by `require.resolve('theNameOfTheNeededPackage')`
|
|
52
48
|
|
|
53
|
-
If it doesn't work, I'm afraid you'll have to dig in the webpack documentation for `resolve` : https://webpack.js.org/configuration/resolve/ (or try to find a solution on StackOverflow !)
|
|
49
|
+
If it doesn't work, I'm afraid you'll have to dig in the webpack documentation for `resolve` : https://webpack.js.org/configuration/resolve/ (or try to find a solution on StackOverflow !)
|
package/dist/index.js
CHANGED
|
@@ -15992,7 +15992,7 @@ var bitset = { exports: {} };
|
|
|
15992
15992
|
var bitsetExports = bitset.exports;
|
|
15993
15993
|
const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
|
|
15994
15994
|
const name = "proskomma-core";
|
|
15995
|
-
const version = "0.10.
|
|
15995
|
+
const version = "0.10.15";
|
|
15996
15996
|
const description$b = "A Scripture Runtime Engine";
|
|
15997
15997
|
const files = [
|
|
15998
15998
|
"dist"
|
|
@@ -34086,7 +34086,10 @@ const makeVerses = (subclass, matchedBits) => {
|
|
|
34086
34086
|
`
|
|
34087
34087
|
};
|
|
34088
34088
|
if (ret.numberString.includes("-")) {
|
|
34089
|
-
|
|
34089
|
+
let [fromV, toV] = ret.numberString.split("-").map((v) => parseInt(v));
|
|
34090
|
+
if (!toV) {
|
|
34091
|
+
toV = fromV;
|
|
34092
|
+
}
|
|
34090
34093
|
ret.numbers = Array.from(Array(toV - fromV + 1).keys()).map(
|
|
34091
34094
|
(v) => v + fromV
|
|
34092
34095
|
);
|
|
@@ -39075,7 +39078,7 @@ const specs = (pt) => [
|
|
|
39075
39078
|
parser.headers[label] = parser.current.sequence.plainText();
|
|
39076
39079
|
if (label === "id") {
|
|
39077
39080
|
const idBits = parser.headers[label].split(" ", 2);
|
|
39078
|
-
if (idBits[0].length >=
|
|
39081
|
+
if (idBits[0].length >= 2 && idBits[0].length <= 32 && idTest.test(idBits[0])) {
|
|
39079
39082
|
parser.headers["bookCode"] = idBits[0];
|
|
39080
39083
|
}
|
|
39081
39084
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -15990,7 +15990,7 @@ var bitset = { exports: {} };
|
|
|
15990
15990
|
var bitsetExports = bitset.exports;
|
|
15991
15991
|
const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
|
|
15992
15992
|
const name = "proskomma-core";
|
|
15993
|
-
const version = "0.10.
|
|
15993
|
+
const version = "0.10.15";
|
|
15994
15994
|
const description$b = "A Scripture Runtime Engine";
|
|
15995
15995
|
const files = [
|
|
15996
15996
|
"dist"
|
|
@@ -34084,7 +34084,10 @@ const makeVerses = (subclass, matchedBits) => {
|
|
|
34084
34084
|
`
|
|
34085
34085
|
};
|
|
34086
34086
|
if (ret.numberString.includes("-")) {
|
|
34087
|
-
|
|
34087
|
+
let [fromV, toV] = ret.numberString.split("-").map((v) => parseInt(v));
|
|
34088
|
+
if (!toV) {
|
|
34089
|
+
toV = fromV;
|
|
34090
|
+
}
|
|
34088
34091
|
ret.numbers = Array.from(Array(toV - fromV + 1).keys()).map(
|
|
34089
34092
|
(v) => v + fromV
|
|
34090
34093
|
);
|
|
@@ -39073,7 +39076,7 @@ const specs = (pt) => [
|
|
|
39073
39076
|
parser.headers[label] = parser.current.sequence.plainText();
|
|
39074
39077
|
if (label === "id") {
|
|
39075
39078
|
const idBits = parser.headers[label].split(" ", 2);
|
|
39076
|
-
if (idBits[0].length >=
|
|
39079
|
+
if (idBits[0].length >= 2 && idBits[0].length <= 32 && idTest.test(idBits[0])) {
|
|
39077
39080
|
parser.headers["bookCode"] = idBits[0];
|
|
39078
39081
|
}
|
|
39079
39082
|
}
|