RefValue serde 구현. bump up version. 0.1.5

This commit is contained in:
freestrings
2019-03-18 10:59:08 +09:00
parent 482c957003
commit b24a8c18a9
33 changed files with 949 additions and 629 deletions

View File

@ -6,7 +6,7 @@ function compile(path) {
if(typeof json != 'string') {
json = JSON.stringify(json)
}
return compile.template(json);
return JSON.parse(compile.template(json));
};
}
@ -16,7 +16,7 @@ function selector(json) {
}
let selector = new Selector(json);
return (path) => {
return selector.selector(path);
return JSON.parse(selector.selector(path));
}
}
@ -24,7 +24,7 @@ function select(json, path) {
if(typeof json != 'string') {
json = JSON.stringify(json)
}
return selectStr(json, path);
return JSON.parse(selectStr(json, path));
}
module.exports = {