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

postcss-discard-overridden

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-discard-overridden - npm Package Compare versions

Comparing version 0.1.1 to 4.0.0-rc.0

metadata.toml

16

dist/index.js

@@ -17,7 +17,7 @@ 'use strict';

function isOverridable(name) {
return OVERRIDABLE_RULES.indexOf(_postcss2.default.vendor.unprefixed(name)) !== -1;
return ~OVERRIDABLE_RULES.indexOf(_postcss2.default.vendor.unprefixed(name));
}
function isScope(name) {
return SCOPE_RULES.indexOf(_postcss2.default.vendor.unprefixed(name)) !== -1;
return ~SCOPE_RULES.indexOf(_postcss2.default.vendor.unprefixed(name));
}

@@ -41,9 +41,9 @@

var rules = [];
css.walkAtRules(function (rule) {
if (rule.type === 'atrule' && isOverridable(rule.name)) {
var scope = getScope(rule);
cache[scope] = rule;
css.walkAtRules(function (node) {
if (isOverridable(node.name)) {
var scope = getScope(node);
cache[scope] = node;
rules.push({
node: rule,
scope: scope
node,
scope
});

@@ -50,0 +50,0 @@ }

{
"name": "postcss-discard-overridden",
"version": "0.1.1",
"version": "4.0.0-rc.0",
"description": "PostCSS plugin to discard overridden @keyframes or @counter-style.",

@@ -16,30 +16,22 @@ "main": "dist/index.js",

"license": "MIT",
"repository": "Justineo/postcss-discard-overridden",
"repository": "ben-eb/cssnano",
"bugs": {
"url": "https://github.com/Justineo/postcss-discard-overridden/issues"
"url": "https://github.com/ben-eb/cssnano/issues"
},
"homepage": "https://github.com/Justineo/postcss-discard-overridden",
"homepage": "https://github.com/ben-eb/cssnano",
"dependencies": {
"postcss": "^5.0.16"
"postcss": "^6.0.0"
},
"devDependencies": {
"ava": "^0.14.0",
"babel-cli": "^6.7.7",
"babel-plugin-add-module-exports": "^0.1.4",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.7.2",
"eslint": "^2.1.0",
"eslint-config-postcss": "^2.0.0"
"babel-cli": "^6.0.0",
"chalk": "^1.0.0",
"cross-env": "^3.0.0",
"diff": "^2.0.0"
},
"scripts": {
"test": "ava && eslint *.js"
"prepublish": "cross-env BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/"
},
"eslintConfig": {
"extends": "eslint-config-postcss/es5"
},
"ava": {
"require": [
"babel-register"
]
"engines": {
"node": ">=4"
}
}

@@ -1,2 +0,2 @@

# PostCSS Discard Overridden [![Build Status][ci-img]][ci]
# PostCSS Discard Overridden

@@ -8,4 +8,2 @@ [PostCSS] plugin to discard overridden `@keyframes` or `@counter-style`.

[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/Justineo/postcss-discard-overridden.svg
[ci]: https://travis-ci.org/Justineo/postcss-discard-overridden

@@ -156,6 +154,7 @@ ```css

```js
postcss([ require('postcss-discard-overridden') ])
```
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
examples for your environment.
See [PostCSS] docs for examples for your environment.
## Contributors
See [CONTRIBUTORS.md](https://github.com/ben-eb/cssnano/blob/master/CONTRIBUTORS.md).
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