We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da006dc commit 6327a73Copy full SHA for 6327a73
2 files changed
js/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "object-basin",
3
- "version": "2.1.0",
+ "version": "2.2.0",
4
"description": "JavaScript/TypeScript library to stream updates to an object.",
5
"license": "MIT",
6
"repository": {
js/src/index.ts
@@ -102,16 +102,11 @@ export class Basin<T> {
102
}
103
104
if (!cursor.jsonPath!.startsWith('$')) {
105
- cursor.jsonPath = '$.' + cursor.jsonPath
+ cursor.jsonPath = '$.' + cursor.jsonPath
106
107
108
const pathArray = JSONPath.toPathArray(cursor.jsonPath!)
109
- for (const segment of pathArray) {
110
- if (segment !== '$') {
111
- this._keys.set(label, segment)
112
- break
113
- }
114
+ this._keys.set(label, pathArray[1])
115
116
117
/**
0 commit comments