Socket
Socket
Sign inDemoInstall

postcss-normalize-unicode

Package Overview
Dependencies
11
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.4 to 5.1.0

types/index.d.ts

6

package.json
{
"name": "postcss-normalize-unicode",
"version": "5.0.4",
"version": "5.1.0",
"description": "Normalize unicode-range descriptors, and can convert to wildcard ranges.",
"main": "src/index.js",
"types": "types/index.d.ts",
"files": [
"src",
"LICENSE-MIT"
"LICENSE-MIT",
"types"
],

@@ -10,0 +12,0 @@ "keywords": [

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

/**
* @param {string} range
* @return {string}
*/
function unicode(range) {

@@ -56,8 +60,10 @@ const values = range.slice(2).split('-');

/*
/**
* IE and Edge before 16 version ignore the unicode-range if the 'U' is lowercase
*
* https://caniuse.com/#search=unicode-range
*
* @param {string} browser
* @return {boolean}
*/
function hasLowerCaseUPrefixBug(browser) {

@@ -67,2 +73,6 @@ return browserslist('ie <=11, edge <= 15').includes(browser);

/**
* @param {string} value
* @return {string}
*/
function transform(value, isLegacy = false) {

@@ -84,5 +94,10 @@ return valueParser(value)

/**
* @type {import('postcss').PluginCreator<void>}
* @return {import('postcss').Plugin}
*/
function pluginCreator() {
return {
postcssPlugin: 'postcss-normalize-unicode',
/** @param {import('postcss').Result & {opts: browserslist.Options}} result*/
prepare(result) {

@@ -89,0 +104,0 @@ const cache = new Map();

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