Socket
Socket
Sign inDemoInstall

compressible

Package Overview
Dependencies
0
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

compressible.sublime-project

5

index.js

@@ -7,3 +7,3 @@ module.exports = compressible

compressible.regex =
compressible.regexp = /json|text|javascript|dart|ecmascript|xml/
compressible.regexp = /json|text|xml/

@@ -25,3 +25,4 @@ compressible.get = get

}
var spec = compressible.specs[type.split(';')[0]]
var i = type.indexOf(';')
, spec = compressible.specs[~i ? type.slice(0, i) : type]
return spec ? spec : {

@@ -28,0 +29,0 @@ compressible: compressible.regex.test(type),

10

package.json
{
"name": "compressible",
"description": "Compressible Content-Type / mime checking",
"version": "1.0.0",
"version": "1.0.1",
"author": {

@@ -11,3 +11,3 @@ "name": "Jonathan Ong",

},
"contributors": {
"contributors": [{
"name": "Jeremiah Senkpiel",

@@ -17,3 +17,3 @@ "email": "fishrock123@rocketmail.com",

"twitter": "https://twitter.com/fishrock123"
},
}],
"license": "MIT",

@@ -41,5 +41,5 @@ "repository": {

"scripts": {
"test": "mocha --reporter spec",
"posttest": "mocha --reporter spec bench.js"
"test": "mocha --reporter spec test/compressible.js",
"posttest": "mocha --reporter spec test/benchmarks.js"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc