@ditojs/utils 2.35.0 → 2.37.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Utility Functions – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/utils",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"typescript": "^5.6.3"
|
|
36
36
|
},
|
|
37
37
|
"types": "types",
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "22955cc5d9a91f267dc22934d2fcc6824b8a42a8"
|
|
39
39
|
}
|
|
@@ -12,6 +12,10 @@ describe('getValueAtDataPath()', () => {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
it('should return the root data for empty paths', () => {
|
|
16
|
+
expect(getValueAtDataPath(data, '')).toBe(data)
|
|
17
|
+
})
|
|
18
|
+
|
|
15
19
|
it('should return data at a given path in property access notation', () => {
|
|
16
20
|
expect(getValueAtDataPath(data, 'object.array[1].prop')).toBe('expected')
|
|
17
21
|
})
|