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.
@@ -27,7 +27,7 @@ declare const calculateGematria: (word: string, options?: {
27
27
  }[];
28
28
  missingGematriaValues: {
29
29
  value: number;
30
- hebrewLetter: string;
30
+ hebrewLetterId: string;
31
31
  whenEnding: boolean;
32
32
  }[] | undefined;
33
33
  letterPercentages: {
@@ -27,7 +27,7 @@ declare const calculateGematria: (word: string, options?: {
27
27
  }[];
28
28
  missingGematriaValues: {
29
29
  value: number;
30
- hebrewLetter: string;
30
+ hebrewLetterId: string;
31
31
  whenEnding: boolean;
32
32
  }[] | undefined;
33
33
  letterPercentages: {
@@ -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 hebrewLetterNode = tree.getNode(`letter:${hebrewLetter}`);
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
- hebrewLetter,
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
- hebrewLetter,
2476
+ hebrewLetterId,
2476
2477
  whenEnding: true
2477
2478
  });
2478
2479
  }