@@ -73,13 +73,13 @@ const iterateArray = (arr = [], opts = {}, iteratee = noop, done = noop) => {
7373// @param  {string } line The G-code line 
7474const  parseLine  =  ( line ,  options )  =>  { 
7575 options  =  options  ||  { } ; 
76-  options . lineOnly  =  options . lineOnly  ||  false ; 
76+  options . noParseLine  =  options . noParseLine  ||  false ; 
7777
7878 const  result  =  { 
7979 line : line 
8080 } ; 
8181
82-  if  ( ! options . lineOnly )  { 
82+  if  ( ! options . noParseLine )  { 
8383 let  n ;  // Line number 
8484 let  cs ;  // Checksum 
8585 const  words  =  [ ] ; 
@@ -190,13 +190,13 @@ class GCodeLineStream extends Transform {
190190 } ; 
191191 options  =  { 
192192 batchSize : 1000 , 
193-  lineOnly : false 
193+  noParseLine : false 
194194 } ; 
195195 lineBuffer  =  '' ; 
196196
197197 // @param  {object } [options] The options object 
198198 // @param  {number } [options.batchSize] The batch size. 
199-  // @param  {boolean } [options.lineOnly ] True to contain only lines , false otherwise. 
199+  // @param  {boolean } [options.noParseLine ] True to not parse line , false otherwise. 
200200 constructor ( options  =  { } )  { 
201201 super ( {  objectMode : true  } ) ; 
202202
@@ -247,7 +247,7 @@ class GCodeLineStream extends Transform {
247247 iterateArray ( lines ,  {  batchSize : this . options . batchSize  } ,  ( line ,  key )  =>  { 
248248 line  =  _ . trimEnd ( line ) ; 
249249 if  ( line . length  >  0 )  { 
250-  const  result  =  parseLine ( line ,  {  lineOnly : this . options . lineOnly  } ) ; 
250+  const  result  =  parseLine ( line ,  {  noParseLine : this . options . noParseLine  } ) ; 
251251 this . push ( result ) ; 
252252 } 
253253 } ,  next ) ; 
@@ -256,7 +256,7 @@ class GCodeLineStream extends Transform {
256256 if  ( this . lineBuffer )  { 
257257 const  line  =  _ . trimEnd ( this . lineBuffer ) ; 
258258 if  ( line . length  >  0 )  { 
259-  const  result  =  parseLine ( line ,  {  lineOnly : this . options . lineOnly  } ) ; 
259+  const  result  =  parseLine ( line ,  {  noParseLine : this . options . noParseLine  } ) ; 
260260 this . push ( result ) ; 
261261 } 
262262
0 commit comments