Skip to content

Commit c482fcd

Browse files
committed
fix: dataPath in sequential execution
1 parent e29644a commit c482fcd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/jst/instruction_keyword.jst

-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ if ({{=$newData}} instanceof this.js.Script) {
2727
{{# def.replaceWithNewData }}
2828
{{=$valid}} = true;
2929
}
30-

lib/jst/items_serial.jst

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{
66
var $dataNxt = $it.dataLevel = it.dataLevel + 1
77
, $nextData = 'data' + $dataNxt;
8+
$it.errorPath = it.util.getPathExpr(it.errorPath, 'i' + $lvl, it.opts.jsonPointers, true);
89
$it.dataPathArr[$dataNxt] = 'i' + $lvl;
910
}}
1011

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonscript-js",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "JavaScript interpreter for JSONScript",
55
"main": "lib/jsonscript.js",
66
"scripts": {
@@ -37,7 +37,7 @@
3737
"eslint": "^2.2.0",
3838
"istanbul": "^0.4.2",
3939
"jsonscript-test": "^0.4.0",
40-
"jsonscript-test-suite": "^0.4.0",
40+
"jsonscript-test-suite": "^0.4.1",
4141
"mocha": "^2.4.5",
4242
"pre-commit": "^1.1.2"
4343
}

0 commit comments

Comments
 (0)