Skip to content

Commit d0263ff

Browse files
committed
$quote instruction
1 parent 6202055 commit d0263ff

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/instruction_keywords.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = {
1111
eval$if: eval$if,
1212
eval$delay: eval$delay,
1313
eval$func: eval$func,
14-
eval$call: eval$call
14+
eval$call: eval$call,
15+
eval$quote: eval$quote
1516
};
1617

1718

@@ -207,6 +208,11 @@ function eval$call(params) {
207208
}
208209

209210

211+
function eval$quote(params) {
212+
return Promise.resolve(params.$quote);
213+
}
214+
215+
210216
function isScript(value) {
211217
return value && typeof value == 'object';
212218
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonscript-js",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"description": "JavaScript interpreter for JSONScript",
55
"main": "lib/jsonscript.js",
66
"scripts": {
@@ -30,14 +30,14 @@
3030
"ajv": "^3.7.1",
3131
"dot": "^1.0.3",
3232
"json-pointer": "^0.3.1",
33-
"jsonscript": "^0.2.2"
33+
"jsonscript": "^0.3.0"
3434
},
3535
"devDependencies": {
3636
"coveralls": "^2.11.6",
3737
"eslint": "^2.2.0",
3838
"istanbul": "^0.4.2",
3939
"jsonscript-test": "^0.2.1",
40-
"jsonscript-test-suite": "^0.2.3",
40+
"jsonscript-test-suite": "^0.3.0",
4141
"mocha": "^2.4.5",
4242
"pre-commit": "^1.1.2"
4343
}

0 commit comments

Comments
 (0)