refactor: use camelCase for JavaScript APIs

BREAKING CHANGE: Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109
This commit is contained in:
Jun Yang
2019-03-10 19:21:09 +08:00
parent 4a8088d4e4
commit 64e0c876e9
12 changed files with 16 additions and 68 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export class Filter {
}
async render (value: any, scope: Scope) {
const argv: any[] = []
for(let arg of this.args) {
for (const arg of this.args) {
if (isArray(arg)) argv.push([arg[0], await evalValue(arg[1], scope)])
else argv.push(await evalValue(arg, scope))
}
+1 -1
View File
@@ -49,7 +49,7 @@ export default class Value {
}
async value (scope: Scope) {
let val = await evalExp(this.initial, scope)
for (let filter of this.filters) {
for (const filter of this.filters) {
val = await filter.render(val, scope)
}
return val