Socket
Socket
Sign inDemoInstall

size-limit

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

size-limit - npm Package Compare versions

Comparing version 4.9.0 to 4.9.1

13

get-config.js
let { isAbsolute, dirname, join, relative } = require('path')
let { cosmiconfig } = require('cosmiconfig')
let { lilconfig } = require('lilconfig')
let globby = require('globby')

@@ -102,3 +102,3 @@ let bytes = require('bytes')

} else {
let explorer = cosmiconfig('size-limit', {
let explorer = lilconfig('size-limit', {
searchPlaces: [

@@ -120,14 +120,15 @@ 'package.json',

result.config.map(async check => {
let processed = { ...check }
if (check.path) {
check.files = await globby(check.path, { cwd: config.cwd })
processed.files = await globby(check.path, { cwd: config.cwd })
} else if (!check.entry) {
if (pkg.packageJson.main) {
check.files = [
processed.files = [
require.resolve(join(dirname(pkg.path), pkg.packageJson.main))
]
} else {
check.files = [join(dirname(pkg.path), 'index.js')]
processed.files = [join(dirname(pkg.path), 'index.js')]
}
}
return check
return processed
})

@@ -134,0 +135,0 @@ )

{
"name": "size-limit",
"version": "4.9.0",
"version": "4.9.1",
"description": "CLI tool for Size Limit",

@@ -25,4 +25,4 @@ "keywords": [

"colorette": "^1.2.1",
"cosmiconfig": "^7.0.0",
"globby": "^11.0.1",
"lilconfig": "^2.0.1",
"ora": "^5.1.0",

@@ -29,0 +29,0 @@ "read-pkg-up": "^7.0.1"

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