@sbspk/bs 4.0.0 → 6.0.0

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/calendar.js CHANGED
@@ -1,26 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
- [1950, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]],
5
- [1951, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
6
- [1952, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
7
- [1953, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
8
- [1954, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]],
9
- [1955, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
10
- [1956, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
11
- [1957, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
12
- [1958, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]],
13
- [1959, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
14
- [1960, [31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
15
- [1961, [31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
16
- [1962, [31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]],
17
- [1963, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
18
- [1964, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]],
19
- [1965, [31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
20
- [1966, [31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]],
21
- [1967, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
22
- [1968, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]],
23
- [1969, [31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
24
4
  [1970, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
25
5
  [1971, [31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30]],
26
6
  [1972, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
@@ -28,11 +8,11 @@ exports.default = [
28
8
  [1974, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
29
9
  [1975, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
30
10
  [1976, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
31
- [1977, [30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]],
11
+ [1977, [30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]],
32
12
  [1978, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
33
13
  [1979, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
34
14
  [1980, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
35
- [1981, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]],
15
+ [1981, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]],
36
16
  [1982, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
37
17
  [1983, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
38
18
  [1984, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
@@ -49,7 +29,7 @@ exports.default = [
49
29
  [1995, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]],
50
30
  [1996, [31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
51
31
  [1997, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
52
- [1998, [31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30]],
32
+ [1998, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
53
33
  [1999, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
54
34
  [2000, [30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
55
35
  [2001, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
@@ -113,7 +93,7 @@ exports.default = [
113
93
  [2059, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
114
94
  [2060, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
115
95
  [2061, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
116
- [2062, [30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]],
96
+ [2062, [31, 31, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]],
117
97
  [2063, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
118
98
  [2064, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
119
99
  [2065, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
@@ -133,7 +113,7 @@ exports.default = [
133
113
  [2079, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
134
114
  [2080, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]],
135
115
  [2081, [31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
136
- [2082, [31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]],
116
+ [2082, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
137
117
  [2083, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
138
118
  [2084, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
139
119
  [2085, [30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
@@ -141,10 +121,10 @@ exports.default = [
141
121
  [2087, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
142
122
  [2088, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
143
123
  [2089, [30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]],
144
- [2090, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
124
+ [2090, [31, 31, 32, 32, 31, 31, 30, 29, 30, 29, 30, 30]],
145
125
  [2091, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
146
- [2092, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
147
- [2093, [31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]],
126
+ [2092, [30, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
127
+ [2093, [31, 31, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]],
148
128
  [2094, [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]],
149
129
  [2095, [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]],
150
130
  [2096, [31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]],
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.toCommonEra = exports.toBikramSambat = void 0;
7
7
  const calendar_1 = __importDefault(require("./calendar"));
8
8
  const CALENDAR_MONTHS = calendar_1.default.flatMap((yearRow) => yearRow[1]);
9
- const START_DATE_CE = Date.UTC(1893, 3, 12); // 1893-04-12
9
+ const START_DATE_CE = Date.UTC(1913, 4 - 1, 13); // 1913-04-13 js months are 0 indexed
10
10
  const START_YEAR_BS = calendar_1.default[0][0];
11
11
  function toBikramSambat({ day, month, year }) {
12
12
  const date = Date.UTC(year, month - 1, day);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbspk/bs",
3
- "version": "4.0.0",
3
+ "version": "6.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Convert Bikram Sambat to Common Era and vice versa.",