Skip to content

Commit db7cac7

Browse files
andrew-colemanmattbaileyuk
authored andcommitted
drop node v6; update dev dependencies
1 parent 1de39ec commit db7cac7

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ node_js:
33
- '12'
44
- '10'
55
- '8'
6-
- '6'
76
after_success:
87
- npm run coveralls
98
jobs:

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@
3939
"path"
4040
],
4141
"devDependencies": {
42-
"@babel/cli": "^7.2.0",
43-
"@babel/core": "^7.2.2",
44-
"@babel/preset-env": "^7.2.0",
45-
"browserify": "^16.1.0",
46-
"chai": "^4.1.2",
42+
"@babel/cli": "^7.6.2",
43+
"@babel/core": "^7.6.2",
44+
"@babel/preset-env": "^7.6.2",
45+
"browserify": "^16.5.0",
46+
"chai": "^4.2.0",
4747
"chai-as-promised": "^7.1.1",
48-
"coveralls": "^3.0.0",
49-
"eslint": "^5.15.3",
48+
"coveralls": "^3.0.6",
49+
"eslint": "^6.5.1",
5050
"eslint-plugin-ideal": "^0.1.3",
5151
"istanbul": "^0.4.5",
52-
"jsdoc": "^3.4.0",
52+
"jsdoc": "^3.6.3",
5353
"mkdirp": "^0.5.1",
54-
"mocha": "^6.0.2",
55-
"mocha-lcov-reporter": "^1.2.0",
56-
"regenerator": "^0.13.2",
57-
"request": "^2.81.0",
58-
"uglify-es": "^3.0.20"
54+
"mocha": "^6.2.1",
55+
"mocha-lcov-reporter": "^1.3.0",
56+
"regenerator": "^0.14.2",
57+
"request": "^2.88.0",
58+
"uglify-es": "^3.3.9"
5959
},
6060
"engines": {
61-
"node": ">= 6"
61+
"node": ">= 8"
6262
}
6363
}

src/parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const parser = (() => {
185185
return create('operator', '~>');
186186
}
187187
// test for single char operators
188-
if (operators.hasOwnProperty(currentChar)) {
188+
if (Object.prototype.hasOwnProperty.call(operators, currentChar)) {
189189
position++;
190190
return create('operator', currentChar);
191191
}
@@ -200,7 +200,7 @@ const parser = (() => {
200200
if (currentChar === '\\') { // escape sequence
201201
position++;
202202
currentChar = path.charAt(position);
203-
if (escapes.hasOwnProperty(currentChar)) {
203+
if (Object.prototype.hasOwnProperty.call(escapes, currentChar)) {
204204
qstr += escapes[currentChar];
205205
} else if (currentChar === 'u') {
206206
// \u should be followed by 4 hex digits
@@ -280,7 +280,7 @@ const parser = (() => {
280280
var ch;
281281
for (; ;) {
282282
ch = path.charAt(i);
283-
if (i === length || ' \t\n\r\v'.indexOf(ch) > -1 || operators.hasOwnProperty(ch)) {
283+
if (i === length || ' \t\n\r\v'.indexOf(ch) > -1 || Object.prototype.hasOwnProperty.call(operators, ch)) {
284284
if (path.charAt(position) === '$') {
285285
// variable reference
286286
name = path.substring(position + 1, i);

0 commit comments

Comments
 (0)