@bbn/bbn 2.0.163 → 2.0.170
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/functions/buildLocaleFromIntl.js +1 -1
- package/dist/dt.js +5 -1
- package/package.json +4 -1
|
@@ -257,7 +257,7 @@ const buildLocaleFromIntl = () => {
|
|
|
257
257
|
weekdaysShort.push(fmtWeekShort.format(d));
|
|
258
258
|
}
|
|
259
259
|
const { date, time, datetime } = getCommonFormatsForLocale(langs);
|
|
260
|
-
const weekInfo = locale.getWeekInfo ? locale.getWeekInfo() : {
|
|
260
|
+
const weekInfo = locale.getWeekInfo ? locale.getWeekInfo() : { firstDay: 1 };
|
|
261
261
|
extend(bbn.dt.locales, {
|
|
262
262
|
formatters: {
|
|
263
263
|
short: fmtShort,
|
package/dist/dt.js
CHANGED
|
@@ -172,9 +172,13 @@ const unitsCorrespondence = {
|
|
|
172
172
|
'w': 'w'
|
|
173
173
|
};
|
|
174
174
|
const dt = (value, inputFormat = null, cls = 'auto') => {
|
|
175
|
-
if (
|
|
175
|
+
if (value === undefined) {
|
|
176
176
|
return new bbnDtDateTime();
|
|
177
177
|
}
|
|
178
|
+
if (!value) {
|
|
179
|
+
const d = new bbnDtDateTime();
|
|
180
|
+
d.setValid(false);
|
|
181
|
+
}
|
|
178
182
|
if (typeof value === 'string') {
|
|
179
183
|
if (inputFormat) {
|
|
180
184
|
return parse(value, inputFormat, cls, true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.170",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"rollup": "^4.53.2",
|
|
40
40
|
"ts-loader": "^9.5.4",
|
|
41
41
|
"tslib": "^2.8.1",
|
|
42
|
+
"tsx": "^4.21.0",
|
|
42
43
|
"typescript": "^5.9.3",
|
|
43
44
|
"webpack": "^5.102.1",
|
|
44
45
|
"webpack-cli": "^6.0.1"
|
|
@@ -59,6 +60,8 @@
|
|
|
59
60
|
"node": ">=16.0.0"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
63
|
+
"@formatjs/intl-datetimeformat": "^6.18.2",
|
|
64
|
+
"cldr-core": "^48.0.0",
|
|
62
65
|
"temporal-polyfill": "^0.3.0"
|
|
63
66
|
}
|
|
64
67
|
}
|