@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.622 to 2.0.0-nightly.625
@@ -702,3 +702,3 @@ "use strict"; | ||
loc | ||
} of memberAccesses) { | ||
} of (0, _nullthrows().default)(memberAccesses)) { | ||
dep.symbols.set(name, (0, _utils().getName)(asset, 'importAsync', dep.id, name), loc); | ||
@@ -705,0 +705,0 @@ } |
@@ -722,3 +722,5 @@ "use strict"; | ||
if (newNode && (asyncResolution === null || asyncResolution === void 0 ? void 0 : asyncResolution.type) === 'asset' && !(0, t().isExpressionStatement)(newNode)) { | ||
newNode = t().callExpression(t().memberExpression(t().identifier('Promise'), t().identifier('resolve')), [newNode]); | ||
let _newNode = newNode; // For Flow | ||
newNode = t().callExpression(t().memberExpression(t().identifier('Promise'), t().identifier('resolve')), [_newNode]); | ||
} | ||
@@ -725,0 +727,0 @@ } |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.622+dc8586e3", | ||
"version": "2.0.0-nightly.625+7eb2b163", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -27,11 +27,11 @@ "license": "MIT", | ||
"@babel/types": "^7.12.13", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2244+dc8586e3", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2244+dc8586e3", | ||
"@parcel/diagnostic": "2.0.0-nightly.622+dc8586e3", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2247+7eb2b163", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2247+7eb2b163", | ||
"@parcel/diagnostic": "2.0.0-nightly.625+7eb2b163", | ||
"@parcel/source-map": "2.0.0-alpha.4.21", | ||
"@parcel/utils": "2.0.0-nightly.622+dc8586e3", | ||
"@parcel/utils": "2.0.0-nightly.625+7eb2b163", | ||
"globals": "^13.2.0", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "dc8586e359a289d65bfa4945c405f7a72a0fa596" | ||
"gitHead": "7eb2b1630a7de109e26af5f2f2b5091164058d0e" | ||
} |
@@ -753,3 +753,3 @@ // @flow | ||
// The import() return value was statically analyzable | ||
for (let {name, loc} of memberAccesses) { | ||
for (let {name, loc} of nullthrows(memberAccesses)) { | ||
dep.symbols.set( | ||
@@ -756,0 +756,0 @@ name, |
@@ -720,2 +720,3 @@ // @flow | ||
) { | ||
let _newNode = newNode; // For Flow | ||
newNode = t.callExpression( | ||
@@ -726,3 +727,3 @@ t.memberExpression( | ||
), | ||
[newNode], | ||
[_newNode], | ||
); | ||
@@ -729,0 +730,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
254918
6955