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 0.7.0 to 0.7.1

4

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 0.7.1
* Fix multiline error messages in CLI.
* Do not load `node-zopfli` as loose dependency.
## 0.7

@@ -5,0 +9,0 @@ * Add glob pattern support to `sizeLimit` section.

2

cli.js

@@ -142,3 +142,3 @@ #!/usr/bin/env node

if (e.sizeLimit) {
msg = e.message
msg = e.message.split('. ').join('.\n')
} else if (e.message.indexOf('Module not found:') !== -1) {

@@ -145,0 +145,0 @@ const first = e.message.match(/Module not found:[^\n]*/)[0]

{
"name": "size-limit",
"version": "0.7.0",
"version": "0.7.1",
"description": "Show package size and return error if it is bigger than limits allow",

@@ -18,3 +18,3 @@ "keywords": [

"ci-job-number": "^0.3.0",
"compression-webpack-plugin": "^0.4.0",
"compression-webpack-plugin": "^1.0.0",
"file-loader": "^0.11.2",

@@ -24,3 +24,3 @@ "globby": "^6.1.0",

"read-pkg-up": "^2.0.0",
"webpack": "^3.2.0",
"webpack": "^3.3.0",
"webpack-bundle-analyzer": "^2.8.3",

@@ -31,3 +31,3 @@ "yargs": "^8.0.2"

"cross-spawn": "^5.1.0",
"eslint": "^4.2.0",
"eslint": "^4.3.0",
"eslint-config-logux": "^16.0.0",

@@ -37,3 +37,3 @@ "eslint-config-standard": "^10.2.1",

"eslint-plugin-jest": "^20.0.3",
"eslint-plugin-node": "^5.1.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-promise": "^3.5.0",

@@ -43,3 +43,3 @@ "eslint-plugin-security": "^1.4.0",

"jest": "^20.0.4",
"lint-staged": "^4.0.1",
"lint-staged": "^4.0.2",
"pre-commit": "^1.2.2",

@@ -46,0 +46,0 @@ "redux": "^3.7.2",

@@ -59,7 +59,8 @@ # Size Limit

+ {
+ "path": "index.js"
+ "path": "index.js",
+ "limit": "9 KB"
+ }
+ ],
"scripts": {
+ "size": "size-limit 9KB",
+ "size": "size-limit",
"test": "jest && eslint ."

@@ -66,0 +67,0 @@ }

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