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.
@@ -2438,21 +2438,22 @@ var calculateGematria = (word, options = {}, tree) => {
2438
2438
  const missingGematriaValues = [];
2439
2439
  if (options?.calculateMissingGematriaValues) {
2440
2440
  for (const hebrewLetter of Object.values(HEBREW_LETTERS)) {
2441
- const hebrewLetterNode = tree.getNode(`letter:${hebrewLetter}`);
2441
+ const hebrewLetterId = `letter:${hebrewLetter}`;
2442
+ const hebrewLetterNode = tree.getNode(hebrewLetterId);
2442
2443
  if (!hebrewLetterNode?.data) {
2443
2444
  continue;
2444
2445
  }
2445
2446
  if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
2446
2447
  missingGematriaValues.push({
2447
2448
  value: hebrewLetterNode.data.gematriaValue,
2448
- hebrewLetter,
2449
+ hebrewLetterId,
2449
2450
  whenEnding: false
2450
2451
  });
2451
2452
  }
2452
2453
  if (hebrewLetterNode.data.gematriaValueWhenEnding && !includedGematriaValues.has(hebrewLetterNode.data.gematriaValueWhenEnding)) {
2453
2454
  missingGematriaValues.push({
2454
2455
  value: hebrewLetterNode.data.gematriaValueWhenEnding,
2455
- hebrewLetter,
2456
+ hebrewLetterId,
2456
2457
  whenEnding: true
2457
2458
  });
2458
2459
  }