Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@parcel/utils

Package Overview
Dependencies
Maintainers
1
Versions
953
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/utils - npm Package Compare versions

Comparing version
2.0.0-canary.1864
to
2.0.0-canary.1866
+7
-7
package.json
{
"name": "@parcel/utils",
"version": "2.0.0-canary.1864+4b8189162",
"version": "2.0.0-canary.1866+9f01c02f8",
"description": "Blazing fast, zero configuration web application bundler",

@@ -36,7 +36,7 @@ "license": "MIT",

"dependencies": {
"@parcel/codeframe": "2.0.0-canary.1864+4b8189162",
"@parcel/diagnostic": "2.0.0-canary.1864+4b8189162",
"@parcel/logger": "2.0.0-canary.1864+4b8189162",
"@parcel/markdown-ansi": "2.0.0-canary.1864+4b8189162",
"@parcel/rust": "2.16.1-canary.3487+4b8189162",
"@parcel/codeframe": "2.0.0-canary.1866+9f01c02f8",
"@parcel/diagnostic": "2.0.0-canary.1866+9f01c02f8",
"@parcel/logger": "2.0.0-canary.1866+9f01c02f8",
"@parcel/markdown-ansi": "2.0.0-canary.1866+9f01c02f8",
"@parcel/rust": "2.16.2-canary.3489+9f01c02f8",
"@parcel/source-map": "^2.1.1",

@@ -70,3 +70,3 @@ "chalk": "^4.1.2",

},
"gitHead": "4b81891623a6ebfee8eaed3721580c04976f56bf"
"gitHead": "9f01c02f8d766cc8735df31f1ec96f6cf1fb9973"
}

@@ -5,2 +5,4 @@ // @flow

let importMapCache = new WeakMap();
export function getImportMap(

@@ -10,2 +12,13 @@ bundleGraph: BundleGraph<NamedBundle>,

): {[string]: string} {
let cache = importMapCache.get(bundleGraph);
if (!cache) {
cache = new WeakMap();
importMapCache.set(bundleGraph, cache);
}
let cached = cache.get(entryBundle);
if (cached) {
return cached;
}
let mappings = {};

@@ -30,2 +43,3 @@ for (let childBundle of bundleGraph.getChildBundles(entryBundle)) {

cache.set(entryBundle, mappings);
return mappings;

@@ -39,7 +53,3 @@ }

let parents = bundleGraph.getParentBundles(bundle);
let isInEntryBundleGroup = bundleGraph
.getBundleGroupsContainingBundle(bundle)
.some(g => bundleGraph.isEntryBundleGroup(g));
return (
isInEntryBundleGroup ||
parents.length === 0 ||

@@ -46,0 +56,0 @@ parents.some(

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display