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 8.1.1 to 8.1.2

10

bin.js
#!/usr/bin/env node
let ciJobNumber = require('ci-job-number')
let { yellow } = require('picocolors')
if (ciJobNumber() !== 1) {
process.stderr.write(
yellow('Size Limit runs only on first CI job, to save CI resources\n')
)
process.exit(0)
}
require('./run.js')(process)

4

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

@@ -23,6 +23,4 @@ "keywords": [

"chokidar": "^3.5.3",
"ci-job-number": "^1.2.2",
"globby": "^11.1.0",
"lilconfig": "^2.0.6",
"mkdirp": "^1.0.4",
"nanospinner": "^1.1.0",

@@ -29,0 +27,0 @@ "picocolors": "^1.0.0"

@@ -1,4 +0,3 @@

let { writeFile } = require('fs').promises
let { writeFile, mkdir } = require('fs').promises
let { join } = require('path')
let mkdirp = require('mkdirp')

@@ -23,3 +22,3 @@ module.exports = async function processImport(check, output) {

}
await mkdirp(output)
await mkdir(output, { recursive: true })
let entry = join(output, 'index.js')

@@ -26,0 +25,0 @@ await writeFile(entry, loader)

@@ -77,3 +77,3 @@ let { createSpinner } = require('nanospinner')

let calcAndShow = async () => {
let outputFunc = isJsonOutput ? null : createSpinner
let outputFunc = isJsonOutput || isSilentMode ? null : createSpinner
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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc