kaabalah 6.4.3 → 6.4.4

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/ifa/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk3WVZRLPG_js = require('../chunk-3WVZRLPG.js');
3
+ var chunk2WCC2KCJ_js = require('../chunk-2WCC2KCJ.js');
4
4
  require('../chunk-FM7WUVZV.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "calculateOdu", {
9
9
  enumerable: true,
10
- get: function () { return chunk3WVZRLPG_js.calculateOdu; }
10
+ get: function () { return chunk2WCC2KCJ_js.calculateOdu; }
11
11
  });
12
12
  //# sourceMappingURL=index.js.map
13
13
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { calculateOdu } from '../chunk-YTZCZRJG.mjs';
1
+ export { calculateOdu } from '../chunk-URDMOQRN.mjs';
2
2
  import '../chunk-WY6NIR2V.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkEMTVK46M_js = require('./chunk-EMTVK46M.js');
4
- var chunk3WVZRLPG_js = require('./chunk-3WVZRLPG.js');
4
+ var chunk2WCC2KCJ_js = require('./chunk-2WCC2KCJ.js');
5
5
  var chunkUG6HZK3Z_js = require('./chunk-UG6HZK3Z.js');
6
6
  var chunk6O7MTBZN_js = require('./chunk-6O7MTBZN.js');
7
7
  var chunkPAKYKIZH_js = require('./chunk-PAKYKIZH.js');
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "getTreeLayout", {
39
39
  });
40
40
  Object.defineProperty(exports, "calculateOdu", {
41
41
  enumerable: true,
42
- get: function () { return chunk3WVZRLPG_js.calculateOdu; }
42
+ get: function () { return chunk2WCC2KCJ_js.calculateOdu; }
43
43
  });
44
44
  Object.defineProperty(exports, "OCCULT_THEME_STOPWORDS", {
45
45
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { TREE_PATH_IDS, TREE_SPHERE_IDS, TREE_SPHERE_NAMES, TREE_SVG_DEFAULT_VIEWBOX, generateTreeSvg, getTreeLayout } from './chunk-EVH4J5E2.mjs';
2
- export { calculateOdu } from './chunk-YTZCZRJG.mjs';
2
+ export { calculateOdu } from './chunk-URDMOQRN.mjs';
3
3
  export { OCCULT_THEME_STOPWORDS, buildKaabalisticMapData, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, tokenizeOccultThemeText } from './chunk-UN7QMOMX.mjs';
4
4
  export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, CalcFlag, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, EXALTATIONS, HouseSystem, PLANET_AND_NODE_NAMES, Planet, RiseTransitFlag, SIGNS, SLOW_PLANETS, VirtualNodes, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint } from './chunk-PWYOHULD.mjs';
5
5
  export { MASTER_NUMBERS, data_exports as NumerologyData, calculateChallenges, calculateCycles, calculateFibonacciCycle, calculateKaabalisticLifePath, calculatePersonalCycles, calculatePersonalMonths, calculatePersonalPeriods, calculatePersonalYear, calculateStraightAcrossReductionLifePath, getDateEnergies, isMasterNumber, reduceToSingle, reduceToSingleWithSteps } from './chunk-6P2CJUTH.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaabalah",
3
- "version": "6.4.3",
3
+ "version": "6.4.4",
4
4
  "description": "The de-facto library for any esoteric calculations and tooling",
5
5
  "engines": {
6
6
  "node": ">=18.18.0"
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- // src/ifa/index.ts
4
- function calculateOdu(date) {
5
- const day = date.getDate().toString().padStart(2, "0");
6
- const month = (date.getMonth() + 1).toString().padStart(2, "0");
7
- const year = date.getFullYear().toString();
8
- const leftNumbers = [
9
- parseInt(day[0]),
10
- // First digit of day
11
- parseInt(month[0]),
12
- // First digit of month
13
- parseInt(year[0]),
14
- // First digit of year
15
- parseInt(year[2])
16
- // Third digit of year
17
- ];
18
- const rightNumbers = [
19
- parseInt(day[1]),
20
- // Second digit of day
21
- parseInt(month[1]),
22
- // Second digit of month
23
- parseInt(year[1]),
24
- // Second digit of year
25
- parseInt(year[3])
26
- // Fourth digit of year
27
- ];
28
- function reduceNumber(num) {
29
- if (num <= 16) return num;
30
- return reduceNumber(num.toString().split("").reduce((a, b) => a + parseInt(b), 0));
31
- }
32
- const rawLeftSum = leftNumbers.reduce((a, b) => a + b, 0);
33
- const rawRightSum = rightNumbers.reduce((a, b) => a + b, 0);
34
- const north = reduceNumber(rawLeftSum);
35
- const south = reduceNumber(rawRightSum);
36
- const east = reduceNumber(north + south);
37
- const west = reduceNumber(north + south + east);
38
- const center = reduceNumber(north + south + east + west);
39
- return {
40
- leftNumbers,
41
- rightNumbers,
42
- north,
43
- south,
44
- east,
45
- west,
46
- center
47
- };
48
- }
49
-
50
- exports.calculateOdu = calculateOdu;
51
- //# sourceMappingURL=chunk-3WVZRLPG.js.map
52
- //# sourceMappingURL=chunk-3WVZRLPG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/ifa/index.ts"],"names":[],"mappings":";;;AAgBO,SAAS,aAAa,IAAwB,EAAA;AAEnD,EAAM,MAAA,GAAA,GAAM,KAAK,OAAQ,EAAA,CAAE,UAAW,CAAA,QAAA,CAAS,GAAG,GAAG,CAAA;AACrD,EAAM,MAAA,KAAA,GAAA,CAAS,KAAK,QAAS,EAAA,GAAI,GAAG,QAAS,EAAA,CAAE,QAAS,CAAA,CAAA,EAAG,GAAG,CAAA;AAC9D,EAAA,MAAM,IAAO,GAAA,IAAA,CAAK,WAAY,EAAA,CAAE,QAAS,EAAA;AAGzC,EAAA,MAAM,WAAc,GAAA;AAAA,IAClB,QAAA,CAAS,GAAI,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACf,QAAA,CAAS,KAAM,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACjB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IAChB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC;AAAA;AAAA,GAClB;AAEA,EAAA,MAAM,YAAe,GAAA;AAAA,IACnB,QAAA,CAAS,GAAI,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACf,QAAA,CAAS,KAAM,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACjB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IAChB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC;AAAA;AAAA,GAClB;AAGA,EAAA,SAAS,aAAa,GAAqB,EAAA;AACzC,IAAI,IAAA,GAAA,IAAO,IAAW,OAAA,GAAA;AACtB,IAAA,OAAO,aAAa,GAAI,CAAA,QAAA,EAAW,CAAA,KAAA,CAAM,EAAE,CAAE,CAAA,MAAA,CAAO,CAAC,CAAA,EAAG,MAAM,CAAI,GAAA,QAAA,CAAS,CAAC,CAAA,EAAG,CAAC,CAAC,CAAA;AAAA;AAInF,EAAM,MAAA,UAAA,GAAa,YAAY,MAAO,CAAA,CAAC,GAAG,CAAM,KAAA,CAAA,GAAI,GAAG,CAAC,CAAA;AACxD,EAAM,MAAA,WAAA,GAAc,aAAa,MAAO,CAAA,CAAC,GAAG,CAAM,KAAA,CAAA,GAAI,GAAG,CAAC,CAAA;AAG1D,EAAM,MAAA,KAAA,GAAQ,aAAa,UAAU,CAAA;AACrC,EAAM,MAAA,KAAA,GAAQ,aAAa,WAAW,CAAA;AACtC,EAAM,MAAA,IAAA,GAAO,YAAa,CAAA,KAAA,GAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,IAAO,GAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,GAAQ,IAAI,CAAA;AAC9C,EAAA,MAAM,MAAS,GAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,GAAQ,OAAO,IAAI,CAAA;AAEvD,EAAO,OAAA;AAAA,IACL,WAAA;AAAA,IACA,YAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAA;AAAA,IACA;AAAA,GACF;AACF","file":"chunk-3WVZRLPG.js","sourcesContent":["\nexport type OduNumbers = {\n leftNumbers: number[],\n rightNumbers: number[],\n north: number,\n south: number,\n east: number,\n west: number,\n center: number\n}\n\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): OduNumbers {\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}"]}
@@ -1,50 +0,0 @@
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
-
48
- export { calculateOdu };
49
- //# sourceMappingURL=chunk-YTZCZRJG.mjs.map
50
- //# sourceMappingURL=chunk-YTZCZRJG.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/ifa/index.ts"],"names":[],"mappings":";AAgBO,SAAS,aAAa,IAAwB,EAAA;AAEnD,EAAM,MAAA,GAAA,GAAM,KAAK,OAAQ,EAAA,CAAE,UAAW,CAAA,QAAA,CAAS,GAAG,GAAG,CAAA;AACrD,EAAM,MAAA,KAAA,GAAA,CAAS,KAAK,QAAS,EAAA,GAAI,GAAG,QAAS,EAAA,CAAE,QAAS,CAAA,CAAA,EAAG,GAAG,CAAA;AAC9D,EAAA,MAAM,IAAO,GAAA,IAAA,CAAK,WAAY,EAAA,CAAE,QAAS,EAAA;AAGzC,EAAA,MAAM,WAAc,GAAA;AAAA,IAClB,QAAA,CAAS,GAAI,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACf,QAAA,CAAS,KAAM,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACjB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IAChB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC;AAAA;AAAA,GAClB;AAEA,EAAA,MAAM,YAAe,GAAA;AAAA,IACnB,QAAA,CAAS,GAAI,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACf,QAAA,CAAS,KAAM,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IACjB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC,CAAA;AAAA;AAAA,IAChB,QAAA,CAAS,IAAK,CAAA,CAAC,CAAC;AAAA;AAAA,GAClB;AAGA,EAAA,SAAS,aAAa,GAAqB,EAAA;AACzC,IAAI,IAAA,GAAA,IAAO,IAAW,OAAA,GAAA;AACtB,IAAA,OAAO,aAAa,GAAI,CAAA,QAAA,EAAW,CAAA,KAAA,CAAM,EAAE,CAAE,CAAA,MAAA,CAAO,CAAC,CAAA,EAAG,MAAM,CAAI,GAAA,QAAA,CAAS,CAAC,CAAA,EAAG,CAAC,CAAC,CAAA;AAAA;AAInF,EAAM,MAAA,UAAA,GAAa,YAAY,MAAO,CAAA,CAAC,GAAG,CAAM,KAAA,CAAA,GAAI,GAAG,CAAC,CAAA;AACxD,EAAM,MAAA,WAAA,GAAc,aAAa,MAAO,CAAA,CAAC,GAAG,CAAM,KAAA,CAAA,GAAI,GAAG,CAAC,CAAA;AAG1D,EAAM,MAAA,KAAA,GAAQ,aAAa,UAAU,CAAA;AACrC,EAAM,MAAA,KAAA,GAAQ,aAAa,WAAW,CAAA;AACtC,EAAM,MAAA,IAAA,GAAO,YAAa,CAAA,KAAA,GAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,IAAO,GAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,GAAQ,IAAI,CAAA;AAC9C,EAAA,MAAM,MAAS,GAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,GAAQ,OAAO,IAAI,CAAA;AAEvD,EAAO,OAAA;AAAA,IACL,WAAA;AAAA,IACA,YAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAA;AAAA,IACA;AAAA,GACF;AACF","file":"chunk-YTZCZRJG.mjs","sourcesContent":["\nexport type OduNumbers = {\n leftNumbers: number[],\n rightNumbers: number[],\n north: number,\n south: number,\n east: number,\n west: number,\n center: number\n}\n\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): OduNumbers {\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}"]}