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

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 2.0.2 to 2.1.0

debug.js

1

create-help.js

@@ -27,2 +27,3 @@ let { existsSync } = require('fs')

` ${ y('--help') } Display this help`,
` ${ y('--debug') } Show internal configs for issue report`,
` ${ y('--version') } Display version`

@@ -29,0 +30,0 @@ )

2

package.json
{
"name": "size-limit",
"version": "2.0.2",
"version": "2.1.0",
"description": "CLI tool for Size Limit",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,2 +9,4 @@ let SizeLimitError = require('./size-limit-error')

args.limit = argv[++i]
} else if (arg === '--debug') {
args.debug = true
} else if (arg === '--save-bundle') {

@@ -11,0 +13,0 @@ if (!plugins.has('webpack')) {

@@ -9,2 +9,3 @@ let readPkgUp = require('read-pkg-up')

let parseArgs = require('./parse-args')
let debug = require('./debug')
let calc = require('./calc')

@@ -18,2 +19,3 @@

let help = createHelp(process)
let config, args

@@ -36,3 +38,3 @@ try {

let args = parseArgs(plugins, process.argv)
args = parseArgs(plugins, process.argv)
if (plugins.isEmpty) {

@@ -42,8 +44,11 @@ help.showMigrationGuide(pkg)

}
let config = await getConfig(plugins, process, args, pkg)
config = await getConfig(plugins, process, args, pkg)
await calc(plugins, config)
debug.results(process, args, config)
reporter.results(plugins, config)
if (config.failed) process.exit(1)
} catch (e) {
debug.error(process, args, config)
reporter.error(e)

@@ -50,0 +55,0 @@ process.exit(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