@parcel/utils
Advanced tools
+7
-7
| { | ||
| "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" | ||
| } |
+14
-4
@@ -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
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3780909
0.01%41288
0.04%