@bbn/bbn 1.0.407 → 1.0.409

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.
@@ -6,4 +6,4 @@
6
6
  * @memberof bbn.fn
7
7
  * @returns {*}
8
8
  */
9
- export default function getPath(element: any): any;
9
+ export default function getPath(element: any): string;
@@ -8,7 +8,7 @@ import replaceAll from '../string/replaceAll.js';
8
8
  * @returns {*}
9
9
  */
10
10
  export default function getPath(element) {
11
- var path,
11
+ var path = '',
12
12
  //node = $(element),
13
13
  node = element, done = 0;
14
14
  var _loop_1 = function () {
@@ -42,7 +42,7 @@ export default function getPath(element) {
42
42
  name_1 += ':nth-child(' + index + ')';
43
43
  }
44
44
  }
45
- path = name_1 + (path ? '>' + path : '');
45
+ path += name_1 + (path ? '>' + path : '');
46
46
  node = parent_1;
47
47
  };
48
48
  while (node.length) {
@@ -48,6 +48,10 @@ export default function isSame(obj1, obj2, done) {
48
48
  return true;
49
49
  }
50
50
  if (obj1 && obj2 && typeof obj1 === 'object' && typeof obj2 === 'object') {
51
+ if (![undefined, Object, Array, null].includes(obj1 === null || obj1 === void 0 ? void 0 : obj1.constructor)
52
+ || ![undefined, Object, Array, null].includes(obj2 === null || obj2 === void 0 ? void 0 : obj2.constructor)) {
53
+ return false;
54
+ }
51
55
  var tmp1 = Object.keys(obj1).sort(), tmp2 = Object.keys(obj2).sort();
52
56
  // Case where the keys are different
53
57
  if (hash(tmp1) !== hash(tmp2)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.407",
3
+ "version": "1.0.409",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",