postcss-normalize-charset
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0
@@ -13,13 +13,11 @@ 'use strict'; | ||
var charset = 'charset'; | ||
let charset = 'charset'; | ||
exports.default = _postcss2.default.plugin('postcss-normalize-' + charset, function () { | ||
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
exports.default = _postcss2.default.plugin('postcss-normalize-' + charset, (opts = {}) => { | ||
return css => { | ||
let charsetRule; | ||
let nonAsciiNode; | ||
let nonAscii = /[^\x00-\x7F]/; | ||
return function (css) { | ||
var charsetRule = void 0; | ||
var nonAsciiNode = void 0; | ||
var nonAscii = /[^\x00-\x7F]/; | ||
css.walk(function (node) { | ||
css.walk(node => { | ||
if (node.type === 'atrule' && node.name === charset) { | ||
@@ -26,0 +24,0 @@ if (!charsetRule) { |
{ | ||
"name": "postcss-normalize-charset", | ||
"version": "4.0.0-rc.2", | ||
"version": "4.0.0", | ||
"description": "Add necessary or remove extra charset with PostCSS", | ||
@@ -16,7 +16,7 @@ "keywords": [ | ||
"license": "MIT", | ||
"repository": "ben-eb/cssnano", | ||
"repository": "cssnano/cssnano", | ||
"bugs": { | ||
"url": "https://github.com/ben-eb/cssnano/issues" | ||
"url": "https://github.com/cssnano/cssnano/issues" | ||
}, | ||
"homepage": "https://github.com/ben-eb/cssnano", | ||
"homepage": "https://github.com/cssnano/cssnano", | ||
"dependencies": { | ||
@@ -27,3 +27,3 @@ "postcss": "^6.0.0" | ||
"babel-cli": "^6.0.0", | ||
"cross-env": "^3.0.0", | ||
"cross-env": "^5.0.0", | ||
"postcss-devtools": "^1.0.0" | ||
@@ -36,4 +36,4 @@ }, | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6.9.0" | ||
} | ||
} |
@@ -39,3 +39,3 @@ # postcss-normalize-charset | ||
See [CONTRIBUTORS.md](https://github.com/ben-eb/cssnano/blob/master/CONTRIBUTORS.md). | ||
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md). | ||
@@ -42,0 +42,0 @@ ## License |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
4371
37
1