@bbn/bbn 1.0.98 → 1.0.100

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.d.ts CHANGED
@@ -2083,7 +2083,7 @@ declare module "fn/datetime/dateSQL" {
2083
2083
  * @param {Boolean} dayOnly Whether or not include the time in the date
2084
2084
  * @returns {String}
2085
2085
  */
2086
- const dateSQL: (v: any, dayOnly: any) => string;
2086
+ const dateSQL: (v: any, dayOnly: any) => any;
2087
2087
  export { dateSQL };
2088
2088
  }
2089
2089
  declare module "fn/datetime/daysInMonth" {
@@ -4704,7 +4704,7 @@ declare module "fn" {
4704
4704
  createObject: (...args: any[]) => any;
4705
4705
  cssExists: (f: any) => boolean;
4706
4706
  date: (v: any) => any;
4707
- dateSQL: (v: any, dayOnly: any) => string;
4707
+ dateSQL: (v: any, dayOnly: any) => any;
4708
4708
  daysInMonth: (v: any) => number | false;
4709
4709
  deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
4710
4710
  defaultAjaxAbortFunction: (message: any, url?: string) => void;
package/dist/bundle.js CHANGED
@@ -4301,7 +4301,7 @@
4301
4301
  };
4302
4302
  exports.cssExists = cssExists;
4303
4303
  });
4304
- define("fn/datetime/dateSQL", ["require", "exports", "fn/datetime/date"], function (require, exports, date_js_4) {
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) {
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 dayjs(value).format('YYYY-MM-DD' + (dayOnly ? '' : ' HH:mm:ss'));
4329
+ return (0, dayjs_min_js_1.default)(value).format('YYYY-MM-DD' + (dayOnly ? '' : ' HH:mm:ss'));
4330
4330
  }
4331
4331
  };
4332
4332
  exports.dateSQL = dateSQL;
@@ -16,5 +16,5 @@
16
16
  * @param {Boolean} dayOnly Whether or not include the time in the date
17
17
  * @returns {String}
18
18
  */
19
- declare const dateSQL: (v: any, dayOnly: any) => string;
19
+ declare const dateSQL: (v: any, dayOnly: any) => any;
20
20
  export { dateSQL };
@@ -1,4 +1,5 @@
1
1
  import { date } from "./date.js";
2
+ import dayjs from '../../../node_modules/dayjs/dayjs.min.js';
2
3
  /**
3
4
  * Returns a date with SQL format.
4
5
  *
package/dist/fn.d.ts CHANGED
@@ -49,7 +49,7 @@ declare const fn: {
49
49
  createObject: (...args: any[]) => any;
50
50
  cssExists: (f: any) => boolean;
51
51
  date: (v: any) => any;
52
- dateSQL: (v: any, dayOnly: any) => string;
52
+ dateSQL: (v: any, dayOnly: any) => any;
53
53
  daysInMonth: (v: any) => number | false;
54
54
  deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
55
55
  defaultAjaxAbortFunction: (message: any, url?: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "type": "module",
11
11
  "scripts": {
12
- "bbn": "tsc && tsc-bundle tsconfig.json && git stage ./src/* && git stage ./*.ts && git stage ./*.json && git stage -f ./dist/bundle.js && git commit -m \"Latest changes\" && git push && npm version patch && npm publish",
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
13
  "test": "./node_modules/.bin/mocha",
14
14
  "wtf": "echo \"Error: no test specified\" && exit 1"
15
15
  },