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

postcss-normalize-timing-functions

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-normalize-timing-functions - npm Package Compare versions

Comparing version 4.0.0-nightly.2020.1.9 to 4.0.0-nightly.2020.1.11

37

dist/index.js

@@ -8,4 +8,2 @@ "use strict";

var _postcss = require("postcss");
var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser"));

@@ -80,21 +78,28 @@

var _default = (0, _postcss.plugin)('postcss-normalize-timing-functions', () => {
return css => {
const cache = {};
css.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i, decl => {
const value = decl.value;
function pluginCreator() {
return {
postcssPlugin: 'postcss-normalize-timing-functions',
if (cache[value]) {
decl.value = cache[value];
return;
}
OnceExit(css) {
const cache = {};
css.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i, decl => {
const value = decl.value;
const result = transform(value);
decl.value = result;
cache[value] = result;
});
if (cache[value]) {
decl.value = cache[value];
return;
}
const result = transform(value);
decl.value = result;
cache[value] = result;
});
}
};
});
}
pluginCreator.postcss = true;
var _default = pluginCreator;
exports.default = _default;
module.exports = exports.default;
{
"name": "postcss-normalize-timing-functions",
"version": "4.0.0-nightly.2020.1.9",
"version": "4.0.0-nightly.2020.1.11",
"description": "Normalize CSS animation/transition timing functions.",

@@ -18,4 +18,3 @@ "main": "dist/index.js",

"cssnano-utils": "nightly",
"postcss": "^7.0.16",
"postcss-value-parser": "^3.3.1"
"postcss-value-parser": "^4.1.0"
},

@@ -34,3 +33,9 @@ "author": {

"node": ">=10.13.0"
},
"devDependencies": {
"postcss": "^8.2.1"
},
"peerDependencies": {
"postcss": "^8.2.1"
}
}
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