@bbn/bbn 1.0.99 → 1.0.101

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/bundle.js CHANGED
@@ -3691,20 +3691,20 @@
3691
3691
  };
3692
3692
  exports.fdate = fdate;
3693
3693
  });
3694
- define("fn/datetime/calendar", ["require", "exports", "fn/datetime/fdate", "fn/datetime/date", "fn/type/isDate", "fn/type/isString"], function (require, exports, fdate_js_1, date_js_3, isDate_js_5, isString_js_8) {
3694
+ define("fn/datetime/calendar", ["require", "exports", "fn/datetime/fdate", "fn/datetime/date", "fn/type/isDate", "fn/type/isString", "../../../node_modules/dayjs/dayjs.min.js"], function (require, exports, fdate_js_1, date_js_3, isDate_js_5, isString_js_8, dayjs_min_js_1) {
3695
3695
  "use strict";
3696
3696
  Object.defineProperty(exports, "__esModule", { value: true });
3697
3697
  exports.calendar = void 0;
3698
- dayjs.extend(window['dayjs_plugin_calendar']);
3698
+ dayjs_min_js_1.default.extend(window['dayjs_plugin_calendar']);
3699
3699
  const calendar = function (d, wrong_result = false) {
3700
- if (undefined === dayjs) {
3700
+ if (undefined === dayjs_min_js_1.default) {
3701
3701
  return (0, fdate_js_1.fdate)(d, wrong_result);
3702
3702
  }
3703
3703
  let r = (0, date_js_3.date)(d);
3704
3704
  if (!(0, isDate_js_5.isDate)(r)) {
3705
3705
  return wrong_result && (0, isString_js_8.isString)(wrong_result) ? wrong_result : '';
3706
3706
  }
3707
- return dayjs(r).calendar(null, {
3707
+ return (0, dayjs_min_js_1.default)(r).calendar(null, {
3708
3708
  sameDay: '[' + bbn._('Today') + ']',
3709
3709
  nextDay: '[' + bbn._('Tomorrow') + ']',
3710
3710
  nextWeek: 'ddd D',
@@ -4301,7 +4301,7 @@
4301
4301
  };
4302
4302
  exports.cssExists = cssExists;
4303
4303
  });
4304
- define("fn/datetime/dateSQL", ["require", "exports", "fn/datetime/date", "../../../node_modules/dayjs/dayjs.min.js"], function (require, exports, date_js_4, dayjs_min_js_1) {
4304
+ define("fn/datetime/dateSQL", ["require", "exports", "fn/datetime/date", "../../../node_modules/dayjs/dayjs.min.js"], function (require, exports, date_js_4, dayjs_min_js_2) {
4305
4305
  "use strict";
4306
4306
  Object.defineProperty(exports, "__esModule", { value: true });
4307
4307
  exports.dateSQL = void 0;
@@ -4326,7 +4326,7 @@
4326
4326
  const dateSQL = function (v, dayOnly) {
4327
4327
  let value = (0, date_js_4.date)(v);
4328
4328
  if (value) {
4329
- return (0, dayjs_min_js_1.dayjs)(value).format('YYYY-MM-DD' + (dayOnly ? '' : ' HH:mm:ss'));
4329
+ return (0, dayjs_min_js_2.default)(value).format('YYYY-MM-DD' + (dayOnly ? '' : ' HH:mm:ss'));
4330
4330
  }
4331
4331
  };
4332
4332
  exports.dateSQL = dateSQL;
@@ -2,6 +2,7 @@ import { fdate } from "./fdate.js";
2
2
  import { date } from "./date.js";
3
3
  import { isDate } from "../type/isDate.js";
4
4
  import { isString } from "../type/isString.js";
5
+ import dayjs from '../../../node_modules/dayjs/dayjs.min.js';
5
6
  dayjs.extend(window['dayjs_plugin_calendar']);
6
7
  const calendar = function (d, wrong_result = false) {
7
8
  if (undefined === dayjs) {
@@ -1,5 +1,5 @@
1
1
  import { date } from "./date.js";
2
- import { dayjs } from '../../../node_modules/dayjs/dayjs.min.js';
2
+ import dayjs from '../../../node_modules/dayjs/dayjs.min.js';
3
3
  /**
4
4
  * Returns a date with SQL format.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,6 @@
19
19
  "author": "Thomas Nabet <thomas.nabet@gmail.com>",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "dayjs": "^1.11.10",
23
22
  "jsdom": "22.1.0",
24
23
  "jsdom-global": "3.0.2",
25
24
  "mocha": "^10.2.0",