Comparing version 1.0.0 to 1.0.1
@@ -64,13 +64,3 @@ 'use strict'; | ||
out += this.input.slice(chunkStart, this.pos); | ||
++this.pos; | ||
if (ch === 13 && this.input.charCodeAt(this.pos) === 10) { | ||
++this.pos; | ||
out += '\n'; | ||
} else { | ||
out += String.fromCharCode(ch); | ||
} | ||
if (this.options.locations) { | ||
++this.curLine; | ||
this.lineStart = this.pos; | ||
} | ||
out += this.jsx_readNewLine(true); | ||
chunkStart = this.pos; | ||
@@ -84,2 +74,20 @@ } else { | ||
pp.jsx_readNewLine = function(normalizeCRLF) { | ||
var ch = this.input.charCodeAt(this.pos); | ||
var out; | ||
++this.pos; | ||
if (ch === 13 && this.input.charCodeAt(this.pos) === 10) { | ||
++this.pos; | ||
out = normalizeCRLF ? '\n' : '\r\n'; | ||
} else { | ||
out = String.fromCharCode(ch); | ||
} | ||
if (this.options.locations) { | ||
++this.curLine; | ||
this.lineStart = this.pos; | ||
} | ||
return out; | ||
}; | ||
pp.jsx_readString = function(quote) { | ||
@@ -96,2 +104,6 @@ var out = '', chunkStart = ++this.pos; | ||
chunkStart = this.pos; | ||
} else if (acorn.isNewLine(ch)) { | ||
out += this.input.slice(chunkStart, this.pos); | ||
out += this.jsx_readNewLine(false); | ||
chunkStart = this.pos; | ||
} else { | ||
@@ -98,0 +110,0 @@ ++this.pos; |
@@ -6,3 +6,3 @@ { | ||
"main": "acorn.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"maintainers": [ | ||
@@ -9,0 +9,0 @@ { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
116495
12
4392
0