kaabalah 1.1.0 → 1.1.1
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/gematria/index.d.mts +1 -1
- package/dist/gematria/index.d.ts +1 -1
- package/dist/gematria/index.js +4 -3
- package/dist/gematria/index.js.map +1 -1
- package/dist/gematria/index.mjs +4 -3
- package/dist/gematria/index.mjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/gematria/index.d.ts
CHANGED
package/dist/gematria/index.js
CHANGED
|
@@ -2458,21 +2458,22 @@ var calculateGematria = (word, options = {}, tree) => {
|
|
|
2458
2458
|
const missingGematriaValues = [];
|
|
2459
2459
|
if (options?.calculateMissingGematriaValues) {
|
|
2460
2460
|
for (const hebrewLetter of Object.values(HEBREW_LETTERS)) {
|
|
2461
|
-
const
|
|
2461
|
+
const hebrewLetterId = `letter:${hebrewLetter}`;
|
|
2462
|
+
const hebrewLetterNode = tree.getNode(hebrewLetterId);
|
|
2462
2463
|
if (!hebrewLetterNode?.data) {
|
|
2463
2464
|
continue;
|
|
2464
2465
|
}
|
|
2465
2466
|
if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
|
|
2466
2467
|
missingGematriaValues.push({
|
|
2467
2468
|
value: hebrewLetterNode.data.gematriaValue,
|
|
2468
|
-
|
|
2469
|
+
hebrewLetterId,
|
|
2469
2470
|
whenEnding: false
|
|
2470
2471
|
});
|
|
2471
2472
|
}
|
|
2472
2473
|
if (hebrewLetterNode.data.gematriaValueWhenEnding && !includedGematriaValues.has(hebrewLetterNode.data.gematriaValueWhenEnding)) {
|
|
2473
2474
|
missingGematriaValues.push({
|
|
2474
2475
|
value: hebrewLetterNode.data.gematriaValueWhenEnding,
|
|
2475
|
-
|
|
2476
|
+
hebrewLetterId,
|
|
2476
2477
|
whenEnding: true
|
|
2477
2478
|
});
|
|
2478
2479
|
}
|