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/index.mjs CHANGED
@@ -5887,21 +5887,22 @@ var calculateGematria = (word, options = {}, tree) => {
5887
5887
  const missingGematriaValues = [];
5888
5888
  if (options?.calculateMissingGematriaValues) {
5889
5889
  for (const hebrewLetter of Object.values(HEBREW_LETTERS)) {
5890
- const hebrewLetterNode = tree.getNode(`letter:${hebrewLetter}`);
5890
+ const hebrewLetterId = `letter:${hebrewLetter}`;
5891
+ const hebrewLetterNode = tree.getNode(hebrewLetterId);
5891
5892
  if (!hebrewLetterNode?.data) {
5892
5893
  continue;
5893
5894
  }
5894
5895
  if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
5895
5896
  missingGematriaValues.push({
5896
5897
  value: hebrewLetterNode.data.gematriaValue,
5897
- hebrewLetter,
5898
+ hebrewLetterId,
5898
5899
  whenEnding: false
5899
5900
  });
5900
5901
  }
5901
5902
  if (hebrewLetterNode.data.gematriaValueWhenEnding && !includedGematriaValues.has(hebrewLetterNode.data.gematriaValueWhenEnding)) {
5902
5903
  missingGematriaValues.push({
5903
5904
  value: hebrewLetterNode.data.gematriaValueWhenEnding,
5904
- hebrewLetter,
5905
+ hebrewLetterId,
5905
5906
  whenEnding: true
5906
5907
  });
5907
5908
  }