@bbn/bbn 1.0.490 → 1.0.491

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/date.d.ts CHANGED
@@ -27,6 +27,8 @@ declare class bbnDateTool {
27
27
  get EE(): string;
28
28
  get DD(): string;
29
29
  get d(): string;
30
+ get dddd(): string;
31
+ get ddd(): string;
30
32
  get D(): string;
31
33
  get HH(): string;
32
34
  get H(): string;
package/dist/date.js CHANGED
@@ -484,6 +484,20 @@ class bbnDateTool {
484
484
  get d() {
485
485
  return this.day().toString();
486
486
  }
487
+ get dddd() {
488
+ const opt = {
489
+ weekday: 'long'
490
+ };
491
+ const d = new Intl.DateTimeFormat([bbn.env.lang, ...navigator.languages], opt);
492
+ return d.format(__classPrivateFieldGet(this, _bbnDateTool_value, "f"));
493
+ }
494
+ get ddd() {
495
+ const opt = {
496
+ weekday: 'short'
497
+ };
498
+ const d = new Intl.DateTimeFormat([bbn.env.lang, ...navigator.languages], opt);
499
+ return d.format(__classPrivateFieldGet(this, _bbnDateTool_value, "f"));
500
+ }
487
501
  get D() {
488
502
  return this.day().toString();
489
503
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.490",
3
+ "version": "1.0.491",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",