New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-unwrap-mq

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-unwrap-mq - npm Package Compare versions

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 ."
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc