Skip to content

Commit

Permalink
fix: Upgrade package dependencies and adapt sources
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Sep 24, 2019
1 parent bd7a3d4 commit 9f1f332
Show file tree
Hide file tree
Showing 13 changed files with 91 additions and 90 deletions.
2 changes: 1 addition & 1 deletion benchmarks/common/createGuard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Guard extends EventEmitter {
}

start () {
for (let test of this.tests) {
for (const test of this.tests) {
try {
this.emit('before:test', { target: test })
test.callback()
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const inputSources = [
}`,
`{
"property": "value"`,
` `,
``
' ',
''
]
let inputSource

Expand Down Expand Up @@ -226,7 +226,7 @@ function parseJSON5 () {
}
}

for (let test of inputSources) {
for (const test of inputSources) {
inputSource = test
const formattedTest = test
.split(/\r?\n/)
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/jju/extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ var unescapeMap = {
'\'': '\'',
'"': '"',
'\\': '\\',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t',
'v': '\v',
b: '\b',
f: '\f',
n: '\n',
r: '\r',
t: '\t',
v: '\v',
'/': '/'
}

Expand Down
12 changes: 6 additions & 6 deletions benchmarks/jju/original.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ var unescapeMap = {
'\'': '\'',
'"': '"',
'\\': '\\',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t',
'v': '\v',
b: '\b',
f: '\f',
n: '\n',
r: '\r',
t: '\t',
v: '\v',
'/': '/'
}

Expand Down
10 changes: 5 additions & 5 deletions benchmarks/jju/pure.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function isDecDigit (x) {
var unescapeMap = {
'"': '"',
'\\': '\\',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t',
b: '\b',
f: '\f',
n: '\n',
r: '\r',
t: '\t',
'/': '/'
}

Expand Down
12 changes: 6 additions & 6 deletions benchmarks/jju/tokenizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ var unescapeMap = {
'\'': '\'',
'"': '"',
'\\': '\\',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t',
'v': '\v',
b: '\b',
f: '\f',
n: '\n',
r: '\r',
t: '\t',
v: '\v',
'/': '/'
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/jju/unicode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
"jsonlint"
],
"dependencies": {
"ajv": "6.10.0",
"commander": "2.20.0"
"ajv": "6.10.2",
"commander": "3.0.1"
},
"devDependencies": {
"http-server": "0.11.1",
"js-yaml": "3.13.1",
"nyc": "14.1.1",
"standard": "12.0.1",
"standard": "14.3.1",
"test": "0.6.0",
"uglify-js": "3.6.0"
}
Expand Down
12 changes: 6 additions & 6 deletions src/custom-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ var unescapeMap = {
'\'': '\'',
'"': '"',
'\\': '\\',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t',
'v': '\v',
b: '\b',
f: '\f',
n: '\n',
r: '\r',
t: '\t',
v: '\v',
'/': '/'
}

Expand Down
Loading

0 comments on commit 9f1f332

Please sign in to comment.