@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.232 to 2.0.0-nightly.236
@@ -190,3 +190,4 @@ "use strict"; | ||
if (binding) { | ||
parent = path.findParent(p => getScopeBefore(p) === binding.scope && p.isStatement()); | ||
(0, _assert.default)(binding.path.getStatementParent().parentPath.isProgram(), "Expected binding declaration's parent to be the program"); | ||
parent = path.findParent(p => t.isProgram(p.parent)); | ||
} | ||
@@ -193,0 +194,0 @@ |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.232+6bf8145c", | ||
"version": "2.0.0-nightly.236+297087a8", | ||
"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.1854+6bf8145c", | ||
"@parcel/diagnostic": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/babylon-walk": "2.0.0-nightly.1858+297087a8", | ||
"@parcel/diagnostic": "2.0.0-nightly.236+297087a8", | ||
"@parcel/source-map": "2.0.0-alpha.4.9", | ||
"@parcel/utils": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/utils": "2.0.0-nightly.236+297087a8", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "6bf8145c61334e29e20f0619d6ce52b9dcd1f236" | ||
"gitHead": "297087a806f9ed958fad1e2217d735b284cd3d5c" | ||
} |
@@ -215,5 +215,7 @@ // @flow | ||
if (binding) { | ||
parent = path.findParent( | ||
p => getScopeBefore(p) === binding.scope && p.isStatement(), | ||
invariant( | ||
binding.path.getStatementParent().parentPath.isProgram(), | ||
"Expected binding declaration's parent to be the program", | ||
); | ||
parent = path.findParent(p => t.isProgram(p.parent)); | ||
} | ||
@@ -220,0 +222,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
215917
5707