Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/utils

Package Overview
Dependencies
Maintainers
1
Versions
889
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.12.0 to 2.13.0

src/svgo.js

21

package.json
{
"name": "@parcel/utils",
"version": "2.12.0",
"version": "2.13.0",
"description": "Blazing fast, zero configuration web application bundler",

@@ -20,3 +20,3 @@ "license": "MIT",

"engines": {
"node": ">= 12.0.0"
"node": ">= 16.0.0"
},

@@ -37,9 +37,9 @@ "targets": {

"dependencies": {
"@parcel/codeframe": "2.12.0",
"@parcel/diagnostic": "2.12.0",
"@parcel/logger": "2.12.0",
"@parcel/markdown-ansi": "2.12.0",
"@parcel/rust": "2.12.0",
"@parcel/codeframe": "2.13.0",
"@parcel/diagnostic": "2.13.0",
"@parcel/logger": "2.13.0",
"@parcel/markdown-ansi": "2.13.0",
"@parcel/rust": "2.13.0",
"@parcel/source-map": "^2.1.1",
"chalk": "^4.1.0",
"chalk": "^4.1.2",
"nullthrows": "^1.1.1"

@@ -56,3 +56,3 @@ },

"json5": "^2.2.0",
"lru-cache": "^6.0.0",
"lru-cache": "^10.0.0",
"micromatch": "^4.0.4",

@@ -62,3 +62,2 @@ "node-forge": "^1.2.1",

"open": "^7.0.3",
"random-int": "^1.0.0",
"snarkdown": "^2.0.0",

@@ -74,3 +73,3 @@ "strip-ansi": "^6.0.0",

},
"gitHead": "2059029ee91e5f03a273b0954d3e629d7375f986"
"gitHead": "a53f8f3ba1025c7ea8653e9719e0a61ef9717079"
}
// @flow
import path from 'path';
import type {FileSystem} from '@parcel/fs';
import type {FileSystem} from '@parcel/types';
import {fuzzySearch} from './schema';

@@ -144,3 +144,3 @@ import {relativePath} from './path';

return fuzzySearch(potentialFiles, fileSpecifier).slice(0, 2);
return fuzzySearch(potentialFiles.sort(), fileSpecifier).slice(0, 2);
}

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

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