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

shift-parser

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shift-parser - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

12

dist/early-errors.js

@@ -367,11 +367,3 @@ "use strict";

s = s.functionDeclarationNamesAreLexical();
switch (node.body.type) {
case "FunctionDeclaration":
case "ClassDeclaration":
if (node.body.name.name !== "*default*") {
s = s.exportDeclaredNames();
}
break;
}
s = s.exportName("*default*", node);
s = s.exportName("default", node);
return s;

@@ -696,3 +688,3 @@ }

s.exportedBindings.forEachEntry(function (nodes, bindingName) {
if (bindingName !== "*default*" && !s.lexicallyDeclaredNames.has(bindingName) && !s.varDeclaredNames.has(bindingName)) {
if (!s.lexicallyDeclaredNames.has(bindingName) && !s.varDeclaredNames.has(bindingName)) {
nodes.forEach(function (undeclaredNode) {

@@ -699,0 +691,0 @@ s = s.addError(new _earlyErrorState.EarlyError(undeclaredNode, "Exported binding " + JSON.stringify(bindingName) + " is not declared"));

2

package.json
{
"name": "shift-parser",
"version": "5.0.0",
"version": "5.0.1",
"description": "ECMAScript parser that produces a Shift format AST",

@@ -5,0 +5,0 @@ "author": "Shape Security Labs",

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