Comparing version 2.2.1 to 2.2.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3
61411
1715
Updatedbrowserslist@^1.1.1