@bbn/bbn 1.0.161 → 1.0.165

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/index.js CHANGED
@@ -1,5 +1,35 @@
1
1
  import axios from 'axios';
2
2
  import dayjs from 'dayjs';
3
+ import calendar from 'dayjs/plugin/calendar.js';
4
+ import dayOfYear from 'dayjs/plugin/dayOfYear.js';
5
+ import duration from 'dayjs/plugin/duration.js';
6
+ import isBetween from 'dayjs/plugin/isBetween.js';
7
+ import isLeapYear from 'dayjs/plugin/isLeapYear.js';
8
+ import isoWeek from 'dayjs/plugin/isoWeek.js';
9
+ import localeData from 'dayjs/plugin/localeData.js';
10
+ import localizedFormat from 'dayjs/plugin/localizedFormat.js';
11
+ import minMax from 'dayjs/plugin/minMax.js';
12
+ import quarterOfYear from 'dayjs/plugin/quarterOfYear.js';
13
+ import relativeTime from 'dayjs/plugin/relativeTime.js';
14
+ import timezone from 'dayjs/plugin/timezone.js';
15
+ import updateLocale from 'dayjs/plugin/updateLocale.js';
16
+ import utc from 'dayjs/plugin/utc.js';
17
+ import weekOfYear from 'dayjs/plugin/weekOfYear.js';
18
+ dayjs.extend(calendar);
19
+ dayjs.extend(dayOfYear);
20
+ dayjs.extend(duration);
21
+ dayjs.extend(isBetween);
22
+ dayjs.extend(isLeapYear);
23
+ dayjs.extend(isoWeek);
24
+ dayjs.extend(localeData);
25
+ dayjs.extend(localizedFormat);
26
+ dayjs.extend(minMax);
27
+ dayjs.extend(quarterOfYear);
28
+ dayjs.extend(relativeTime);
29
+ dayjs.extend(timezone);
30
+ dayjs.extend(updateLocale);
31
+ dayjs.extend(utc);
32
+ dayjs.extend(weekOfYear);
3
33
  import { _ } from './_.js';
4
34
  import { $ } from './$.js';
5
35
  import { lng } from './lng.js';
@@ -21,4 +51,9 @@ var bbn = {
21
51
  db: db,
22
52
  fn: fn
23
53
  };
54
+ if ('undefined' !== typeof window) {
55
+ window.axios = axios;
56
+ window.dayjs = dayjs;
57
+ window.bbn = bbn;
58
+ }
24
59
  export { bbn, axios, dayjs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.161",
3
+ "version": "1.0.165",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",