postcss-normalize-unicode
Advanced tools
Comparing version 5.0.4 to 5.1.0
{ | ||
"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(); |
6708
5
122