Socket
Socket
Sign inDemoInstall

postcss-normalize-charset

Package Overview
Dependencies
4
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.1.0

types/index.d.ts

6

package.json
{
"name": "postcss-normalize-charset",
"version": "5.0.3",
"version": "5.1.0",
"description": "Add necessary or remove extra charset with PostCSS",

@@ -14,3 +14,4 @@ "keywords": [

"src",
"LICENSE"
"LICENSE",
"types"
],

@@ -24,2 +25,3 @@ "license": "MIT",

"main": "src/index.js",
"types": "types/index.d.ts",
"engines": {

@@ -26,0 +28,0 @@ "node": "^10 || ^12 || >=14.0"

@@ -6,2 +6,10 @@ 'use strict';

/**
* @typedef {{add?: boolean}} Options
*/
/**
* @type {import('postcss').PluginCreator<Options>}
* @param {Options} opts
* @return {import('postcss').Plugin}
*/
function pluginCreator(opts = {}) {

@@ -12,3 +20,5 @@ return {

OnceExit(css, { AtRule }) {
/** @type {import('postcss').AtRule | undefined} */
let charsetRule;
/** @type {import('postcss').Node | undefined} */
let nonAsciiNode;

@@ -15,0 +25,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc