@bbn/bbn 2.0.89 → 2.0.91

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.
@@ -4,6 +4,7 @@ import bbnDtDuration from './duration.js';
4
4
  export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
5
5
  #private;
6
6
  abstract readonly kind: bbnDtKind;
7
+ readonly __bbnNoData = true;
7
8
  constructor(value?: TValue);
8
9
  get value(): TValue | undefined;
9
10
  /** System time zone ID (e.g. "Europe/Rome") */
@@ -21,6 +21,7 @@ import bbnDtDuration from './duration.js';
21
21
  import camelToCss from '../../fn/string/camelToCss.js';
22
22
  export class bbnDt {
23
23
  constructor(value) {
24
+ this.__bbnNoData = true;
24
25
  _bbnDt_value.set(this, void 0);
25
26
  this.getWeekdayIndex = (name, locale) => {
26
27
  const loc = locale || bbn.env.lang;
@@ -228,7 +229,7 @@ export class bbnDt {
228
229
  throw new TypeError('Cannot compare different Temporal or bbnDt types');
229
230
  }
230
231
  static parse(input, format, cls = 'auto', locale) {
231
- return parse(input, format, cls, locale);
232
+ return bbn.dt(input, format, cls, locale);
232
233
  }
233
234
  parse(input, format) {
234
235
  return bbnDt.parse(input, format, camelToCss(this.kind));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.89",
3
+ "version": "2.0.91",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",