New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.493 to 2.0.0-nightly.494

4

lib/hoist.js

@@ -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)) {

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