@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.493 to 2.0.0-nightly.494
@@ -731,3 +731,3 @@ "use strict"; | ||
if (name && (hasImport(asset, name) || hasExport(asset, name))) { | ||
if (name && hasExport(asset, name)) { | ||
identifier = t().identifier(name); | ||
@@ -748,3 +748,3 @@ } // Add assignment to exports object for namespace imports and commonjs. | ||
} else if ((0, t().isExpression)(declaration) || !declaration.id) { | ||
// $FlowFixMe | ||
// $FlowFixMe[incompatible-call] | ||
let declarationExpr = t().toExpression(declaration); // Declare a variable to hold the exported value. | ||
@@ -751,0 +751,0 @@ |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.493+e6a2a631", | ||
"version": "2.0.0-nightly.494+50d599db", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -28,10 +28,10 @@ "license": "MIT", | ||
"@babel/types": "^7.12.11", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2115+e6a2a631", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2115+e6a2a631", | ||
"@parcel/diagnostic": "2.0.0-nightly.493+e6a2a631", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2116+50d599db", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2116+50d599db", | ||
"@parcel/diagnostic": "2.0.0-nightly.494+50d599db", | ||
"@parcel/source-map": "2.0.0-alpha.4.19", | ||
"@parcel/utils": "2.0.0-nightly.493+e6a2a631", | ||
"@parcel/utils": "2.0.0-nightly.494+50d599db", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "e6a2a6312a472e70c353b3de9978b4f2a2b3406f" | ||
"gitHead": "50d599dbcba25b1a5a1117aad09b77e498066a17" | ||
} |
@@ -797,3 +797,3 @@ // @flow | ||
if (name && (hasImport(asset, name) || hasExport(asset, name))) { | ||
if (name && hasExport(asset, name)) { | ||
identifier = t.identifier(name); | ||
@@ -816,3 +816,3 @@ } | ||
} else if (isExpression(declaration) || !declaration.id) { | ||
// $FlowFixMe | ||
// $FlowFixMe[incompatible-call] | ||
let declarationExpr = t.toExpression(declaration); | ||
@@ -998,3 +998,3 @@ // Declare a variable to hold the exported value. | ||
function hasImport(asset: MutableAsset, id) { | ||
function hasImport(asset: MutableAsset, id: string) { | ||
for (let dep of asset.getDependencies()) { | ||
@@ -1001,0 +1001,0 @@ if (dep.symbols.hasLocalSymbol(id)) { |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
267746