Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

syntax-error

Package Overview
Dependencies
Maintainers
39
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syntax-error - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

test/esm.js

9

index.js

@@ -1,8 +0,5 @@

var aparse = require('acorn').parse;
var aparse = require('acorn-node').parse;
function parse (src, opts) {
if (!opts) opts = {}
return aparse(src, {
ecmaVersion: opts.ecmaVersion || 8,
allowHashBang: true
});
return aparse(src, opts);
}

@@ -14,3 +11,3 @@

try {
eval('throw "STOP"; (function () { ' + src + '})()');
eval('throw "STOP"; (function () { ' + src + '\n})()');
return;

@@ -17,0 +14,0 @@ }

{
"name": "syntax-error",
"version": "1.3.0",
"version": "1.4.0",
"description": "detect and report syntax errors in source code strings",
"main": "index.js",
"dependencies": {
"acorn": "^4.0.3"
"acorn-node": "^1.2.0"
},

@@ -9,0 +9,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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