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

@parcel/scope-hoisting

Package Overview
Dependencies
Maintainers
1
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/scope-hoisting - npm Package Compare versions

Comparing version 2.0.0-nightly.282 to 2.0.0-nightly.284

8

lib/hoist.js

@@ -238,4 +238,8 @@ "use strict";

if (!path.scope.parent && !path.scope.getData('shouldWrap')) {
path.replaceWith(getExportsIdentifier(asset, path.scope));
asset.meta.isCommonJS = true;
if (asset.meta.isES6Module) {
path.replaceWith(t.identifier('undefined'));
} else {
path.replaceWith(getExportsIdentifier(asset, path.scope));
asset.meta.isCommonJS = true;
}
}

@@ -242,0 +246,0 @@ },

{
"name": "@parcel/scope-hoisting",
"version": "2.0.0-nightly.282+948cccd3",
"version": "2.0.0-nightly.284+5d60c689",
"description": "Blazing fast, zero configuration web application bundler",

@@ -24,9 +24,9 @@ "license": "MIT",

"@babel/types": "^7.3.3",
"@parcel/babylon-walk": "2.0.0-nightly.1904+948cccd3",
"@parcel/diagnostic": "2.0.0-nightly.282+948cccd3",
"@parcel/babylon-walk": "2.0.0-nightly.1906+5d60c689",
"@parcel/diagnostic": "2.0.0-nightly.284+5d60c689",
"@parcel/source-map": "2.0.0-alpha.4.11",
"@parcel/utils": "2.0.0-nightly.282+948cccd3",
"@parcel/utils": "2.0.0-nightly.284+5d60c689",
"nullthrows": "^1.1.1"
},
"gitHead": "948cccd392eecf15ccbd08b91a0de239f6a3abcc"
"gitHead": "5d60c6897cbdfc50b105e83a8bc5392c389002d8"
}

@@ -300,4 +300,8 @@ // @flow

if (!path.scope.parent && !path.scope.getData('shouldWrap')) {
path.replaceWith(getExportsIdentifier(asset, path.scope));
asset.meta.isCommonJS = true;
if (asset.meta.isES6Module) {
path.replaceWith(t.identifier('undefined'));
} else {
path.replaceWith(getExportsIdentifier(asset, path.scope));
asset.meta.isCommonJS = true;
}
}

@@ -304,0 +308,0 @@ },

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