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.1.0 to 2.1.1

2

cli.js

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

.pipe(doiuse({ browsers: argv.browsers, ignore: argv.ignore }, file))
.on('error', function (err) { console.error(err) })
.pipe(out)

@@ -108,3 +109,4 @@ })

.pipe(doiuse({ browsers: argv.browsers, ignore: argv.ignore }))
.on('error', function (err) { console.error(err) })
.pipe(out)
}

2

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

@@ -5,0 +5,0 @@ "main": "lib/doiuse.js",

@@ -25,4 +25,8 @@ var through = require('through2')

var out = through.obj(function (rule, enc, next) {
var out = through.obj(write)
var duplex = duplexer(inp, out)
function write (rule, enc, next) {
try {
console.log('rule')
var mapper = new sourcemap.SourceMapGenerator()

@@ -49,5 +53,3 @@

processor.process(rule.content, { map: { prev: mapper.toString() } })
.then(function (result) {
next()
})
.then(function (result) { next() })
.catch(handleError)

@@ -60,3 +62,4 @@ } catch (e) {

if (options.skipErrors) {
out.emit('warning', error)
duplex.emit('warning', error)
next()
} else {

@@ -66,3 +69,3 @@ next(error)

}
})
}

@@ -74,3 +77,3 @@ function pushUsage (usage) {

inp.pipe(out)
return duplexer(inp, out)
return duplex
}
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