postcss-unwrap-mq
Advanced tools
Comparing version 0.3.0 to 0.4.0
11
index.js
module.exports = (opts = {}) => { | ||
// eslint-disable-next-line prefer-let/prefer-let | ||
const { | ||
@@ -9,3 +8,3 @@ regex = undefined | ||
return { | ||
postcssPlugin: 'postcss-unwrap-mq', | ||
postcssPlugin: 'postcss-unwrap-mq' | ||
} | ||
@@ -16,6 +15,5 @@ } | ||
postcssPlugin: 'postcss-unwrap-mq', | ||
AtRule(atrule) { | ||
// eslint-disable-next-line security/detect-non-literal-regexp | ||
let test = new RegExp(regex) | ||
let matched = test.test(atrule.params) | ||
AtRule (atrule) { | ||
const test = new RegExp(regex) | ||
const matched = test.test(atrule.params) | ||
if (matched) { | ||
@@ -30,2 +28,3 @@ atrule.walkRules(rule => { | ||
} | ||
module.exports.postcss = true |
{ | ||
"name": "postcss-unwrap-mq", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "PostCSS plugin to extract matched media queries to their parents", | ||
@@ -12,5 +12,2 @@ "keywords": [ | ||
], | ||
"scripts": { | ||
"test": "jest && eslint ." | ||
}, | ||
"author": "Andrey Subbotin <andrey@subbotin.me>", | ||
@@ -20,29 +17,19 @@ "license": "MIT", | ||
"dependencies": { | ||
"postcss": "^8.3.0" | ||
"postcss": "8.4.5" | ||
}, | ||
"devDependencies": { | ||
"@logux/eslint-config": "^45.4.4", | ||
"eslint": "^7.28.0", | ||
"eslint-config-postcss": "^4.0.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-es5": "^1.5.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prefer-let": "^1.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"eslint-plugin-unicorn": "^33.0.1", | ||
"jest": "^27.0.4" | ||
"jest": "27.4.7", | ||
"standard": "16.0.4" | ||
}, | ||
"eslintConfig": { | ||
"extends": "eslint-config-postcss" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=16", | ||
"npm": ">=8" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"scripts": { | ||
"lint": "standard --fix", | ||
"test": "jest && eslint ." | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
3154
24
1
+ Addedpostcss@8.4.5(transitive)
- Removedpostcss@8.5.2(transitive)
Updatedpostcss@8.4.5