@parcel/utils
Advanced tools
Comparing version 2.0.0-dev.1712 to 2.0.0-dev.1781
{ | ||
"name": "@parcel/utils", | ||
"version": "2.0.0-dev.1712+c6bc8e411", | ||
"version": "2.0.0-dev.1781+61f02c2f3", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -36,9 +36,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@parcel/codeframe": "2.0.0-dev.1712+c6bc8e411", | ||
"@parcel/diagnostic": "2.0.0-dev.1712+c6bc8e411", | ||
"@parcel/logger": "2.0.0-dev.1712+c6bc8e411", | ||
"@parcel/markdown-ansi": "2.0.0-dev.1712+c6bc8e411", | ||
"@parcel/rust": "2.12.1-dev.3335+c6bc8e411", | ||
"@parcel/codeframe": "2.0.0-dev.1781+61f02c2f3", | ||
"@parcel/diagnostic": "2.0.0-dev.1781+61f02c2f3", | ||
"@parcel/logger": "2.0.0-dev.1781+61f02c2f3", | ||
"@parcel/markdown-ansi": "2.0.0-dev.1781+61f02c2f3", | ||
"@parcel/rust": "2.13.3-dev.3404+61f02c2f3", | ||
"@parcel/source-map": "^2.1.1", | ||
"chalk": "^4.1.0", | ||
"chalk": "^4.1.2", | ||
"nullthrows": "^1.1.1" | ||
@@ -55,3 +55,3 @@ }, | ||
"json5": "^2.2.0", | ||
"lru-cache": "^6.0.0", | ||
"lru-cache": "^10.0.0", | ||
"micromatch": "^4.0.4", | ||
@@ -61,3 +61,2 @@ "node-forge": "^1.2.1", | ||
"open": "^7.0.3", | ||
"random-int": "^1.0.0", | ||
"snarkdown": "^2.0.0", | ||
@@ -73,3 +72,3 @@ "strip-ansi": "^6.0.0", | ||
}, | ||
"gitHead": "c6bc8e41105247c437089ec3cb91e53f12ac5519" | ||
"gitHead": "61f02c2f339013deb2ce38ff59edbe15d62e7cb5" | ||
} |
@@ -10,3 +10,3 @@ // @flow | ||
import {parse as toml} from '@iarna/toml'; | ||
import LRU from 'lru-cache'; | ||
import {LRUCache} from 'lru-cache'; | ||
@@ -23,3 +23,3 @@ export type ConfigOutput = {| | ||
const configCache = new LRU<FilePath, ConfigOutput>({max: 500}); | ||
const configCache = new LRUCache<FilePath, ConfigOutput>({max: 500}); | ||
const resolveCache = new Map(); | ||
@@ -101,3 +101,3 @@ | ||
loadConfig.clear = () => { | ||
configCache.reset(); | ||
configCache.clear(); | ||
resolveCache.clear(); | ||
@@ -104,0 +104,0 @@ }; |
@@ -89,1 +89,2 @@ // @flow strict-local | ||
export {default as stripAnsi} from 'strip-ansi'; | ||
export {detectSVGOVersion} from './svgo'; |
// @flow | ||
import assert from 'assert'; | ||
import randomInt from 'random-int'; | ||
@@ -69,3 +68,3 @@ import PromiseQueue from '../src/PromiseQueue'; | ||
assert(running <= maxConcurrent); | ||
await Promise.resolve(randomInt(1, 10)); //sleep(randomInt(1, 10)); | ||
await Promise.resolve(Math.floor(Math.random() * 10) + 1); | ||
running--; | ||
@@ -72,0 +71,0 @@ }), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3760954
16
70
41015