Socket
Socket
Sign inDemoInstall

syntax-error

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

test/ok.js

3

index.js

@@ -7,6 +7,7 @@ var esprima = require('esprima-fb');

try {
Function(src);
eval('throw "STOP"; (function () { ' + src + '})()');
return;
}
catch (err) {
if (err === 'STOP') return undefined;
if (err.constructor.name !== 'SyntaxError') throw err;

@@ -13,0 +14,0 @@ return errorInfo(src, file);

{
"name": "syntax-error",
"version": "1.1.0",
"version": "1.1.1",
"description": "detect and report syntax errors in source code strings",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc