@bbn/bbn 1.0.229 → 1.0.231

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/fn/init.js CHANGED
@@ -88,7 +88,9 @@ export default function init(cfg, force) {
88
88
  addColors(bbn.var.colors);
89
89
  }
90
90
  if (bbn.env.lang && undefined !== dayjs) {
91
- dayjs.locale(bbn.env.lang);
91
+ import("./node_modules/dayjs/locale/".concat(bbn.env.lang, ".js")).then(function () {
92
+ dayjs.locale(bbn.env.lang);
93
+ });
92
94
  }
93
95
  window.onfocus = function () {
94
96
  bbn.env.isFocused = true;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Makes a hash out of anything
3
- * @param {Object|Array} obj
3
+ * @param {[*]} args
4
4
  * @returns {String}
5
5
  */
6
- export default function hash(): string;
6
+ export default function hash(...args: any[]): string;
@@ -4,14 +4,18 @@ import circularReplacer from '../object/circularReplacer.js';
4
4
  import simpleHash from './simpleHash.js';
5
5
  /**
6
6
  * Makes a hash out of anything
7
- * @param {Object|Array} obj
7
+ * @param {[*]} args
8
8
  * @returns {String}
9
9
  */
10
10
  export default function hash() {
11
+ var args = [];
12
+ for (var _i = 0; _i < arguments.length; _i++) {
13
+ args[_i] = arguments[_i];
14
+ }
11
15
  //log(obj);
12
16
  var st = "";
13
- for (var i in arguments) {
14
- var value = arguments[i];
17
+ for (var i in args) {
18
+ var value = args[i];
15
19
  if (value === undefined) {
16
20
  value = "__BBN_UNDEFINED__";
17
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",