Skip to content

Commit 12f427a

Browse files
authored
Merge pull request #4 from cncjs/fix-deps
Upgrade to Babel 7
2 parents 3f99c54 + 2263023 commit 12f427a

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"presets": ["es2015", "stage-0"],
2+
"extends": '@trendmicro/babel-config',
3+
"presets": [
4+
"@babel/preset-env"
5+
],
36
"env": {
47
"test": {
58
"plugins": [

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
language: node_js
22
node_js:
3-
- '7'
43
- '6'
5-
- '5'
6-
- '4'
4+
- '8'
5+
- '10'
76
after_success:
87
- npm run coveralls

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,27 @@
2626
"main": "lib/index.js",
2727
"dependencies": {},
2828
"devDependencies": {
29-
"babel-cli": "^6.26.0",
30-
"babel-eslint": "^8.0.1",
31-
"babel-plugin-istanbul": "^4.1.5",
32-
"babel-preset-es2015": "^6.24.1",
33-
"babel-preset-stage-0": "^6.24.1",
34-
"babel-register": "^6.26.0",
35-
"chai": "^4.1.2",
36-
"coveralls": "^3.0.0",
37-
"cross-env": "^5.0.5",
38-
"eslint": "^4.7.2",
39-
"eslint-config-trendmicro": "^1.0.0",
40-
"eslint-plugin-import": "^2.7.0",
41-
"eslint-plugin-jsx-a11y": "^5.1.1",
42-
"eslint-plugin-react": "^7.4.0",
43-
"mocha": "^3.5.3",
44-
"nyc": "^11.2.1"
29+
"@babel/cli": "~7.4.4",
30+
"@babel/core": "~7.4.5",
31+
"@babel/preset-env": "~7.4.5",
32+
"@babel/register": "~7.4.4",
33+
"@trendmicro/babel-config": "~1.0.0-alpha",
34+
"babel-eslint": "^10.0.1",
35+
"babel-plugin-istanbul": "^5.1.4",
36+
"chai": "^4.2.0",
37+
"coveralls": "^3.0.3",
38+
"cross-env": "^5.2.0",
39+
"eslint": "^5.16.0",
40+
"eslint-config-trendmicro": "^1.4.1",
41+
"eslint-plugin-import": "^2.17.2",
42+
"eslint-plugin-jsx-a11y": "^6.2.1",
43+
"eslint-plugin-react": "^7.13.0",
44+
"mocha": "^6.1.4",
45+
"nyc": "^14.1.1"
4546
},
4647
"nyc": {
4748
"require": [
48-
"babel-register"
49+
"@babel/register"
4950
],
5051
"reporter": [
5152
"lcov",

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,14 @@ class GCodeLineStream extends Transform {
246246
lineCount: 0,
247247
lastChunkEndedWithCR: false
248248
};
249+
249250
options = {
250251
batchSize: 1000,
251252
noParseLine: false
252253
};
254+
253255
lineBuffer = '';
256+
254257
re = new RegExp(/.*(?:\r\n|\r|\n)|.+$/g);
255258

256259
// @param {object} [options] The options object
@@ -316,6 +319,7 @@ class GCodeLineStream extends Transform {
316319
}
317320
}, next);
318321
}
322+
319323
_flush(done) {
320324
if (this.lineBuffer) {
321325
const line = this.lineBuffer.trim();

0 commit comments

Comments
 (0)