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

broccoli-autoprefixer

Package Overview
Dependencies
Maintainers
4
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 4.1.0 to 5.0.0

22

index.js
'use strict';
var Filter = require('broccoli-persistent-filter');
var objectAssign = require('object-assign');
var postcss = require('postcss');
var autoprefixer = require('autoprefixer');
const Filter = require('broccoli-persistent-filter');
const postcss = require('postcss');
const autoprefixer = require('autoprefixer');
function AutoprefixerFilter(inputTree, _options) {
var options = _options || {};
const options = _options || {};
if (!(this instanceof AutoprefixerFilter)) {

@@ -26,3 +26,3 @@ return new AutoprefixerFilter(inputTree, _options);

AutoprefixerFilter.prototype.processString = function (str, relativePath) {
var opts = objectAssign({
const opts = Object.assign({
from: relativePath,

@@ -32,3 +32,3 @@ to: relativePath

// support explicit override of inline sourcemaps
// Support explicit override of inline sourcemaps
if (opts.sourcemap !== null || opts.sourcemap !== undefined) {

@@ -40,4 +40,4 @@ opts.map = opts.sourcemap ? 'inline' : false;

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

@@ -50,5 +50,5 @@ if (warnings.length > 0) {

})
.catch(function (err) {
.catch(err => {
if (err.name === 'CssSyntaxError') {
// TODO: find a way to hide the stack so to adhere to the PostCSS guidelines
// TODO: Find a way to hide the stack so to adhere to the PostCSS guidelines
err.message += err.showSourceCode();

@@ -55,0 +55,0 @@ }

{
"name": "broccoli-autoprefixer",
"version": "4.1.0",
"version": "5.0.0",
"description": "Prefix CSS using Autoprefixer",

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

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

@@ -34,14 +34,13 @@ "files": [

"dependencies": {
"autoprefixer": "^6.0.0",
"autoprefixer": "^7.0.0",
"broccoli-persistent-filter": "^1.1.6",
"object-assign": "^4.0.1",
"postcss": "^5.0.4"
"postcss": "^6.0.1"
},
"devDependencies": {
"broccoli": "^0.16.3",
"ava": "*",
"broccoli": "^1.1.1",
"broccoli-cli": "^1.0.0",
"mocha": "*",
"rimraf": "^2.2.6",
"del": "^2.2.2",
"xo": "*"
}
}

@@ -18,3 +18,3 @@ # [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)

```js
var autoprefixer = require('broccoli-autoprefixer');
const autoprefixer = require('broccoli-autoprefixer');
tree = autoprefixer(tree, options);

@@ -30,2 +30,4 @@ ```

Type: `Object`
See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options).

@@ -37,3 +39,3 @@

Type: `boolean`
Type: `boolean`<br>
Default: `true` if the input has a sourcemap, otherwise `false`

@@ -43,8 +45,5 @@

If a sourcemap already exists in the input, Autoprefixer will automatically
include an updated sourcemap in the output. Set this value to `false` to
strip out the sourcemap entirely.
If a sourcemap already exists in the input, Autoprefixer will automatically include an updated sourcemap in the output. Set this value to `false` to strip out the sourcemap entirely.
If you'd like to extract the inline sourcemap from the output, consider using a
tool like [broccoli-source-map](https://github.com/myfreeweb/broccoli-source-map).
If you'd like to extract the inline sourcemap from the output, consider using a tool like [`broccoli-source-map`](https://github.com/myfreeweb/broccoli-source-map).

@@ -54,2 +53,2 @@

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://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