@bbn/bbn 2.0.103 → 2.0.104

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.
@@ -5,6 +5,7 @@ export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
5
5
  #private;
6
6
  abstract readonly kind: bbnDtKind;
7
7
  readonly __bbnNoData = true;
8
+ readonly __isBbnDt = true;
8
9
  constructor(value?: TValue);
9
10
  get value(): TValue | undefined;
10
11
  get hasFullDate(): boolean;
@@ -22,6 +22,7 @@ import camelToCss from '../../fn/string/camelToCss.js';
22
22
  export class bbnDt {
23
23
  constructor(value) {
24
24
  this.__bbnNoData = true;
25
+ this.__isBbnDt = true;
25
26
  _bbnDt_value.set(this, void 0);
26
27
  this.getWeekdayIndex = (name, locale) => {
27
28
  const loc = locale || bbn.env.lang;
package/dist/dt.js CHANGED
@@ -197,7 +197,7 @@ const dt = (value, inputFormat = null, cls = 'auto') => {
197
197
  if (typeof value === 'number') {
198
198
  return new bbnDtDateTime(value);
199
199
  }
200
- else if (value instanceof bbnDt) {
200
+ else if (value.__isBbnDt) {
201
201
  return value;
202
202
  }
203
203
  else if (value instanceof Date) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.103",
3
+ "version": "2.0.104",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",