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.622 to 2.0.0-nightly.625

2

lib/hoist.js

@@ -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 @@ }

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