@bbn/bbn 1.0.408 → 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.408",
3
+ "version": "1.0.409",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",