@bbn/bbn 1.0.102 → 1.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.
- package/dist/bundle.js +4 -4
- package/dist/fn/datetime/calendar.js +1 -1
- package/package.json +2 -2
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"
|
|
3694
|
+
define("fn/datetime/calendar", ["require", "exports", "../../../node_modules/dayjs/dayjs.min.js", "fn/datetime/fdate", "fn/datetime/date", "fn/type/isDate", "fn/type/isString"], function (require, exports, dayjs_min_js_1, fdate_js_1, date_js_3, isDate_js_5, isString_js_8) {
|
|
3695
3695
|
"use strict";
|
|
3696
3696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3697
3697
|
exports.calendar = void 0;
|
|
3698
|
-
dayjs_min_js_1.
|
|
3698
|
+
dayjs_min_js_1.default.extend(window['dayjs_plugin_calendar']);
|
|
3699
3699
|
const calendar = function (d, wrong_result = false) {
|
|
3700
|
-
if (undefined === dayjs_min_js_1.
|
|
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 (0, dayjs_min_js_1.
|
|
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',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import dayjs from '../../../node_modules/dayjs/dayjs.min.js';
|
|
1
2
|
import { fdate } from "./fdate.js";
|
|
2
3
|
import { date } from "./date.js";
|
|
3
4
|
import { isDate } from "../type/isDate.js";
|
|
4
5
|
import { isString } from "../type/isString.js";
|
|
5
|
-
import { dayjs } from '../../../node_modules/dayjs/dayjs.min.js';
|
|
6
6
|
dayjs.extend(window['dayjs_plugin_calendar']);
|
|
7
7
|
const calendar = function (d, wrong_result = false) {
|
|
8
8
|
if (undefined === dayjs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"bbn": "tsc && tsc-bundle tsconfig.json && git stage ./src/* && git stage ./*.ts && git stage ./*.json && git stage -f ./dist/* && git stage ./test/* && git commit -m \"Latest changes\" && git push && npm version patch && npm publish",
|
|
13
|
-
"test": "./node_modules/.bin/mocha",
|
|
13
|
+
"test": "./node_modules/.bin/mocha -r jsdom-global/register",
|
|
14
14
|
"wtf": "echo \"Error: no test specified\" && exit 1"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|