@bbn/bbn 2.0.164 → 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/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 (!value) {
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.164",
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
  }