Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-will-change

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-will-change - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 3.0
* Use PostCSS 7.
* Remove Node.js 4 support.
## 2.0

@@ -5,0 +9,0 @@ * Use PostCSS 6.

22

index.js

@@ -1,13 +0,13 @@

var postcss = require('postcss');
var postcss = require('postcss')
module.exports = postcss.plugin('postcss-will-change', function () {
return function (css) {
css.walkDecls('will-change', function (decl) {
var already = decl.parent.some(function (i) {
return i.type === 'decl' && i.prop === 'backface-visibility';
});
if ( already ) return;
decl.cloneBefore({ prop: 'backface-visibility', value: 'hidden' });
});
};
});
return function (css) {
css.walkDecls('will-change', function (decl) {
var already = decl.parent.some(function (i) {
return i.type === 'decl' && i.prop === 'backface-visibility'
})
if (already) return
decl.cloneBefore({ prop: 'backface-visibility', value: 'hidden' })
})
}
})
{
"name": "postcss-will-change",
"version": "2.0.0",
"version": "3.0.0",
"description": "PostCSS plugin to insert 3D hack before will-change property",

@@ -14,36 +14,6 @@ "keywords": [

"license": "MIT",
"repository": "postcss/postcss-will-change.git",
"repository": "postcss/postcss-will-change",
"dependencies": {
"postcss": "^6.0.1"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-postcss": "^2.0.2",
"jest": "^20.0.0",
"lint-staged": "^3.4.1",
"pre-commit": "^1.2.2"
},
"scripts": {
"lint-staged": "lint-staged",
"test": "jest && eslint *.js"
},
"jest": {
"coverageThreshold": {
"global": {
"statements": 100
}
}
},
"eslintConfig": {
"extends": "eslint-config-postcss/es5",
"env": {
"jest": true
}
},
"lint-staged": {
"*.js": "eslint"
},
"pre-commit": [
"lint-staged"
]
"postcss": "^7.0.2"
}
}
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