Socket
Socket
Sign inDemoInstall

acorn-jsx

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-jsx - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/driver.js

34

inject.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc