kaabalah 1.0.0 → 1.0.2

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.
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/ifa/index.ts
21
+ var ifa_exports = {};
22
+ __export(ifa_exports, {
23
+ calculateOdu: () => calculateOdu
24
+ });
25
+ module.exports = __toCommonJS(ifa_exports);
26
+ function calculateOdu(date) {
27
+ const day = date.getDate().toString().padStart(2, "0");
28
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
29
+ const year = date.getFullYear().toString();
30
+ const leftNumbers = [
31
+ parseInt(day[0]),
32
+ // First digit of day
33
+ parseInt(month[0]),
34
+ // First digit of month
35
+ parseInt(year[0]),
36
+ // First digit of year
37
+ parseInt(year[2])
38
+ // Third digit of year
39
+ ];
40
+ const rightNumbers = [
41
+ parseInt(day[1]),
42
+ // Second digit of day
43
+ parseInt(month[1]),
44
+ // Second digit of month
45
+ parseInt(year[1]),
46
+ // Second digit of year
47
+ parseInt(year[3])
48
+ // Fourth digit of year
49
+ ];
50
+ function reduceNumber(num) {
51
+ if (num <= 16) return num;
52
+ return reduceNumber(num.toString().split("").reduce((a, b) => a + parseInt(b), 0));
53
+ }
54
+ const rawLeftSum = leftNumbers.reduce((a, b) => a + b, 0);
55
+ const rawRightSum = rightNumbers.reduce((a, b) => a + b, 0);
56
+ const north = reduceNumber(rawLeftSum);
57
+ const south = reduceNumber(rawRightSum);
58
+ const east = reduceNumber(north + south);
59
+ const west = reduceNumber(north + south + east);
60
+ const center = reduceNumber(north + south + east + west);
61
+ return {
62
+ leftNumbers,
63
+ rightNumbers,
64
+ north,
65
+ south,
66
+ east,
67
+ west,
68
+ center
69
+ };
70
+ }
71
+ // Annotate the CommonJS export names for ESM import in node:
72
+ 0 && (module.exports = {
73
+ calculateOdu
74
+ });
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ifa/index.ts"],"sourcesContent":["\n/**\n * Calculate the Odu numbers based on a date\n * @param date - Date object\n * @returns Odu numbers\n */\nexport function calculateOdu(date: Date): {\n leftNumbers: number[],\n rightNumbers: number[],\n north: number, // O2 (reduced left sum)\n south: number, // reduced right sum\n east: number, // reduced sum of north and south\n west: number, // reduced sum of north, south, and east\n center: number // reduced sum of all directions\n} {\n // Format the date into DD/MM/YYYY\n const day = date.getDate().toString().padStart(2, '0');\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const year = date.getFullYear().toString();\n\n // Split into left and right columns\n const leftNumbers = [\n parseInt(day[0]), // First digit of day\n parseInt(month[0]), // First digit of month\n parseInt(year[0]), // First digit of year\n parseInt(year[2]) // Third digit of year\n ];\n\n const rightNumbers = [\n parseInt(day[1]), // Second digit of day\n parseInt(month[1]), // Second digit of month\n parseInt(year[1]), // Second digit of year\n parseInt(year[3]) // Fourth digit of year\n ];\n\n // Reduce numbers if they're greater than 16\n function reduceNumber(num: number): number {\n if (num <= 16) return num;\n return reduceNumber(num.toString().split('').reduce((a, b) => a + parseInt(b), 0));\n }\n\n // Calculate initial sums\n const rawLeftSum = leftNumbers.reduce((a, b) => a + b, 0);\n const rawRightSum = rightNumbers.reduce((a, b) => a + b, 0);\n\n // Calculate and reduce each direction\n const north = reduceNumber(rawLeftSum);\n const south = reduceNumber(rawRightSum);\n const east = reduceNumber(north + south);\n const west = reduceNumber(north + south + east);\n const center = reduceNumber(north + south + east + west);\n\n return {\n leftNumbers,\n rightNumbers,\n north,\n south,\n east,\n west,\n center\n };\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,SAAS,aAAa,MAQ3B;AAEA,QAAM,MAAM,KAAK,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,GAAG;AACrD,QAAM,SAAS,KAAK,SAAS,IAAI,GAAG,SAAS,EAAE,SAAS,GAAG,GAAG;AAC9D,QAAM,OAAO,KAAK,YAAY,EAAE,SAAS;AAGzC,QAAM,cAAc;AAAA,IAClB,SAAS,IAAI,CAAC,CAAC;AAAA;AAAA,IACf,SAAS,MAAM,CAAC,CAAC;AAAA;AAAA,IACjB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,IAChB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,EAClB;AAEA,QAAM,eAAe;AAAA,IACnB,SAAS,IAAI,CAAC,CAAC;AAAA;AAAA,IACf,SAAS,MAAM,CAAC,CAAC;AAAA;AAAA,IACjB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,IAChB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,EAClB;AAGA,WAAS,aAAa,KAAqB;AACzC,QAAI,OAAO,GAAI,QAAO;AACtB,WAAO,aAAa,IAAI,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;AAAA,EACnF;AAGA,QAAM,aAAa,YAAY,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AACxD,QAAM,cAAc,aAAa,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AAG1D,QAAM,QAAQ,aAAa,UAAU;AACrC,QAAM,QAAQ,aAAa,WAAW;AACtC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,QAAM,OAAO,aAAa,QAAQ,QAAQ,IAAI;AAC9C,QAAM,SAAS,aAAa,QAAQ,QAAQ,OAAO,IAAI;AAEvD,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,50 @@
1
+ // src/ifa/index.ts
2
+ function calculateOdu(date) {
3
+ const day = date.getDate().toString().padStart(2, "0");
4
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
5
+ const year = date.getFullYear().toString();
6
+ const leftNumbers = [
7
+ parseInt(day[0]),
8
+ // First digit of day
9
+ parseInt(month[0]),
10
+ // First digit of month
11
+ parseInt(year[0]),
12
+ // First digit of year
13
+ parseInt(year[2])
14
+ // Third digit of year
15
+ ];
16
+ const rightNumbers = [
17
+ parseInt(day[1]),
18
+ // Second digit of day
19
+ parseInt(month[1]),
20
+ // Second digit of month
21
+ parseInt(year[1]),
22
+ // Second digit of year
23
+ parseInt(year[3])
24
+ // Fourth digit of year
25
+ ];
26
+ function reduceNumber(num) {
27
+ if (num <= 16) return num;
28
+ return reduceNumber(num.toString().split("").reduce((a, b) => a + parseInt(b), 0));
29
+ }
30
+ const rawLeftSum = leftNumbers.reduce((a, b) => a + b, 0);
31
+ const rawRightSum = rightNumbers.reduce((a, b) => a + b, 0);
32
+ const north = reduceNumber(rawLeftSum);
33
+ const south = reduceNumber(rawRightSum);
34
+ const east = reduceNumber(north + south);
35
+ const west = reduceNumber(north + south + east);
36
+ const center = reduceNumber(north + south + east + west);
37
+ return {
38
+ leftNumbers,
39
+ rightNumbers,
40
+ north,
41
+ south,
42
+ east,
43
+ west,
44
+ center
45
+ };
46
+ }
47
+ export {
48
+ calculateOdu
49
+ };
50
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ifa/index.ts"],"sourcesContent":["\n/**\n * Calculate the Odu numbers based on a date\n * @param date - Date object\n * @returns Odu numbers\n */\nexport function calculateOdu(date: Date): {\n leftNumbers: number[],\n rightNumbers: number[],\n north: number, // O2 (reduced left sum)\n south: number, // reduced right sum\n east: number, // reduced sum of north and south\n west: number, // reduced sum of north, south, and east\n center: number // reduced sum of all directions\n} {\n // Format the date into DD/MM/YYYY\n const day = date.getDate().toString().padStart(2, '0');\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const year = date.getFullYear().toString();\n\n // Split into left and right columns\n const leftNumbers = [\n parseInt(day[0]), // First digit of day\n parseInt(month[0]), // First digit of month\n parseInt(year[0]), // First digit of year\n parseInt(year[2]) // Third digit of year\n ];\n\n const rightNumbers = [\n parseInt(day[1]), // Second digit of day\n parseInt(month[1]), // Second digit of month\n parseInt(year[1]), // Second digit of year\n parseInt(year[3]) // Fourth digit of year\n ];\n\n // Reduce numbers if they're greater than 16\n function reduceNumber(num: number): number {\n if (num <= 16) return num;\n return reduceNumber(num.toString().split('').reduce((a, b) => a + parseInt(b), 0));\n }\n\n // Calculate initial sums\n const rawLeftSum = leftNumbers.reduce((a, b) => a + b, 0);\n const rawRightSum = rightNumbers.reduce((a, b) => a + b, 0);\n\n // Calculate and reduce each direction\n const north = reduceNumber(rawLeftSum);\n const south = reduceNumber(rawRightSum);\n const east = reduceNumber(north + south);\n const west = reduceNumber(north + south + east);\n const center = reduceNumber(north + south + east + west);\n\n return {\n leftNumbers,\n rightNumbers,\n north,\n south,\n east,\n west,\n center\n };\n}"],"mappings":";AAMO,SAAS,aAAa,MAQ3B;AAEA,QAAM,MAAM,KAAK,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,GAAG;AACrD,QAAM,SAAS,KAAK,SAAS,IAAI,GAAG,SAAS,EAAE,SAAS,GAAG,GAAG;AAC9D,QAAM,OAAO,KAAK,YAAY,EAAE,SAAS;AAGzC,QAAM,cAAc;AAAA,IAClB,SAAS,IAAI,CAAC,CAAC;AAAA;AAAA,IACf,SAAS,MAAM,CAAC,CAAC;AAAA;AAAA,IACjB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,IAChB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,EAClB;AAEA,QAAM,eAAe;AAAA,IACnB,SAAS,IAAI,CAAC,CAAC;AAAA;AAAA,IACf,SAAS,MAAM,CAAC,CAAC;AAAA;AAAA,IACjB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,IAChB,SAAS,KAAK,CAAC,CAAC;AAAA;AAAA,EAClB;AAGA,WAAS,aAAa,KAAqB;AACzC,QAAI,OAAO,GAAI,QAAO;AACtB,WAAO,aAAa,IAAI,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;AAAA,EACnF;AAGA,QAAM,aAAa,YAAY,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AACxD,QAAM,cAAc,aAAa,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AAG1D,QAAM,QAAQ,aAAa,UAAU;AACrC,QAAM,QAAQ,aAAa,WAAW;AACtC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,QAAM,OAAO,aAAa,QAAQ,QAAQ,IAAI;AAC9C,QAAM,SAAS,aAAa,QAAQ,QAAQ,OAAO,IAAI;AAEvD,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,12 +1,6 @@
1
1
  export { BirthChart, BirthChartOptions, CalcFlag, HouseSystem, Planet, closeSwissEph, formatDegreeMinutes, getBirthChart, getSwissEph, getZodiacPosition } from './astrology/index.mjs';
2
- export { calculateGematria } from './kaabalah/index.mjs';
2
+ export { B as Bridge, C as ColorData, F as FOUR_WORLDS, m as HEBREW_LETTERS, n as HEBREW_LETTERS_DATA, H as HebrewLetterData, l as LATIN_LETTERS, L as LURIANIC_PATHS, w as Loader, k as MELKITZEDEKI_PATHS, M as MusicalNoteData, c as Node, b as NodeData, N as NodeId, a as NodeType, g as PLANETS, v as PartKey, P as PathData, e as SPHERES, f as SPHERE_DATA, t as SYSTEMS, S as SphereData, s as System, u as SystemKey, p as TAROT_ARKANNUS, r as TAROT_ARKANNUS_DATA, q as TAROT_DECKS, o as TAROT_SUITS, T as TarotArkAnnuData, x as TreeOfLife, U as Unloader, i as WESTERN_ELEMENTS, h as WESTERN_ZODIAC_SIGNS, j as WESTERN_ZODIAC_SIGNS_DATA, d as WesternZodiacSignData, W as WorldData } from './registry-CRL4UJrw.mjs';
3
+ export { TreeOptions, createTree } from './core/index.mjs';
4
+ export { calculateGematria } from './gematria/index.mjs';
3
5
  export { CYCLE_MEANINGS, Cycle, CycleInfo, calculateCycles, calculateLifePath } from './numerology/index.mjs';
4
6
  export { ARKANNUS, Deck, MajorArcana, TarotCard, majorArcana, shuffleTarotDeck } from './tarot/index.mjs';
5
-
6
- /**
7
- * Core utilities and shared code for the Kaabalah library
8
- */
9
- declare const VERSION = "0.1.0";
10
- declare function isValidDate(date: Date): boolean;
11
-
12
- export { VERSION, isValidDate };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,6 @@
1
1
  export { BirthChart, BirthChartOptions, CalcFlag, HouseSystem, Planet, closeSwissEph, formatDegreeMinutes, getBirthChart, getSwissEph, getZodiacPosition } from './astrology/index.js';
2
- export { calculateGematria } from './kaabalah/index.js';
2
+ export { B as Bridge, C as ColorData, F as FOUR_WORLDS, m as HEBREW_LETTERS, n as HEBREW_LETTERS_DATA, H as HebrewLetterData, l as LATIN_LETTERS, L as LURIANIC_PATHS, w as Loader, k as MELKITZEDEKI_PATHS, M as MusicalNoteData, c as Node, b as NodeData, N as NodeId, a as NodeType, g as PLANETS, v as PartKey, P as PathData, e as SPHERES, f as SPHERE_DATA, t as SYSTEMS, S as SphereData, s as System, u as SystemKey, p as TAROT_ARKANNUS, r as TAROT_ARKANNUS_DATA, q as TAROT_DECKS, o as TAROT_SUITS, T as TarotArkAnnuData, x as TreeOfLife, U as Unloader, i as WESTERN_ELEMENTS, h as WESTERN_ZODIAC_SIGNS, j as WESTERN_ZODIAC_SIGNS_DATA, d as WesternZodiacSignData, W as WorldData } from './registry-CRL4UJrw.js';
3
+ export { TreeOptions, createTree } from './core/index.js';
4
+ export { calculateGematria } from './gematria/index.js';
3
5
  export { CYCLE_MEANINGS, Cycle, CycleInfo, calculateCycles, calculateLifePath } from './numerology/index.js';
4
6
  export { ARKANNUS, Deck, MajorArcana, TarotCard, majorArcana, shuffleTarotDeck } from './tarot/index.js';
5
-
6
- /**
7
- * Core utilities and shared code for the Kaabalah library
8
- */
9
- declare const VERSION = "0.1.0";
10
- declare function isValidDate(date: Date): boolean;
11
-
12
- export { VERSION, isValidDate };