RubyGems
npm
PyPI
Organizations
Log in
Sign up
npm
@contrail/data-grouping
Versions diffs
1.0.12 → 1.0.13
@contrail/data-grouping 1.0.12 → 1.0.13
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/lib/data-group-generator/data-group-generator.js
+1
-1
package/package.json
+1
-1
package/lib/data-group-generator/data-group-generator.js
CHANGED
Viewed
@@ -10,7 +10,7 @@ class DataGroupGenerator {
10
10
if (!obj) {
11
11
return;
12
12
}
13
-
let key = obj
[
index
]
;
13
+
let key =
util_1.ObjectUtil.getByPath(
obj
,
index
)
;
14
14
let value = key;
15
15
if (typeof key === 'object') {
16
16
key = value.id || value.name || value;
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@contrail/data-grouping",
3
-
"version": "1.0.
12
",
3
+
"version": "1.0.
13
",
4
4
"description": "Utilities and interfaces for grouping data into hierarchial data structures based on properties.",
5
5
"main": "lib/index.js",
6
6
"types": "lib/index.d.ts",