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

autoprefixer

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer - npm Package Compare versions

Comparing version 0.4.20130524 to 0.4.20130528

2

component.json
{
"name": "autoprefixer",
"version": "0.4.20130524",
"version": "0.4.20130528",
"description": "Parse CSS and add prefixed properties and values by actual Can I Use database",

@@ -5,0 +5,0 @@ "keywords": ["css", "prefix", "rework"],

@@ -5,2 +5,36 @@ // Don't edit this files, because it's autogenerated.

module.exports = {
android: {
prefix: "-webkit-",
versions: [
4.2,
4.1,
4,
3,
2.3,
2.2,
2.1
],
minor: true,
popularity: [
0.113747,
1.29078,
1.36002,
0.00494553,
1.90403,
0.182984,
0.0840739
]
},
bb: {
prefix: "-webkit-",
versions: [
10,
7
],
minor: true,
popularity: [
0,
0.102165
]
},
chrome: {

@@ -7,0 +41,0 @@ prefix: "-webkit-",

@@ -30,3 +30,4 @@ // Don't edit this files, because it's autogenerated.

"safari 6",
"ios 6"
"ios 6",
"bb 10"
]

@@ -101,3 +102,12 @@ },

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
],

@@ -182,3 +192,12 @@ replace: function (string, prefix, rules) {

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
]

@@ -242,3 +261,12 @@ },

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
],

@@ -341,3 +369,12 @@ replace: function (string, prefix) {

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
],

@@ -440,3 +477,12 @@ replace: function (string, prefix) {

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
],

@@ -539,3 +585,12 @@ replace: function (string, prefix) {

"ios 5.0",
"ios 5.1"
"ios 5.1",
"android 3",
"android 4",
"android 2.1",
"android 2.2",
"android 2.3",
"android 4.1",
"android 4.2",
"bb 7",
"bb 10"
],

@@ -542,0 +597,0 @@ replace: function (string, prefix) {

@@ -66,3 +66,5 @@ /*

for ( this.num = 0; this.num < this.rules.length; this.num += 1 ) {
callback(this.rules[this.num]);
if ( this.rules[this.num].property ) {
callback(this.rules[this.num]);
}
}

@@ -182,3 +184,3 @@ },

var clone = { name: rule.name };
var clone = { name: rule.name, type: rule.type };
clone.vendor = rule.vendor;

@@ -316,10 +318,10 @@ clone.keyframes = [];

rework.visit.declarations(style, function (rules) {
for ( var num = 0; num < rules.length; num += 1 ) {
var rule = rules[num];
rework.visit.declarations(style, function (list) {
var rules = new Rules(list);
rules.forEach(function (rule) {
// Properties
if ( remove.props[rule.property] ) {
rules.splice(num, 1);
continue;
rules.removeCurrent();
return;
}

@@ -338,7 +340,7 @@

if ( rule.value.match(value) ) {
rules.splice(num, 1);
rules.removeCurrent();
return false;
}
});
}
});
});

@@ -357,17 +359,23 @@ },

if ( match = req.match(/^last (\d+) versions?$/i) ) {
return autoprefixer.browsers(function(browser) {
return browser.versions.slice(0, match[1]);
});
if ( match = req.match(/^last (\d+) versions?$/i) ) {
return autoprefixer.browsers(function(browser) {
if ( browser.minor ) {
return [];
}
return browser.versions.slice(0, match[1]);
});
} else if ( match = req.match(/^> (\d+(\.\d+)?)%$/i) ) {
return autoprefixer.browsers(function(browser) {
return browser.versions.filter(function (version, i) {
return browser.popularity[i] > match[1];
});
});
} else if ( match = req.match(/^> (\d+(\.\d+)?)%$/i) ) {
return autoprefixer.browsers(function(browser) {
if ( browser.minor ) {
return [];
}
return browser.versions.filter(function (version, i) {
return browser.popularity[i] > match[1];
});
});
} else {
return [autoprefixer.check(req)];
}
} else {
return [autoprefixer.check(req)];
}

@@ -374,0 +382,0 @@ }).forEach(function (reqBrowsers) {

{
"name": "autoprefixer",
"version": "0.4.20130524",
"version": "0.4.20130528",
"description": "Parse CSS and add prefixed properties and values by actual Can I Use database",

@@ -21,3 +21,3 @@ "keywords": ["css", "prefix", "rework"],

"component": "0.16.0",
"js-beautify": "1.3.2"
"js-beautify": "1.3.3"
},

@@ -24,0 +24,0 @@ "bin": {

@@ -64,2 +64,9 @@ # Autoprefixer

Blackberry and stock Android browsers will not be used in `last n versions`
or `> n%` selects. Add them by name if you need them:
```js
autoprefixer.compile(css, ["last 1 version", "bb 10", "android 4"]);
```
## Usage

@@ -66,0 +73,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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