@ditojs/utils 1.28.0 → 1.29.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": "1.
|
|
3
|
+
"version": "1.29.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",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"punycode": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"typescript": "^
|
|
32
|
+
"typescript": "^5.0.2"
|
|
33
33
|
},
|
|
34
34
|
"types": "types",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6e93fe59126eab3d5ee1961d9e03f0fbdc297fba",
|
|
36
36
|
"scripts": {
|
|
37
37
|
"types": "tsc --noEmit types/index.d.ts"
|
|
38
38
|
},
|
|
@@ -120,5 +120,17 @@ describe('getValueAtDataPath()', () => {
|
|
|
120
120
|
|
|
121
121
|
expect(getValueAtDataPath(data, 'object/**/array/1/name'))
|
|
122
122
|
.toEqual(['two', 'six'])
|
|
123
|
+
|
|
124
|
+
expect(getValueAtDataPath(data, 'object/**/object'))
|
|
125
|
+
.toEqual([
|
|
126
|
+
{
|
|
127
|
+
one: { name: 'three' },
|
|
128
|
+
two: { name: 'four' }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
one: { name: 'seven' },
|
|
132
|
+
two: { name: 'eight' }
|
|
133
|
+
}
|
|
134
|
+
])
|
|
123
135
|
})
|
|
124
136
|
})
|