panchang-ts 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +25 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -298,9 +298,11 @@ interface DailyTithiInfo extends TithiInfo {
298
298
  // ── Lunar calendar ───────────────────────────────────────────────────────────
299
299
 
300
300
  interface ChandraMasaInfo {
301
- index: number; // 0 = Chaitra … 11 = Phalguna
302
- name: string; // e.g. "Pausha"
303
- isAdhika: boolean; // true = leap/intercalary month
301
+ index: number; // 0 = Chaitra … 11 = Phalguna (Amanta / South-Indian)
302
+ name: string; // e.g. "Pausha" (Amanta name)
303
+ isAdhika: boolean; // true = leap/intercalary month
304
+ purnimantaIndex: number; // Month index in Purnimanta (North-Indian) system
305
+ purnimantaName: string; // Month name in Purnimanta system
304
306
  }
305
307
 
306
308
  interface SamvatInfo {
@@ -317,6 +319,26 @@ interface RashiInfo {
317
319
 
318
320
  // chandraRashi and suryaNakshatra both use RashiInfo
319
321
 
322
+ interface VaraInfo {
323
+ index: number; // 0 = Sunday … 6 = Saturday
324
+ name: string; // e.g. "Ravivara"
325
+ shortName: string; // e.g. "Sun"
326
+ englishName: string; // e.g. "Sunday"
327
+ }
328
+
329
+ interface MasaInfo {
330
+ index: number; // 0 = Mesha … 11 = Meena (solar month)
331
+ name: string; // e.g. "Dhanu"
332
+ }
333
+
334
+ interface KaranaInfo {
335
+ index: number;
336
+ name: string;
337
+ completionPercentage: number;
338
+ endTime: Date | null;
339
+ type: 'fixed' | 'movable';
340
+ }
341
+
320
342
  // ── Choghadiya ───────────────────────────────────────────────────────────────
321
343
 
322
344
  type ChoghadiyaQuality = 'auspicious' | 'inauspicious' | 'neutral';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "panchang-ts",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Pure TypeScript Hindu Panchang calculations. Tithi, Nakshatra, Yoga, Karana, Vara, and more. Offline-first, React Native compatible.",
5
5
  "author": "Ishank",
6
6
  "license": "MIT",