@wesantal/santali-calendar 1.0.7 → 1.0.8
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/months/index.d.ts +1 -4
- package/dist/months/index.d.ts.map +1 -1
- package/dist/months/index.js +1 -4
- package/dist/months/index.js.map +1 -1
- package/dist/months/santali-months.d.ts +5 -4
- package/dist/months/santali-months.d.ts.map +1 -1
- package/dist/months/santali-months.js +11 -2
- package/dist/months/santali-months.js.map +1 -1
- package/package.json +53 -53
package/dist/months/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/months/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/months/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
package/dist/months/index.js
CHANGED
package/dist/months/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/months/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/months/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -36,7 +36,7 @@ export declare const REGULAR_SANTALI_MONTHS: readonly [{
|
|
|
36
36
|
readonly id: "BAISAK_BONGA";
|
|
37
37
|
readonly index: 4;
|
|
38
38
|
readonly name: "Baisak";
|
|
39
|
-
readonly olChiki: "
|
|
39
|
+
readonly olChiki: "ᱵᱟᱹᱭᱥᱟᱠ";
|
|
40
40
|
readonly isLeapMonth: false;
|
|
41
41
|
}, {
|
|
42
42
|
readonly id: "JHENT_BONGA";
|
|
@@ -78,7 +78,7 @@ export declare const REGULAR_SANTALI_MONTHS: readonly [{
|
|
|
78
78
|
readonly id: "AGHAN_BONGA";
|
|
79
79
|
readonly index: 11;
|
|
80
80
|
readonly name: "Aaghan";
|
|
81
|
-
readonly olChiki: "
|
|
81
|
+
readonly olChiki: "ᱟᱜᱷᱟᱬ";
|
|
82
82
|
readonly isLeapMonth: false;
|
|
83
83
|
}, {
|
|
84
84
|
readonly id: "PUS_BONGA";
|
|
@@ -128,7 +128,7 @@ export declare const ALL_SANTALI_MONTHS: readonly [{
|
|
|
128
128
|
readonly id: "BAISAK_BONGA";
|
|
129
129
|
readonly index: 4;
|
|
130
130
|
readonly name: "Baisak";
|
|
131
|
-
readonly olChiki: "
|
|
131
|
+
readonly olChiki: "ᱵᱟᱹᱭᱥᱟᱠ";
|
|
132
132
|
readonly isLeapMonth: false;
|
|
133
133
|
}, {
|
|
134
134
|
readonly id: "JHENT_BONGA";
|
|
@@ -170,7 +170,7 @@ export declare const ALL_SANTALI_MONTHS: readonly [{
|
|
|
170
170
|
readonly id: "AGHAN_BONGA";
|
|
171
171
|
readonly index: 11;
|
|
172
172
|
readonly name: "Aaghan";
|
|
173
|
-
readonly olChiki: "
|
|
173
|
+
readonly olChiki: "ᱟᱜᱷᱟᱬ";
|
|
174
174
|
readonly isLeapMonth: false;
|
|
175
175
|
}, {
|
|
176
176
|
readonly id: "PUS_BONGA";
|
|
@@ -194,4 +194,5 @@ export declare function getMonthMeta(id: string): SantaliMonthMeta | undefined;
|
|
|
194
194
|
* Returns true if the given string is a valid SantaliMonthId.
|
|
195
195
|
*/
|
|
196
196
|
export declare function isValidMonthId(id: string): id is SantaliMonthId;
|
|
197
|
+
export declare function getSantaliMonths(year: number): ArrayLike<SantaliMonthMeta>;
|
|
197
198
|
//# sourceMappingURL=santali-months.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"santali-months.d.ts","sourceRoot":"","sources":["../../src/months/santali-months.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"santali-months.d.ts","sourceRoot":"","sources":["../../src/months/santali-months.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOzE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFa,CAAC;AAMjD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;CAMM,CAAC;AAMtC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGiB,CAAC;AAMjD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAErE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,cAAc,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAM1E"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* `isSantaliLeapYear(year)` returns true. Its insertion point is always
|
|
10
10
|
* after Pus Bonga (index 12) and before Magh Bonga of the next year.
|
|
11
11
|
*/
|
|
12
|
+
import { isSantaliLeapYear } from "../metonic/metonic-cycle.js";
|
|
12
13
|
// ---------------------------------------------------------------------------
|
|
13
14
|
// Regular month table (12 months)
|
|
14
15
|
// ---------------------------------------------------------------------------
|
|
@@ -42,7 +43,7 @@ export const REGULAR_SANTALI_MONTHS = [
|
|
|
42
43
|
id: "BAISAK_BONGA",
|
|
43
44
|
index: 4,
|
|
44
45
|
name: "Baisak",
|
|
45
|
-
olChiki: "
|
|
46
|
+
olChiki: "ᱵᱟᱹᱭᱥᱟᱠ",
|
|
46
47
|
isLeapMonth: false,
|
|
47
48
|
},
|
|
48
49
|
{
|
|
@@ -91,7 +92,7 @@ export const REGULAR_SANTALI_MONTHS = [
|
|
|
91
92
|
id: "AGHAN_BONGA",
|
|
92
93
|
index: 11,
|
|
93
94
|
name: "Aaghan",
|
|
94
|
-
olChiki: "
|
|
95
|
+
olChiki: "ᱟᱜᱷᱟᱬ",
|
|
95
96
|
isLeapMonth: false,
|
|
96
97
|
},
|
|
97
98
|
{
|
|
@@ -147,4 +148,12 @@ export function getMonthMeta(id) {
|
|
|
147
148
|
export function isValidMonthId(id) {
|
|
148
149
|
return ALL_SANTALI_MONTHS.some((m) => m.id === id);
|
|
149
150
|
}
|
|
151
|
+
export function getSantaliMonths(year) {
|
|
152
|
+
if (isSantaliLeapYear(year)) {
|
|
153
|
+
return ALL_SANTALI_MONTHS;
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
return REGULAR_SANTALI_MONTHS;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
150
159
|
//# sourceMappingURL=santali-months.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"santali-months.js","sourceRoot":"","sources":["../../src/months/santali-months.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"santali-months.js","sourceRoot":"","sources":["../../src/months/santali-months.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,8EAA8E;AAC9E,kCAAkC;AAClC,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,KAAK;KACnB;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,CAAC;QACR,IA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,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,KAAK;KACnB;CAC6C,CAAC;AAEjD,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,IAAI;CACkB,CAAC;AAEtC,8EAA8E;AAC9E,oCAAoC;AACpC,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,sBAAsB;IACzB,kBAAkB;CAC4B,CAAC;AAEjD,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,EAAU;IACrC,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5B,OAAO,kBAAkB,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,OAAO,sBAAsB,CAAC;IAChC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@wesantal/santali-calendar",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A framework-independent Santali Calendar data and utility package for JavaScript and TypeScript applications.",
|
|
5
|
-
"private": false,
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.js"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"README.md",
|
|
19
|
-
"LICENSE"
|
|
20
|
-
],
|
|
21
|
-
"sideEffects": false,
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=18"
|
|
24
|
-
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"clean": "rm -rf dist",
|
|
27
|
-
"build": "tsc --project tsconfig.build.json",
|
|
28
|
-
"test": "vitest run",
|
|
29
|
-
"test:watch": "vitest",
|
|
30
|
-
"dev": "tsc --watch",
|
|
31
|
-
"coverage": "vitest run --coverage",
|
|
32
|
-
"lint": "eslint src",
|
|
33
|
-
"typecheck": "tsc --noEmit",
|
|
34
|
-
"lint:package": "publint"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@eslint/js": "^9.0.0",
|
|
38
|
-
"eslint": "^9.0.0",
|
|
39
|
-
"publint": "^0.3.0",
|
|
40
|
-
"vitest": "^3.2.4",
|
|
41
|
-
"typescript": "^5.0.0",
|
|
42
|
-
"typescript-eslint": "^8.0.0"
|
|
43
|
-
},
|
|
44
|
-
"author": {
|
|
45
|
-
"name": "WeSantal",
|
|
46
|
-
"email": "official.wesantal@gmail.com",
|
|
47
|
-
"url": "https://wesantal.org"
|
|
48
|
-
},
|
|
49
|
-
"license": "MIT",
|
|
50
|
-
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@wesantal/santali-calendar",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"description": "A framework-independent Santali Calendar data and utility package for JavaScript and TypeScript applications.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"clean": "rm -rf dist",
|
|
27
|
+
"build": "bun clean && tsc --project tsconfig.build.json",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
|
+
"dev": "tsc --watch",
|
|
31
|
+
"coverage": "vitest run --coverage",
|
|
32
|
+
"lint": "eslint src",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"lint:package": "publint"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@eslint/js": "^9.0.0",
|
|
38
|
+
"eslint": "^9.0.0",
|
|
39
|
+
"publint": "^0.3.0",
|
|
40
|
+
"vitest": "^3.2.4",
|
|
41
|
+
"typescript": "^5.0.0",
|
|
42
|
+
"typescript-eslint": "^8.0.0"
|
|
43
|
+
},
|
|
44
|
+
"author": {
|
|
45
|
+
"name": "WeSantal",
|
|
46
|
+
"email": "official.wesantal@gmail.com",
|
|
47
|
+
"url": "https://wesantal.org"
|
|
48
|
+
},
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
}
|
|
53
|
+
}
|