Socket
Socket
Sign inDemoInstall

doiuse

Package Overview
Dependencies
Maintainers
1
Versions
54
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.1 to 2.2.2

6

lib/missing-support.js

@@ -6,5 +6,6 @@ 'use strict';

var _ = require('lodash');
var fs = require('fs');
var formatBrowserName = require('./util').formatBrowserName;
var caniuse = require('caniuse-db/fulldata-json/data-1.0');
function filterStats(browsers, stats) {

@@ -59,4 +60,3 @@ return _.transform(stats, function (resultStats, versionData, browser) {

Object.keys(features).forEach(function (feature) {
var json = fs.readFileSync(require.resolve('caniuse-db/features-json/' + feature));
var featureData = JSON.parse(json);
var featureData = caniuse.data[feature];
var missingData = filterStats(browsers, featureData.stats);

@@ -63,0 +63,0 @@

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

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

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc