@parcel/utils
Advanced tools
Comparing version 2.0.0-nightly.102 to 2.0.0-nightly.107
{ | ||
"name": "@parcel/utils", | ||
"version": "2.0.0-nightly.102+28f7bfd1", | ||
"version": "2.0.0-nightly.107+b2851080", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -20,6 +20,6 @@ "license": "MIT", | ||
"@iarna/toml": "^2.2.0", | ||
"@parcel/codeframe": "2.0.0-nightly.102+28f7bfd1", | ||
"@parcel/diagnostic": "2.0.0-nightly.102+28f7bfd1", | ||
"@parcel/logger": "2.0.0-nightly.102+28f7bfd1", | ||
"@parcel/markdown-ansi": "2.0.0-nightly.102+28f7bfd1", | ||
"@parcel/codeframe": "2.0.0-nightly.107+b2851080", | ||
"@parcel/diagnostic": "2.0.0-nightly.107+b2851080", | ||
"@parcel/logger": "2.0.0-nightly.107+b2851080", | ||
"@parcel/markdown-ansi": "2.0.0-nightly.107+b2851080", | ||
"ansi-html": "^0.0.7", | ||
@@ -44,3 +44,3 @@ "chalk": "^2.4.2", | ||
}, | ||
"gitHead": "28f7bfd13f0c03317b75cb70c433681250a70518" | ||
"gitHead": "b2851080dd7c4c1df22b2c512ce50d7424c36927" | ||
} |
// @flow strict-local | ||
import type {PackageJSON, FilePath, ModuleSpecifier} from '@parcel/types'; | ||
import type { | ||
SemverRange, | ||
PackageJSON, | ||
FilePath, | ||
ModuleSpecifier, | ||
} from '@parcel/types'; | ||
import type {ResolveOptions} from 'resolve'; | ||
@@ -21,3 +26,6 @@ import type {FileSystem} from '@parcel/fs'; | ||
id: string, | ||
opts?: ResolveOptions, | ||
opts?: {| | ||
range?: ?SemverRange, | ||
...ResolveOptions, | ||
|}, | ||
): Promise<ResolveResult> { | ||
@@ -29,3 +37,7 @@ if (process.env.PARCEL_BUILD_ENV !== 'production') { | ||
opts.packageFilter = pkg => { | ||
if (pkg.name.startsWith('@parcel/') && pkg.name !== '@parcel/watcher') { | ||
if ( | ||
typeof pkg.name === 'string' && | ||
pkg.name.startsWith('@parcel/') && | ||
pkg.name !== '@parcel/watcher' | ||
) { | ||
if (pkg.source) { | ||
@@ -32,0 +44,0 @@ pkg.main = pkg.source; |
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
133141
95
4182