autoprefixer-stylus
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -1,2 +0,2 @@ | ||
var ap = require('autoprefixer'); | ||
var ap = require('autoprefixer-core'); | ||
@@ -15,5 +15,3 @@ /** | ||
module.exports = function() { | ||
var args = Array.prototype.slice.call(arguments); | ||
args = args.filter(function(i){ return typeof i === 'string' }); | ||
module.exports = function(opts) { | ||
@@ -24,3 +22,3 @@ return function(style){ | ||
style.on('end', function(err, css){ | ||
if (args.length) { return ap.apply(ap, args).process(css).css; } | ||
if (opts) { return ap(opts).process(css).css; } | ||
return ap.process(css).css; | ||
@@ -27,0 +25,0 @@ }); |
{ | ||
"name": "autoprefixer-stylus", | ||
"description": "autoprefixer for stylus", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"mocha-lcov-reporter": "0.0.1", | ||
"istanbul": "0.2.x" | ||
"istanbul": "0.3.x" | ||
}, | ||
@@ -24,4 +24,5 @@ "author": "Jeff Escalante", | ||
"scripts": { | ||
"test": "mocha test", | ||
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage;" | ||
"test": "mocha", | ||
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", | ||
"coverage": "istanbul cover _mocha --report html -- -R spec && open coverage/index.html" | ||
}, | ||
@@ -32,4 +33,4 @@ "engines": { | ||
"dependencies": { | ||
"autoprefixer": "2.x" | ||
"autoprefixer-core": "3.x" | ||
} | ||
} |
@@ -6,6 +6,6 @@ Autoprefixer Stylus | ||
[![tests](https://travis-ci.org/jenius/autoprefixer-stylus.svg?branch=master)](https://travis-ci.org/jenius/autoprefixer-stylus) | ||
[![npm](https://badge.fury.io/js/autoprefixer-stylus.svg)](http://badge.fury.io/js/autoprefixer-stylus) | ||
[![coverage](http://img.shields.io/coveralls/jenius/autoprefixer-stylus.svg)](https://coveralls.io/r/jenius/autoprefixer-stylus) | ||
[![dependencies](https://david-dm.org/jenius/autoprefixer-stylus.svg)](https://david-dm.org/jenius/autoprefixer-stylus) | ||
[![npm](http://img.shields.io/npm/v/autoprefixer-stylus.svg?style=flat)](http://badge.fury.io/js/autoprefixer-stylus) | ||
[![tests](http://img.shields.io/travis/jenius/autoprefixer-stylus/master.svg?style=flat)](https://travis-ci.org/jenius/autoprefixer-stylus) | ||
[![coverage](http://img.shields.io/coveralls/jenius/autoprefixer-stylus/master.svg?style=flat)](https://coveralls.io/r/jenius/autoprefixer-stylus) | ||
[![dependencies](http://img.shields.io/gemnasium/jenius/autoprefixer-stylus.svg?style=flat)](https://gemnasium.com/jenius/autoprefixer-stylus) | ||
@@ -31,7 +31,7 @@ ### Installation | ||
You can also target specific browsers if you want as such: | ||
This plugin also takes any of the [options that autoprefixer normally takes](), which at the time of writing is `browsers` and `cascade`. Example with `browsers` below: | ||
```js | ||
stylus(css) | ||
.use(autoprefixer('ie 7', 'ie 8')) | ||
.use(autoprefixer({ browsers: ['ie 7', 'ie 8'] })); | ||
``` | ||
@@ -45,10 +45,1 @@ | ||
``` | ||
License (MIT) | ||
------------- | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5465
13
28
43
+ Addedautoprefixer-core@3.x
+ Addedautoprefixer-core@3.1.2(transitive)
+ Addedpostcss@2.2.6(transitive)
- Removedautoprefixer@2.x
- Removedautoprefixer@2.2.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs-extra@0.10.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjsonfile@1.2.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedncp@0.5.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpostcss@2.1.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)