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

postcss-normalize-charset

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-normalize-charset - npm Package Compare versions

Comparing version 4.0.0-rc.2 to 4.0.0

16

dist/index.js

@@ -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

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