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

builder-autoprefixer

Package Overview
Dependencies
Maintainers
18
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-autoprefixer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

History.md

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

1.0.4 / 2014-10-11
==================
* Switch / update to autoprefixer-core 3.1.1
1.0.2 / 2014-06-17

@@ -3,0 +7,0 @@ ==================

22

index.js

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

var autoprefix = require('autoprefixer');
var autoprefix = require('autoprefixer-core');
var crypto = require('crypto');

@@ -8,7 +8,15 @@

options = options || {};
var auto = autoprefix;
var prefixerOptions = {
cascade: true
};
var browsers = options.browsers;
if (Array.isArray(browsers)) browsers = browsers.join(', ');
if (browsers) auto = autoprefix(browsers);
else browsers = '';
if (browsers != null) {
if (browsers === '') {
browsers = [];
}
else if (!Array.isArray(browsers)) {
browsers = browsers.split(',').map(function(i) {return i.trim()});
}
prefixerOptions.browsers = browsers;
}

@@ -19,6 +27,6 @@ return function autoprefixer(file, done) {

if (err) return done(err);
var hash = browsers + calculate(string);
var hash = (browsers||[]).join(',') + calculate(string);
var res;
try {
res = cache[hash] = cache[hash] || auto.process(string);
res = cache[hash] = cache[hash] || autoprefix(prefixerOptions).process(string);
} catch (err) {

@@ -25,0 +33,0 @@ done(err);

{
"name": "builder-autoprefixer",
"description": "autoprefixer plugin for component-builder2.js",
"version": "1.0.3",
"version": "1.0.4",
"author": {

@@ -13,4 +13,4 @@ "name": "Jonathan Ong",

"dependencies": {
"autoprefixer": "^1.0.0"
"autoprefixer-core": "^3.1.1"
}
}
# Builder Autoprefixer
Autoprefixer plugin for [builder2.js](https://github.com/componentjs/builder2.js). Caches to create incremental builds.
Autoprefixer plugin for [builder2.js](https://github.com/componentjs/builder2.js). Caches to create incremental builds. Based on [postcss/autoprefixer-core](https://github.com/postcss/autoprefixer-core).

@@ -13,6 +13,9 @@ ## API

.use('styles',
autoprefix({ browsers: 'last 2 versions' }))
autoprefix({ browsers: ['last 2 version'] }))
.pipe(process.stdout)
```
If you provide the `options` argument as a string, use comma as seperator for multiple options.
To disable autoprefixer pass an empty string.
## License

@@ -19,0 +22,0 @@

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