Socket
Socket
Sign inDemoInstall

size-limit

Package Overview
Dependencies
7
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.12.0 to 5.0.0

read-pkg-up.js

11

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

@@ -18,14 +18,13 @@ "keywords": [

"engines": {
"node": "^10 || ^11 || ^12 || >=13.7"
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
},
"dependencies": {
"bytes-iec": "^3.1.1",
"chokidar": "^3.5.1",
"chokidar": "^3.5.2",
"ci-job-number": "^1.2.2",
"colorette": "^1.2.2",
"globby": "^11.0.3",
"globby": "^11.0.4",
"lilconfig": "^2.0.3",
"ora": "^5.4.1",
"read-pkg-up": "^7.0.1"
"mico-spinner": "1.0.0"
}
}

@@ -1,5 +0,4 @@

let readPkgUp = require('read-pkg-up')
let ora = require('ora')
let path = require('path')
let { resolve } = require('path')
let chokidar = require('chokidar')
let spinner = require('mico-spinner')

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

let createHelp = require('./create-help')
let readPkgUp = require('./read-pkg-up')
let getConfig = require('./get-config')

@@ -33,4 +33,4 @@ let parseArgs = require('./parse-args')

let cwd = path.resolve(parentPkg.path, '..', '..')
let pkg = await readPkgUp({ cwd })
let cwd = resolve(parentPkg.path, '..', '..')
let pkg = await readPkgUp(cwd)

@@ -55,3 +55,3 @@ return findPlugins(pkg)

let pkg = await readPkgUp({ cwd: process.cwd() })
let pkg = await readPkgUp(process.cwd())
let plugins = await findPlugins(pkg)

@@ -77,3 +77,3 @@

let calcAndShow = async () => {
let outputFunc = isJsonOutput ? null : ora
let outputFunc = isJsonOutput ? null : spinner
await calc(plugins, config, outputFunc)

@@ -80,0 +80,0 @@ debug.results(process, args, config)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc