postcss-normalize-display-values
Advanced tools
+20
-7
| { | ||
| "name": "postcss-normalize-display-values", | ||
| "version": "8.0.1", | ||
| "version": "8.0.2", | ||
| "description": "Normalize multiple value display syntaxes into single values.", | ||
| "main": "src/index.js", | ||
| "types": "types/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./types/index.d.ts", | ||
| "default": "./src/index.js" | ||
| }, | ||
| "./src": "./src/index.js", | ||
| "./src/index": "./src/index.js", | ||
| "./src/index.js": "./src/index.js", | ||
| "./src/lib/map": "./src/lib/map.js", | ||
| "./src/lib/map.js": "./src/lib/map.js", | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "files": [ | ||
@@ -19,5 +29,8 @@ "LICENSE-MIT", | ||
| "email": "beneb.info@gmail.com", | ||
| "url": "http://beneb.info" | ||
| "url": "https://beneb.info" | ||
| }, | ||
| "repository": "cssnano/cssnano", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "cssnano/cssnano" | ||
| }, | ||
| "bugs": { | ||
@@ -31,7 +44,7 @@ "url": "https://github.com/cssnano/cssnano/issues" | ||
| "devDependencies": { | ||
| "postcss": "^8.5.15" | ||
| "postcss": "^8.5.25" | ||
| }, | ||
| "peerDependencies": { | ||
| "postcss": "^8.5.15" | ||
| "postcss": "^8.5.25" | ||
| } | ||
| } |
+1
-1
@@ -42,4 +42,4 @@ # [postcss][postcss]-normalize-display-values | ||
| MIT © [Ben Briggs](http://beneb.info) | ||
| MIT © [Ben Briggs](https://beneb.info) | ||
| [postcss]: https://github.com/postcss/postcss |
+9
-3
@@ -5,2 +5,4 @@ 'use strict'; | ||
| const displayRegex = /^display$/i; | ||
| /** | ||
@@ -36,3 +38,2 @@ * @param {string} value | ||
| /** | ||
| * @type {import('postcss').PluginCreator<void>} | ||
| * @return {import('postcss').Plugin} | ||
@@ -47,4 +48,7 @@ */ | ||
| return { | ||
| /** | ||
| * @param {import('postcss').Root} css | ||
| */ | ||
| OnceExit(css) { | ||
| css.walkDecls(/^display$/i, (decl) => { | ||
| css.walkDecls(displayRegex, (decl) => { | ||
| const value = decl.value; | ||
@@ -74,2 +78,4 @@ | ||
| pluginCreator.postcss = true; | ||
| module.exports = pluginCreator; | ||
| module.exports = /** @type {import('postcss').PluginCreator<void>}*/ ( | ||
| pluginCreator | ||
| ); |
+2
-9
@@ -1,10 +0,3 @@ | ||
| export = pluginCreator; | ||
| /** | ||
| * @type {import('postcss').PluginCreator<void>} | ||
| * @return {import('postcss').Plugin} | ||
| */ | ||
| declare function pluginCreator(): import("postcss").Plugin; | ||
| declare namespace pluginCreator { | ||
| let postcss: true; | ||
| } | ||
| declare const _exports: import("postcss").PluginCreator<void>; | ||
| export = _exports; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAiCA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CAgCnC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""} |
@@ -0,3 +1,6 @@ | ||
| /** | ||
| * Specification: https://drafts.csswg.org/css-display/#the-display-properties | ||
| */ | ||
| declare const _exports: Map<string, string>; | ||
| export = _exports; | ||
| //# sourceMappingURL=map.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/lib/map.js"],"names":[],"mappings":""} | ||
| {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/lib/map.js"],"names":[],"mappings":"AAoBA;;GAEG"} |
Sorry, the diff of this file is not supported yet
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.
6372
5.46%111
0.91%0
-100%