@contrail/util 1.0.62 → 1.0.64

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.
@@ -22,7 +22,12 @@ class ObjectUtil {
22
22
  static getBySlugs(obj, rootSlug, slug) {
23
23
  const rootValue = obj[rootSlug];
24
24
  if (rootValue && slug) {
25
- return rootValue[slug];
25
+ if (slug.indexOf('.') !== -1) {
26
+ return this.getByPath(rootValue, slug);
27
+ }
28
+ else {
29
+ return rootValue[slug];
30
+ }
26
31
  }
27
32
  return rootValue;
28
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "General javascript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",