postcss-reduce-transforms
Advanced tools
+18
-7
| { | ||
| "name": "postcss-reduce-transforms", | ||
| "version": "8.0.1", | ||
| "version": "8.0.2", | ||
| "description": "Reduce transform functions with PostCSS.", | ||
| "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", | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "files": [ | ||
@@ -17,5 +25,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" | ||
| }, | ||
| "dependencies": { | ||
@@ -31,7 +42,7 @@ "postcss-value-parser": "^4.2.0" | ||
| "devDependencies": { | ||
| "postcss": "^8.5.15" | ||
| "postcss": "^8.5.25" | ||
| }, | ||
| "peerDependencies": { | ||
| "postcss": "^8.5.15" | ||
| "postcss": "^8.5.25" | ||
| } | ||
| } |
+1
-1
@@ -45,4 +45,4 @@ # [postcss][postcss]-reduce-transforms | ||
| MIT © [Ben Briggs](http://beneb.info) | ||
| MIT © [Ben Briggs](https://beneb.info) | ||
| [postcss]: https://github.com/postcss/postcss |
+8
-9
| 'use strict'; | ||
| const valueParser = require('postcss-value-parser'); | ||
| const transformRegex = /transform$/i; | ||
| /** | ||
@@ -145,4 +146,2 @@ * @param {(number|string)[]} list | ||
| node.nodes = [nodes[2]]; | ||
| return; | ||
| } | ||
@@ -184,4 +183,2 @@ } | ||
| node.nodes = [nodes[4]]; | ||
| return; | ||
| } | ||
@@ -213,4 +210,2 @@ } | ||
| node.nodes = [nodes[2]]; | ||
| return; | ||
| } | ||
@@ -277,3 +272,2 @@ } | ||
| /** | ||
| * @type {import('postcss').PluginCreator<void>} | ||
| * @return {import('postcss').Plugin} | ||
@@ -287,4 +281,7 @@ */ | ||
| return { | ||
| /** | ||
| * @param {import('postcss').Root} css | ||
| */ | ||
| OnceExit(css) { | ||
| css.walkDecls(/transform$/i, (decl) => { | ||
| css.walkDecls(transformRegex, (decl) => { | ||
| const value = decl.value; | ||
@@ -314,2 +311,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":";AAgRA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CA+BnC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""} |
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.
9312
1.22%0
-100%264
-1.86%