Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe9c0eb

Browse files
Bump standard from 15.0.1 to 16.0.0 (bendrucker#14)
* Bump standard from 15.0.1 to 16.0.0 Bumps [standard](https://github.com/standard/standard) from 15.0.1 to 16.0.0. - [Release notes](https://github.com/standard/standard/releases) - [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md) - [Commits](standard/standard@v15.0.1...v16.0.0) Signed-off-by: dependabot[bot] <[email protected]> * var -> const/let Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ben Drucker <[email protected]>
1 parent 5e314b0 commit fe9c0eb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ArrayParser {
1919
}
2020

2121
nextCharacter () {
22-
var character = this.source[this.position++]
22+
const character = this.source[this.position++]
2323
if (character === '\\') {
2424
return {
2525
value: this.source[this.position++],
@@ -37,7 +37,7 @@ class ArrayParser {
3737
}
3838

3939
newEntry (includeEmpty) {
40-
var entry
40+
let entry
4141
if (this.recorded.length > 0 || includeEmpty) {
4242
entry = this.recorded.join('')
4343
if (entry === 'NULL' && !includeEmpty) {
@@ -52,14 +52,14 @@ class ArrayParser {
5252
consumeDimensions () {
5353
if (this.source[0] === '[') {
5454
while (!this.isEof()) {
55-
var char = this.nextCharacter()
55+
const char = this.nextCharacter()
5656
if (char.value === '=') break
5757
}
5858
}
5959
}
6060

6161
parse (nested) {
62-
var character, parser, quote
62+
let character, parser, quote
6363
this.consumeDimensions()
6464
while (!this.isEof()) {
6565
character = this.nextCharacter()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"dependencies": {},
2626
"devDependencies": {
27-
"standard": "^15.0.0",
27+
"standard": "^16.0.0",
2828
"tape": "^5.0.0"
2929
},
3030
"files": [

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict'
22

3-
var test = require('tape')
4-
var array = require('./')
3+
const test = require('tape')
4+
const array = require('./')
55

66
test(function (t) {
7-
var string = array.parse
7+
const string = array.parse
88
t.deepEqual(string('{}'), [], 'empty')
99
t.deepEqual(string('{""}'), [''], 'empty string')
1010
t.deepEqual(string('{1,2,3}'), ['1', '2', '3'], 'numerics')

0 commit comments

Comments
 (0)