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

broccoli-autoprefixer

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-autoprefixer - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

12

index.js
'use strict';
var Filter = require('broccoli-filter');
var objectAssign = require('object-assign');
var autoprefixer = require('autoprefixer-core');
var postcss = require('postcss');
var autoprefixer = require('autoprefixer');

@@ -12,2 +12,4 @@ function AutoprefixerFilter(inputTree, options) {

Filter.call(this, inputTree);
this.inputTree = inputTree;

@@ -30,3 +32,3 @@ this.options = options || {};

// support explicit override of inline sourcemaps
if (opts.sourcemap != null) {
if (opts.sourcemap !== null || opts.sourcemap !== undefined) {
opts.map = opts.sourcemap ? 'inline' : false;

@@ -37,4 +39,4 @@ }

.process(str, opts)
.then(function (res) {
var warnings = res.warnings();
.then(function (result) {
var warnings = result.warnings();

@@ -45,3 +47,3 @@ if (warnings.length > 0) {

return res.css;
return result.css;
})

@@ -48,0 +50,0 @@ .catch(function (err) {

{
"name": "broccoli-autoprefixer",
"version": "3.0.0",
"version": "4.0.0",
"description": "Prefix CSS using Autoprefixer",

@@ -13,6 +13,6 @@ "license": "MIT",

"engines": {
"node": ">=0.10.0"
"node": ">=0.12.0"
},
"scripts": {
"test": "broccoli build temp && mocha"
"test": "xo && broccoli build temp && mocha"
},

@@ -34,6 +34,6 @@ "files": [

"dependencies": {
"autoprefixer-core": "^5.0.0",
"broccoli-filter": "^0.1.6",
"object-assign": "^2.0.0",
"postcss": "^4.1.11"
"autoprefixer": "^6.0.0",
"broccoli-filter": "^1.2.2",
"object-assign": "^4.0.1",
"postcss": "^5.0.4"
},

@@ -44,4 +44,5 @@ "devDependencies": {

"mocha": "*",
"rimraf": "^2.2.6"
"rimraf": "^2.2.6",
"xo": "*"
}
}
# [broccoli](https://github.com/joliss/broccoli)-autoprefixer [![Build Status](https://travis-ci.org/sindresorhus/broccoli-autoprefixer.svg?branch=master)](https://travis-ci.org/sindresorhus/broccoli-autoprefixer)
> Prefix CSS using [Autoprefixer](https://github.com/ai/autoprefixer)
> Prefix CSS using [Autoprefixer](https://github.com/postcss/autoprefixer)
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/ai/autoprefixer/issues).*
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/postcss/autoprefixer/issues).*

@@ -29,9 +29,6 @@

##### browsers
See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options).
Type: `array`
Default: `['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1']`
In addition, you can set this option:
The [browsers](https://github.com/ai/autoprefixer#browsers) you need to support.
##### sourcemap

@@ -51,12 +48,5 @@

##### cascade
Type: `boolean`
Default: `true`
Autoprefixer changes CSS indentation to create a nice [visual cascade](https://github.com/ai/autoprefixer#visual-cascade) of prefixes.
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
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