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

doiuse

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doiuse - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

4

package.json
{
"name": "doiuse",
"version": "2.2.0",
"version": "2.2.1",
"description": "Lint CSS for browser support against caniuse database.",

@@ -30,3 +30,3 @@ "main": "lib/doiuse.js",

"dependencies": {
"browserslist": "^0.5.0",
"browserslist": "^1.0.1",
"caniuse-db": "^1.0.30000187",

@@ -33,0 +33,0 @@ "css-rule-stream": "^1.1.0",

@@ -19,7 +19,3 @@ var through = require('through2')

var processor = postcss([doiuse({
browsers: options.browsers,
ignore: options.ignore,
onFeatureUsage: pushUsage
})])
var processor

@@ -29,2 +25,16 @@ var out = through.obj(write)

try {
processor = postcss([doiuse({
browsers: options.browsers,
ignore: options.ignore,
onFeatureUsage: pushUsage
})])
inp.pipe(out)
} catch (e) {
setImmediate(function () { duplex.emit('error', e) })
}
return duplex
function write (rule, enc, next) {

@@ -72,5 +82,2 @@ try {

}
inp.pipe(out)
return duplex
}

@@ -42,1 +42,9 @@ var stream = require('../stream')

})
test('gracefully emit error on bad browsers list', function (t) {
t.plan(1)
stream({ browsers: 'Blargh!' })
.on('error', function (e) {
t.ok(e)
})
})
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