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.js CHANGED
@@ -5923,21 +5923,22 @@ var calculateGematria = (word, options = {}, tree) => {
5923
5923
  const missingGematriaValues = [];
5924
5924
  if (options?.calculateMissingGematriaValues) {
5925
5925
  for (const hebrewLetter of Object.values(HEBREW_LETTERS)) {
5926
- const hebrewLetterNode = tree.getNode(`letter:${hebrewLetter}`);
5926
+ const hebrewLetterId = `letter:${hebrewLetter}`;
5927
+ const hebrewLetterNode = tree.getNode(hebrewLetterId);
5927
5928
  if (!hebrewLetterNode?.data) {
5928
5929
  continue;
5929
5930
  }
5930
5931
  if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
5931
5932
  missingGematriaValues.push({
5932
5933
  value: hebrewLetterNode.data.gematriaValue,
5933
- hebrewLetter,
5934
+ hebrewLetterId,
5934
5935
  whenEnding: false
5935
5936
  });
5936
5937
  }
5937
5938
  if (hebrewLetterNode.data.gematriaValueWhenEnding && !includedGematriaValues.has(hebrewLetterNode.data.gematriaValueWhenEnding)) {
5938
5939
  missingGematriaValues.push({
5939
5940
  value: hebrewLetterNode.data.gematriaValueWhenEnding,
5940
- hebrewLetter,
5941
+ hebrewLetterId,
5941
5942
  whenEnding: true
5942
5943
  });
5943
5944
  }