Socket
Socket
Sign inDemoInstall

postcss

Package Overview
Dependencies
3
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.3 to 2.2.4

3

ChangeLog.md

@@ -0,1 +1,4 @@

## 2.2.4
* Fix `prepend()` on empty `Root`.
## 2.2.3

@@ -2,0 +5,0 @@ * Allow to use object shortcut in `use()` with functions like `autoprefixer`.

28

lib/at-rule.js

@@ -6,3 +6,3 @@ var Container = require('./container');

// Can contain declarations (like this.font-face or this.page) ot another rules.
var AtRule = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(AtRule, super$0);
var AtRule = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(AtRule, super$0);var $proto$0={};
function AtRule(defaults) {

@@ -14,7 +14,7 @@ this.type = 'atrule';

// Different style for this.encoding and this.page at-rules.
AtRule.prototype.styleType = function() {
$proto$0.styleType = function() {
return this.type + ((this.rules || this.decls) ? '-body' : '-bodiless');
}
};
AtRule.prototype.defaultStyle = function(type) {
$proto$0.defaultStyle = function(type) {
if ( type == 'atrule-body' ) {

@@ -25,6 +25,6 @@ return { between: ' ', after: this.defaultAfter() };

}
}
};
// Load into at-rule mixin for selected content type
AtRule.prototype.addMixin = function(type) {
$proto$0.addMixin = function(type) {
var mixin = type == 'rules' ? Container.WithRules : Container.WithDecls;

@@ -44,6 +44,6 @@ if ( !mixin ) return;

mixin.apply(this);
}
};
// Stringify at-rule
AtRule.prototype.stringify = function(builder, last) {
$proto$0.stringify = function(builder, last) {
var style = this.style();

@@ -68,19 +68,19 @@

}
}
};
// Hack to detect container type by child type
AtRule.prototype.append = function(child) {
$proto$0.append = function(child) {
var mixin = child.type == 'decl' ? 'decls' : 'rules';
this.addMixin(mixin);
return this.append(child);
}
};
// Hack to detect container type by child type
AtRule.prototype.prepend = function(child) {
$proto$0.prepend = function(child) {
var mixin = child.type == 'decl' ? 'decls' : 'rules';
this.addMixin(mixin);
return this.prepend(child);
}
;return AtRule;})(Container);
};
MIXIN$0(AtRule.prototype,$proto$0);$proto$0=void 0;return AtRule;})(Container);
module.exports = AtRule;
var Node = require('./node');
// CSS comment between declarations or rules
var Comment = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(Comment, super$0);
var Comment = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(Comment, super$0);var $proto$0={};
function Comment(defaults) {

@@ -11,14 +11,14 @@ this.type = 'comment';

// Default spaces for new node
Comment.prototype.defaultStyle = function() {
$proto$0.defaultStyle = function() {
return { left: ' ', right: ' ' };
}
};
// Stringify declaration
Comment.prototype.stringify = function(builder) {
$proto$0.stringify = function(builder) {
var style = this.style();
if ( this.before ) builder(this.before);
builder('/*' + style.left + this.text + style.right + '*/', this);
}
;return Comment;})(Node);
};
MIXIN$0(Comment.prototype,$proto$0);$proto$0=void 0;return Comment;})(Node);
module.exports = Comment;

@@ -5,5 +5,5 @@ var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var Node = require('./node');

// CSS node, that contain another nodes (like at-rules or rules with selectors)
var Container = (function(super$0){"use strict";function Container() {super$0.apply(this, arguments)}MIXIN$0(Container, super$0);Container.prototype = Object.create(super$0.prototype, {"constructor": {"value": Container, "configurable": true, "writable": true}, first: {"get": first$get$0, "configurable": true, "enumerable": true}, last: {"get": last$get$0, "configurable": true, "enumerable": true}, list: {"get": list$get$0, "configurable": true, "enumerable": true} });DP$0(Container, "prototype", {"configurable": false, "enumerable": false, "writable": false});var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol.iterator||'@@iterator';function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function')return f.call(v);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};
var Container = (function(super$0){"use strict";function Container() {super$0.apply(this, arguments)}MIXIN$0(Container, super$0);Container.prototype = Object.create(super$0.prototype, {"constructor": {"value": Container, "configurable": true, "writable": true}, first: {"get": first$get$0, "configurable": true, "enumerable": true}, last: {"get": last$get$0, "configurable": true, "enumerable": true}, list: {"get": list$get$0, "configurable": true, "enumerable": true} });DP$0(Container, "prototype", {"configurable": false, "enumerable": false, "writable": false});var $proto$0={};var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function'){if(S_MARK$0)S_MARK$0(void 0);return f.call(v);}if(S_MARK$0)S_MARK$0(void 0);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};
// Stringify container childs
Container.prototype.stringifyContent = function(builder) {
$proto$0.stringifyContent = function(builder) {
if ( !this.rules && !this.decls ) return;

@@ -22,6 +22,6 @@

}
}
};
// Generate default spaces before }
Container.prototype.defaultAfter = function() {
$proto$0.defaultAfter = function() {
if ( this.list.length === 0 ) {

@@ -37,7 +37,7 @@ return '';

}
}
};
// Stringify node with start (for example, selector) and brackets block
// with child inside
Container.prototype.stringifyBlock = function(builder, start) {
$proto$0.stringifyBlock = function(builder, start) {
var style = this.style();

@@ -52,11 +52,11 @@

builder('}', this, 'end');
}
};
// Add child to end of list without any checks.
// Please, use `append()` method, `push()` is mostly for parser.
Container.prototype.push = function(child) {
$proto$0.push = function(child) {
child.parent = this;
this.list.push(child);
return this;
}
};

@@ -77,3 +77,3 @@ // Execute `callback` on every child element. First arguments will be child

// });
Container.prototype.each = function(callback) {
$proto$0.each = function(callback) {
if ( !this.lastEach ) this.lastEach = 0;

@@ -102,3 +102,3 @@ if ( !this.indexes ) this.indexes = { };

if ( result === false ) return false;
}
};

@@ -114,3 +114,3 @@ // Execute callback on every child in all rules inside.

// Also as `each` it is safe of insert/remove nodes inside iterating.
Container.prototype.eachInside = function(callback) {
$proto$0.eachInside = function(callback) {
return this.each( function(child, i) {

@@ -125,3 +125,3 @@ var result = callback(child, i);

});
}
};

@@ -139,5 +139,5 @@ // Execute callback on every declaration in all rules inside.

// Also as `each` it is safe of insert/remove nodes inside iterating.
Container.prototype.eachDecl = function(callback) {
$proto$0.eachDecl = function(callback) {
// Different realization will be inside subclasses
}
};

@@ -155,3 +155,3 @@ // Execute callback on every block comment (only between rules

// Also as `each` it is safe of insert/remove nodes inside iterating.
Container.prototype.eachComment = function(callback) {
$proto$0.eachComment = function(callback) {
return this.eachInside( function(child, i) {

@@ -163,3 +163,3 @@ if ( child.type == 'comment' ) {

});
}
};

@@ -173,9 +173,9 @@ // Add child to container.

// rule.append({ prop: 'color', value: 'black' });
Container.prototype.append = function(child) {var $D$0;var $D$1;var $D$2;
$proto$0.append = function(child) {var $D$0;var $D$1;var $D$2;
var childs = this.normalize(child, this.list[this.list.length - 1]);
$D$0 = GET_ITER$0(childs);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? childs.length : void 0);for ( child ; $D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"]; ){child = ($D$2 ? childs[$D$0++] : $D$1["value"]);
$D$0 = GET_ITER$0(childs);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? childs.length : void 0);for ( child ;$D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"];){child = ($D$2 ? childs[$D$0++] : $D$1["value"]);
this.list.push(child);
};$D$0 = $D$1 = $D$2 = void 0;
return this;
}
};

@@ -189,5 +189,5 @@ // Add child to beginning of container

// rule.prepend({ prop: 'color', value: 'black' });
Container.prototype.prepend = function(child) {var $D$3;var $D$4;var $D$5;
$proto$0.prepend = function(child) {var $D$3;var $D$4;var $D$5;
var childs = this.normalize(child, this.list[0], 'prepend').reverse();
$D$3 = GET_ITER$0(childs);$D$5 = $D$3 === 0;$D$4 = ($D$5 ? childs.length : void 0);for ( child ; $D$5 ? ($D$3 < $D$4) : !($D$4 = $D$3["next"]())["done"]; ){child = ($D$5 ? childs[$D$3++] : $D$4["value"]);
$D$3 = GET_ITER$0(childs);$D$5 = $D$3 === 0;$D$4 = ($D$5 ? childs.length : void 0);for ( child ;$D$5 ? ($D$3 < $D$4) : !($D$4 = $D$3["next"]())["done"];){child = ($D$5 ? childs[$D$3++] : $D$4["value"]);
this.list.unshift(child);

@@ -201,3 +201,3 @@ };$D$3 = $D$4 = $D$5 = void 0;

return this;
}
};

@@ -212,3 +212,3 @@ // Insert new `added` child before `exist`.

// rule.insertBefore(1, { prop: 'color', value: 'black' });
Container.prototype.insertBefore = function(exist, add) {var $D$6;var $D$7;var $D$8;
$proto$0.insertBefore = function(exist, add) {var $D$6;var $D$7;var $D$8;
exist = this.index(exist);

@@ -218,3 +218,3 @@

var childs = this.normalize(add, this.list[exist], type).reverse();
$D$6 = GET_ITER$0(childs);$D$8 = $D$6 === 0;$D$7 = ($D$8 ? childs.length : void 0);for ( var child ; $D$8 ? ($D$6 < $D$7) : !($D$7 = $D$6["next"]())["done"]; ){child = ($D$8 ? childs[$D$6++] : $D$7["value"]);
$D$6 = GET_ITER$0(childs);$D$8 = $D$6 === 0;$D$7 = ($D$8 ? childs.length : void 0);for ( var child ;$D$8 ? ($D$6 < $D$7) : !($D$7 = $D$6["next"]())["done"];){child = ($D$8 ? childs[$D$6++] : $D$7["value"]);
this.list.splice(exist, 0, child);

@@ -228,3 +228,3 @@ };$D$6 = $D$7 = $D$8 = void 0;

return this;
}
};

@@ -239,7 +239,7 @@ // Insert new `added` child after `exist`.

// rule.insertAfter(1, { prop: 'color', value: 'black' });
Container.prototype.insertAfter = function(exist, add) {var $D$9;var $D$10;var $D$11;
$proto$0.insertAfter = function(exist, add) {var $D$9;var $D$10;var $D$11;
exist = this.index(exist);
var childs = this.normalize(add, this.list[exist]).reverse();
$D$9 = GET_ITER$0(childs);$D$11 = $D$9 === 0;$D$10 = ($D$11 ? childs.length : void 0);for ( var child ; $D$11 ? ($D$9 < $D$10) : !($D$10 = $D$9["next"]())["done"]; ){child = ($D$11 ? childs[$D$9++] : $D$10["value"]);
$D$9 = GET_ITER$0(childs);$D$11 = $D$9 === 0;$D$10 = ($D$11 ? childs.length : void 0);for ( var child ;$D$11 ? ($D$9 < $D$10) : !($D$10 = $D$9["next"]())["done"];){child = ($D$11 ? childs[$D$9++] : $D$10["value"]);
this.list.splice(exist + 1, 0, child);

@@ -253,3 +253,3 @@ };$D$9 = $D$10 = $D$11 = void 0;

return this;
}
};

@@ -259,3 +259,3 @@ // Remove `child` by index or node.

// css.remove(2);
Container.prototype.remove = function(child) {
$proto$0.remove = function(child) {
child = this.index(child);

@@ -272,18 +272,18 @@ this.list.splice(child, 1);

return this;
}
};
// Return true if all childs return true in `condition`.
// Just shorcut for `list.every`.
Container.prototype.every = function(condition) {
$proto$0.every = function(condition) {
return this.list.every(condition);
}
};
// Return true if one or more childs return true in `condition`.
// Just shorcut for `list.some`.
Container.prototype.some = function(condition) {
$proto$0.some = function(condition) {
return this.list.some(condition);
}
};
// Return index of child
Container.prototype.index = function(child) {
$proto$0.index = function(child) {
if ( typeof(child) == 'number' ) {

@@ -294,3 +294,3 @@ return child;

}
}
};

@@ -315,3 +315,3 @@ // Shortcut to get first child

// Normalize child before insert. Copy before from `sample`.
Container.prototype.normalize = function(child, sample) {var $D$12;var $D$13;var $D$14;
$proto$0.normalize = function(child, sample) {var $D$12;var $D$13;var $D$14;
var childs;

@@ -329,3 +329,3 @@ if ( child.type == 'root' ) {

$D$12 = GET_ITER$0(childs);$D$14 = $D$12 === 0;$D$13 = ($D$14 ? childs.length : void 0);for ( child ; $D$14 ? ($D$12 < $D$13) : !($D$13 = $D$12["next"]())["done"]; ){child = ($D$14 ? childs[$D$12++] : $D$13["value"]);
$D$12 = GET_ITER$0(childs);$D$14 = $D$12 === 0;$D$13 = ($D$14 ? childs.length : void 0);for ( child ;$D$14 ? ($D$12 < $D$13) : !($D$13 = $D$12["next"]())["done"];){child = ($D$14 ? childs[$D$12++] : $D$13["value"]);
child.parent = this;

@@ -338,7 +338,7 @@ if ( typeof(child.before) == 'undefined' && sample ) {

return childs;
}
;return Container;})(Node);
};
MIXIN$0(Container.prototype,$proto$0);$proto$0=void 0;return Container;})(Node);
// Container with another rules, like this.media at-rule
Container.WithRules = ((function(super$0){"use strict";MIXIN$0(constructor$0, super$0);
Container.WithRules = ((function(super$0){"use strict";MIXIN$0(constructor$0, super$0);var $proto$0={};
function constructor$0(defaults) {

@@ -353,3 +353,3 @@ this.rules = [];

// See documentation in `Container#eachDecl`.
constructor$0.prototype.eachDecl = function(callback) {
$proto$0.eachDecl = function(callback) {
return this.each( function(child) {

@@ -361,3 +361,3 @@ if ( child.eachDecl ) {

});
}
};

@@ -375,3 +375,3 @@ // Execute `callback` on every rule in conatiner and inside child at-rules.

// });
constructor$0.prototype.eachRule = function(callback) {
$proto$0.eachRule = function(callback) {
return this.each( function(child, i) {

@@ -386,3 +386,3 @@ var result;

});
}
};

@@ -400,3 +400,3 @@ // Execute `callback` on every at-rule in conatiner and inside at-rules.

// });
constructor$0.prototype.eachAtRule = function(callback) {
$proto$0.eachAtRule = function(callback) {
return this.eachInside( function(child, i) {

@@ -408,7 +408,7 @@ if ( child.type == 'atrule' ) {

});
}
;return constructor$0;})(Container));
};
MIXIN$0(constructor$0.prototype,$proto$0);$proto$0=void 0;return constructor$0;})(Container));
// Container with another rules, like this.media at-rule
Container.WithDecls = ((function(super$0){"use strict";MIXIN$0(constructor$1, super$0);
Container.WithDecls = ((function(super$0){"use strict";MIXIN$0(constructor$1, super$0);var $proto$0={};
function constructor$1(defaults) {

@@ -420,3 +420,3 @@ this.decls = [];

// Allow to define new declaration as hash
constructor$1.prototype.normalize = function(child, sample, type) {
$proto$0.normalize = function(child, sample, type) {
if ( !child.type && !Array.isArray(child) ) {

@@ -426,3 +426,3 @@ child = new Declaration(child);

return super$0.prototype.normalize.call(this, child, sample, type);
}
};

@@ -432,3 +432,3 @@ // Execute callback on every declaration.

// See documentation in `Container#eachDecl`.
constructor$1.prototype.eachDecl = function(callback) {
$proto$0.eachDecl = function(callback) {
return this.each( function(child, i) {

@@ -440,5 +440,5 @@ if ( child.type == 'decl' ) {

});
}
;return constructor$1;})(Container));
};
MIXIN$0(constructor$1.prototype,$proto$0);$proto$0=void 0;return constructor$1;})(Container));
module.exports = Container;
// Error while CSS parsing
var CssSyntaxError = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(CssSyntaxError, super$0);
var CssSyntaxError = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(CssSyntaxError, super$0);var $proto$0={};
function CssSyntaxError(text, source, pos, file) {

@@ -14,3 +14,3 @@ this.file = file;

CssSyntaxError.prototype.highlight = function(color) {
$proto$0.highlight = function(color) {
var num = this.line - 1;

@@ -42,9 +42,9 @@ var lines = this.source.split('\n');

return prev + broken + mark + next;
}
};
CssSyntaxError.prototype.toString = function() {
$proto$0.toString = function() {
return this.message + "\n" + this.highlight();
}
;return CssSyntaxError;})(Error);
};
MIXIN$0(CssSyntaxError.prototype,$proto$0);$proto$0=void 0;return CssSyntaxError;})(Error);
module.exports = CssSyntaxError;

@@ -5,3 +5,3 @@ var Node = require('./node');

// CSS declaration like “color: black” in rules
var Declaration = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(Declaration, super$0);
var Declaration = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(Declaration, super$0);var $proto$0={};
function Declaration(defaults) {

@@ -12,8 +12,8 @@ this.type = 'decl';

Declaration.prototype.defaultStyle = function() {
$proto$0.defaultStyle = function() {
return { before: "\n ", between: ': ' };
}
};
// Stringify declaration
Declaration.prototype.stringify = function(builder, semicolon) {
$proto$0.stringify = function(builder, semicolon) {
var style = this.style();

@@ -30,7 +30,7 @@

builder(string, this);
}
};
// Clean `before` and `between` property in clone to copy it from new
// parent rule
Declaration.prototype.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
$proto$0.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
var cloned = super$0.prototype.clone.call(this, overrides);

@@ -40,5 +40,5 @@ delete cloned.before;

return cloned;
}
;return Declaration;})(Node);
};
MIXIN$0(Declaration.prototype,$proto$0);$proto$0=void 0;return Declaration;})(Node);
module.exports = Declaration;

@@ -6,3 +6,3 @@ // Methods to parse list and split it to array

// cheching
split: function (string, separators, last) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol.iterator||'@@iterator';function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function')return f.call(v);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;
split: function (string, separators, last) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function'){if(S_MARK$0)S_MARK$0(void 0);return f.call(v);}if(S_MARK$0)S_MARK$0(void 0);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;
var array = [];

@@ -34,3 +34,3 @@ var current = '';

} else if ( func === 0 ) {
$D$0 = GET_ITER$0(separators);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? separators.length : void 0);for ( var separator ; $D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"]; ){separator = ($D$2 ? separators[$D$0++] : $D$1["value"]);
$D$0 = GET_ITER$0(separators);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? separators.length : void 0);for ( var separator ;$D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"];){separator = ($D$2 ? separators[$D$0++] : $D$1["value"]);
if ( letter == separator ) split = true;

@@ -37,0 +37,0 @@ };$D$0 = $D$1 = $D$2 = void 0;

@@ -8,3 +8,3 @@ var Result = require('./result');

// All tools to generate source maps
var MapGenerator = (function(){var DP$0 = Object.defineProperty;"use strict";
var MapGenerator = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function MapGenerator(root, opts) {

@@ -17,3 +17,3 @@ this.root = root;

// Should map be generated
MapGenerator.prototype.isMap = function() {
$proto$0.isMap = function() {
if ( typeof(this.opts.map) != 'undefined' ) {

@@ -24,6 +24,6 @@ return !!this.opts.map;

}
}
};
// Return source map arrays from previous compilation step (like Sass)
MapGenerator.prototype.previous = function() {var this$0 = this;
$proto$0.previous = function() {var this$0 = this;
if ( !this.previousMaps ) {

@@ -41,6 +41,6 @@ this.previousMaps = [];

return this.previousMaps;
}
};
// Should we inline source map to annotation comment
MapGenerator.prototype.isInline = function() {
$proto$0.isInline = function() {
if ( typeof(this.mapOpts.inline) != 'undefined' ) {

@@ -50,6 +50,6 @@ return this.mapOpts.inline;

return this.previous().some( function(i ) {return i.inline} );
}
};
// Should we set sourcesContent
MapGenerator.prototype.isSourcesContent = function() {
$proto$0.isSourcesContent = function() {
if ( typeof(this.mapOpts.sourcesContent) != 'undefined' ) {

@@ -59,6 +59,6 @@ return this.mapOpts.sourcesContent;

return this.previous().some( function(i ) {return i.withContent()} );
}
};
// Clear source map annotation comment
MapGenerator.prototype.clearAnnotation = function() {
$proto$0.clearAnnotation = function() {
var last = this.root.last;

@@ -71,6 +71,6 @@ if ( !last ) return;

}
}
};
// Set origin CSS content
MapGenerator.prototype.setSourcesContent = function() {var this$0 = this;
$proto$0.setSourcesContent = function() {var this$0 = this;
var already = { };

@@ -85,7 +85,7 @@ this.root.eachInside( function(node) {

});
}
};
// Apply source map from previous compilation step (like Sass)
MapGenerator.prototype.applyPrevMaps = function() {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol.iterator||'@@iterator';function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function')return f.call(v);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;var $D$3;
$D$3 = (this.previous());$D$0 = GET_ITER$0($D$3);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? $D$3.length : void 0);for ( var prev ; $D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"]; ){prev = ($D$2 ? $D$3[$D$0++] : $D$1["value"]);
$proto$0.applyPrevMaps = function() {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function'){if(S_MARK$0)S_MARK$0(void 0);return f.call(v);}if(S_MARK$0)S_MARK$0(void 0);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;var $D$3;
$D$3 = (this.previous());$D$0 = GET_ITER$0($D$3);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? $D$3.length : void 0);for ( var prev ;$D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"];){prev = ($D$2 ? $D$3[$D$0++] : $D$1["value"]);
var from = this.relative(prev.file);

@@ -104,6 +104,6 @@ var root = prev.root || path.dirname(prev.file);

};$D$0 = $D$1 = $D$2 = $D$3 = void 0;
}
};
// Should we add annotation comment
MapGenerator.prototype.isAnnotation = function() {
$proto$0.isAnnotation = function() {
if ( this.isInline() ) {

@@ -118,6 +118,6 @@ return true ;

}
}
};
// Add source map annotation comment if it is needed
MapGenerator.prototype.addAnnotation = function() {
$proto$0.addAnnotation = function() {
var content;

@@ -137,11 +137,11 @@

this.css += "\n/*# sourceMappingURL=" + content + " */";
}
};
// Return output CSS file path
MapGenerator.prototype.outputFile = function() {
$proto$0.outputFile = function() {
return this.opts.to ? this.relative(this.opts.to) : 'to.css';
}
};
// Return Result object with map
MapGenerator.prototype.generateMap = function() {
$proto$0.generateMap = function() {
this.stringify();

@@ -157,6 +157,6 @@ if ( this.isSourcesContent() ) this.setSourcesContent();

}
}
};
// Return path relative from output CSS file
MapGenerator.prototype.relative = function(file) {
$proto$0.relative = function(file) {
var from = this.opts.to ? path.dirname(this.opts.to) : '.';

@@ -174,11 +174,11 @@

}
}
};
// Return path of node source for map
MapGenerator.prototype.sourcePath = function(node) {
$proto$0.sourcePath = function(node) {
return this.relative(node.source.file || node.source.id);
}
};
// Return CSS string and source map
MapGenerator.prototype.stringify = function() {var this$0 = this;
$proto$0.stringify = function() {var this$0 = this;
this.css = '';

@@ -233,6 +233,6 @@ this.map = new mozilla.SourceMapGenerator({ file: this.outputFile() });

this.root.stringify(builder);
}
};
// Return Result object with or without map
MapGenerator.prototype.generate = function() {
$proto$0.generate = function() {
this.clearAnnotation();

@@ -245,5 +245,5 @@

}
}
;return MapGenerator;})();
};
MIXIN$0(MapGenerator.prototype,$proto$0);$proto$0=void 0;return MapGenerator;})();
module.exports = MapGenerator;

@@ -41,3 +41,3 @@ // Recursivly clone objects

// Some common methods for all CSS nodes
var Node = (function(){var DP$0 = Object.defineProperty;"use strict";
var Node = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function Node() {var defaults = arguments[0];if(defaults === void 0)defaults = { };

@@ -56,3 +56,3 @@ for ( var name in defaults ) {

// rule.each( (decl, i) => rule.remove(i) );
Node.prototype.removeSelf = function() {
$proto$0.removeSelf = function() {
if ( this.parent ) {

@@ -62,3 +62,3 @@ this.parent.remove(this);

return this;
}
};

@@ -68,7 +68,7 @@ // Shortcut to insert nodes before and remove self.

// importNode.replace( loadedRoot );
Node.prototype.replace = function(nodes) {
$proto$0.replace = function(nodes) {
this.parent.insertBefore(this, nodes);
this.parent.remove(this);
return this;
}
};

@@ -78,3 +78,3 @@ // Return CSS string of current node

// decl.toString(); //=> " color: black"
Node.prototype.toString = function() {
$proto$0.toString = function() {
var result = '';

@@ -84,3 +84,3 @@ var builder = function(str) {return result += str};

return result;
}
};

@@ -94,3 +94,3 @@ // Clone current node

// rule.append( decl.clone({ value: '0' }) );
Node.prototype.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
$proto$0.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
var cloned = clone(this);

@@ -101,6 +101,6 @@ for ( var name in overrides ) {

return cloned;
}
};
// Remove `parent` node on cloning to fix circular structures
Node.prototype.toJSON = function() {
$proto$0.toJSON = function() {
var fixed = { };

@@ -125,17 +125,17 @@

return fixed;
}
};
// Default code style
Node.prototype.defaultStyle = function() {
$proto$0.defaultStyle = function() {
return { };
}
};
// Allow to split node with same type by other critera.
// For example, to use different style for bodiless at-rules.
Node.prototype.styleType = function() {
$proto$0.styleType = function() {
return this.type;
}
};
// Copy code style from first node with same type
Node.prototype.style = function() {var this$0 = this;
$proto$0.style = function() {var this$0 = this;
var type = this.styleType();

@@ -183,6 +183,6 @@ var defaults = this.defaultStyle(type);

return merge;
}
};
// Use raw value if origin was not changed
Node.prototype.stringifyRaw = function(prop) {
$proto$0.stringifyRaw = function(prop) {
var value = this[prop];

@@ -195,5 +195,5 @@ var raw = this['_' + prop];

}
}
;return Node;})();
};
MIXIN$0(Node.prototype,$proto$0);$proto$0=void 0;return Node;})();
module.exports = Node;

@@ -16,3 +16,3 @@ var CssSyntaxError = require('./css-syntax-error');

// CSS parser
var Parser = (function(){var DP$0 = Object.defineProperty;"use strict";
var Parser = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function Parser(source) {var opts = arguments[1];if(opts === void 0)opts = { };

@@ -37,3 +37,3 @@ this.source = source.toString();

Parser.prototype.loop = function() {
$proto$0.loop = function() {
this.next = this.source[0];

@@ -46,5 +46,5 @@ var length = this.source.length - 1;

this.endFile();
}
};
Parser.prototype.setMap = function() {
$proto$0.setMap = function() {
var map = new PreviousMap(this.root, this.opts, this.id);

@@ -55,5 +55,5 @@ if ( map.text ) {

}
}
};
Parser.prototype.nextLetter = function() {
$proto$0.nextLetter = function() {
return this.inString() ||

@@ -70,7 +70,7 @@ this.inComment() ||

this.inProperty() || this.isProperty() || this.inValue();
}
};
// Parsers
Parser.prototype.inString = function(close) {
$proto$0.inString = function(close) {
if ( this.quote ) {

@@ -88,5 +88,5 @@ if ( this.escape && !close ) {

}
}
};
Parser.prototype.isString = function() {
$proto$0.isString = function() {
if ( this.letter == '"' || this.letter == "'" ) {

@@ -99,5 +99,5 @@ this.quote = this.letter;

}
}
};
Parser.prototype.inComment = function(close) {var $D$0;
$proto$0.inComment = function(close) {var $D$0;
if ( this.inside('comment') ) {

@@ -123,5 +123,5 @@ if ( close || ( this.letter == '*' && this.next == '/' ) ) {

}
}
};
Parser.prototype.isComment = function() {
$proto$0.isComment = function() {
if ( this.letter == '/' && this.next == '*' ) {

@@ -140,5 +140,5 @@ if ( this.inside('rules') || this.inside('decls') ) {

}
}
};
Parser.prototype.isWrong = function() {
$proto$0.isWrong = function() {
if ( this.letter == '{' ) {

@@ -163,5 +163,5 @@ if ( this.inside('decls') || this.inside('value') ) {

}
}
};
Parser.prototype.isAtrule = function() {
$proto$0.isAtrule = function() {
if ( this.letter == '@' && this.inside('rules') ) {

@@ -174,5 +174,5 @@ this.init( new AtRule() );

}
}
};
Parser.prototype.inAtrule = function(close) {var $D$1;
$proto$0.inAtrule = function(close) {var $D$1;
if ( this.inside('atrule-name') ) {

@@ -215,5 +215,5 @@ if ( this.space() ) {

}
}
};
Parser.prototype.inSelector = function() {var $D$2;
$proto$0.inSelector = function() {var $D$2;
if ( this.inside('selector') ) {

@@ -234,5 +234,5 @@ if ( this.letter == '{' ) {

}
}
};
Parser.prototype.isSelector = function() {
$proto$0.isSelector = function() {
if ( !this.space() && this.inside('rules') ) {

@@ -255,5 +255,5 @@ this.init( new Rule() );

}
}
};
Parser.prototype.isBlockEnd = function(close) {var this$0 = this;
$proto$0.isBlockEnd = function(close) {var this$0 = this;
if ( this.letter == '}' || close ) {

@@ -278,5 +278,5 @@ if ( this.parents.length == 1 ) {

}
}
};
Parser.prototype.inProperty = function(close) {
$proto$0.inProperty = function(close) {
if ( this.inside('prop') ) {

@@ -310,5 +310,5 @@ if ( this.letter == ':' || close ) {

}
}
};
Parser.prototype.isProperty = function() {
$proto$0.isProperty = function() {
if ( this.inside('decls') && !this.space() && this.letter != ';' ) {

@@ -324,5 +324,5 @@ this.init( new Declaration() );

}
}
};
Parser.prototype.inValue = function(close) {var $D$3;
$proto$0.inValue = function(close) {var $D$3;
if ( this.inside('value') ) {

@@ -361,5 +361,5 @@ if ( this.letter == '(' ) {

}
}
};
Parser.prototype.endFile = function() {var this$0 = this;
$proto$0.endFile = function() {var this$0 = this;
if ( this.inside('atrule-param') || this.inside('atrule-name') ) {

@@ -400,11 +400,11 @@ this.fixEnd( function() {return this$0.inAtrule('close')} );

}
}
};
// Helpers
Parser.prototype.error = function(message) {var pos = arguments[1];if(pos === void 0)pos = { line: this.line, column: this.column };
$proto$0.error = function(message) {var pos = arguments[1];if(pos === void 0)pos = { line: this.line, column: this.column };
throw new CssSyntaxError(message, this.source, pos, this.opts.from);
}
};
Parser.prototype.move = function() {
$proto$0.move = function() {
this.pos += 1;

@@ -421,17 +421,17 @@ this.column += 1;

}
}
};
Parser.prototype.prevBuffer = function() {
$proto$0.prevBuffer = function() {
return this.buffer.slice(0, -1);
}
};
Parser.prototype.inside = function(type) {
$proto$0.inside = function(type) {
return this.type == type;
}
};
Parser.prototype.space = function() {
$proto$0.space = function() {
return this.letter.trim() === '';
}
};
Parser.prototype.init = function(node) {
$proto$0.init = function(node) {
this.current.push(node);

@@ -455,5 +455,5 @@ this.parents.push(node);

this.buffer = '';
}
};
Parser.prototype.raw = function(prop, value, origin) {
$proto$0.raw = function(prop, value, origin) {
this.current[prop] = value;

@@ -463,5 +463,5 @@ if ( value != origin ) {

}
}
};
Parser.prototype.fixEnd = function(callback) {
$proto$0.fixEnd = function(callback) {
var start, after;

@@ -493,5 +493,5 @@ if ( this.letter == '}' ) {

this.buffer = after;
}
};
Parser.prototype.pop = function() {
$proto$0.pop = function() {
this.current.source.end = {

@@ -506,20 +506,20 @@ line: this.line,

this.buffer = '';
}
};
Parser.prototype.addType = function(type) {
$proto$0.addType = function(type) {
this.types.push(type);
this.type = type;
}
};
Parser.prototype.setType = function(type) {
$proto$0.setType = function(type) {
this.types[this.types.length - 1] = type;
this.type = type;
}
};
Parser.prototype.popType = function() {
$proto$0.popType = function() {
this.types.pop();
this.type = this.types[this.types.length - 1];
}
};
Parser.prototype.atruleType = function() {
$proto$0.atruleType = function() {
var name = this.current.name.toLowerCase();

@@ -533,5 +533,5 @@ if ( name == 'page' || name == 'font-face' ) {

}
}
};
Parser.prototype.endAtruleParams = function() {
$proto$0.endAtruleParams = function() {
if ( this.letter == '{' ) {

@@ -546,9 +546,9 @@ var type = this.atruleType();

}
}
};
Parser.prototype.checkAtruleName = function() {
$proto$0.checkAtruleName = function() {
if ( this.current.name === '' ) this.error('At-rule without name');
}
};
Parser.prototype.startSpaces = function(string) {
$proto$0.startSpaces = function(string) {
var match = string.match(/^\s+/);

@@ -561,5 +561,5 @@ if ( match ) {

}
}
};
Parser.prototype.endSpaces = function(string) {
$proto$0.endSpaces = function(string) {
var match = string.match(/\s+$/);

@@ -572,5 +572,5 @@ if ( match ) {

}
}
};
Parser.prototype.closeBlocks = function() {
$proto$0.closeBlocks = function() {
for ( var i = 0; i < this.parents.length; i++ ) {

@@ -580,4 +580,4 @@ this.buffer += '{';

}
}
;return Parser;})();
};
MIXIN$0(Parser.prototype,$proto$0);$proto$0=void 0;return Parser;})();

@@ -584,0 +584,0 @@ module.exports = function (source) {var opts = arguments[1];if(opts === void 0)opts = { };

@@ -9,3 +9,3 @@ var Declaration = require('./declaration');

// List of functions to process CSS
var PostCSS = (function(){var DP$0 = Object.defineProperty;"use strict";
var PostCSS = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function PostCSS() {var processors = arguments[0];if(processors === void 0)processors = [];var this$0 = this;

@@ -16,10 +16,10 @@ this.processors = processors.map( function(i) {return this$0.normalize(i)} );

// Add another function to CSS processors
PostCSS.prototype.use = function(processor) {
$proto$0.use = function(processor) {
processor = this.normalize(processor);
this.processors.push(processor);
return this;
}
};
// Process CSS throw installed processors
PostCSS.prototype.process = function(css) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol.iterator||'@@iterator';function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function')return f.call(v);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;var $D$3;var opts = arguments[1];if(opts === void 0)opts = { };
$proto$0.process = function(css) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function'){if(S_MARK$0)S_MARK$0(void 0);return f.call(v);}if(S_MARK$0)S_MARK$0(void 0);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;var $D$3;var opts = arguments[1];if(opts === void 0)opts = { };
if ( opts.map == 'inline' ) opts.map = { inline: true };

@@ -36,3 +36,3 @@

$D$3 = (this.processors);$D$0 = GET_ITER$0($D$3);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? $D$3.length : void 0);for ( var processor ; $D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"]; ){processor = ($D$2 ? $D$3[$D$0++] : $D$1["value"]);
$D$3 = (this.processors);$D$0 = GET_ITER$0($D$3);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? $D$3.length : void 0);for ( var processor ;$D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"];){processor = ($D$2 ? $D$3[$D$0++] : $D$1["value"]);
var returned = processor(parsed, opts);

@@ -43,6 +43,6 @@ if ( returned instanceof Root ) parsed = returned;

return parsed.toResult(opts);
}
};
// Return processor function
PostCSS.prototype.normalize = function(processor) {
$proto$0.normalize = function(processor) {
var type = typeof(processor);

@@ -54,4 +54,4 @@ if ( (type == 'object' || type == 'function') && processor.postcss ) {

}
}
;return PostCSS;})();
};
MIXIN$0(PostCSS.prototype,$proto$0);$proto$0=void 0;return PostCSS;})();

@@ -58,0 +58,0 @@ // Framework for CSS postprocessors

@@ -7,3 +7,3 @@ var mozilla = require('source-map');

// Detect previous map
var PreviousMap = (function(){var DP$0 = Object.defineProperty;"use strict";
var PreviousMap = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function PreviousMap(root, opts, id) {

@@ -21,3 +21,3 @@ this.file = opts.from || id;

// Return SourceMapConsumer object to read map
PreviousMap.prototype.consumer = function() {
$proto$0.consumer = function() {
if ( !this.consumerCache ) {

@@ -27,18 +27,18 @@ this.consumerCache = new mozilla.SourceMapConsumer(this.text);

return this.consumerCache;
}
};
// Is map has sources content
PreviousMap.prototype.withContent = function() {
$proto$0.withContent = function() {
return !!(this.consumer().sourcesContent &&
this.consumer().sourcesContent.length > 0);
}
};
// Is `string` is starting with `start`
PreviousMap.prototype.startWith = function(string, start) {
$proto$0.startWith = function(string, start) {
if ( !string ) return false;
return string.substr(0, start.length) == start;
}
};
// Load for annotation comment from previous compilation step
PreviousMap.prototype.loadAnnotation = function(root) {
$proto$0.loadAnnotation = function(root) {
var last = root.last;

@@ -51,6 +51,6 @@ if ( !last ) return;

}
}
};
// Encode different type of inline
PreviousMap.prototype.decodeInline = function(text) {
$proto$0.decodeInline = function(text) {
var uri = '# sourceMappingURL=data:application/json,';

@@ -69,6 +69,6 @@ var base64 = '# sourceMappingURL=data:application/json;base64,';

}
}
};
// Load previous map
PreviousMap.prototype.loadMap = function(prev) {
$proto$0.loadMap = function(prev) {
if ( prev === false ) return;

@@ -103,5 +103,5 @@

}
}
;return PreviousMap;})();
};
MIXIN$0(PreviousMap.prototype,$proto$0);$proto$0=void 0;return PreviousMap;})();
module.exports = PreviousMap;
var MapGenerator = require('./map-generator');
// Object with processed CSS
var Result = (function(){var DP$0 = Object.defineProperty;"use strict";
var Result = (function(){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};var $proto$0={};
function Result(root) {var opts = arguments[1];if(opts === void 0)opts = { };

@@ -23,8 +23,8 @@ this.root = root;

// Return CSS string on any try to print
Result.prototype.toString = function() {
$proto$0.toString = function() {
return this.css;
}
};
// Generate CSS and map
Result.prototype.stringify = function() {
$proto$0.stringify = function() {
var map = new MapGenerator(this.root, this.opts);

@@ -34,5 +34,5 @@ var generated = map.generate();

this.mapCached = generated[1];
}
;return Result;})();
};
MIXIN$0(Result.prototype,$proto$0);$proto$0=void 0;return Result;})();
module.exports = Result;

@@ -9,3 +9,3 @@ var Declaration = require('./declaration');

// Root of CSS
var Root = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(Root, super$0);
var Root = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(Root, super$0);var $proto$0={};
function Root(defaults) {

@@ -18,10 +18,10 @@ this.type = 'root';

// Fix spaces on insert before first rule
Root.prototype.normalize = function(child, sample, type) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol.iterator||'@@iterator';function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function')return f.call(v);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;
$proto$0.normalize = function(child, sample, type) {var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='function'){if(S_MARK$0)S_MARK$0(void 0);return f.call(v);}if(S_MARK$0)S_MARK$0(void 0);if((v+'')==='[object Generator]')return v;}throw new Error(v+' is not iterable')};var $D$0;var $D$1;var $D$2;
var childs = super$0.prototype.normalize.call(this, child, sample, type);
$D$0 = GET_ITER$0(childs);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? childs.length : void 0);for ( child ; $D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"]; ){child = ($D$2 ? childs[$D$0++] : $D$1["value"]);
$D$0 = GET_ITER$0(childs);$D$2 = $D$0 === 0;$D$1 = ($D$2 ? childs.length : void 0);for ( child ;$D$2 ? ($D$0 < $D$1) : !($D$1 = $D$0["next"]())["done"];){child = ($D$2 ? childs[$D$0++] : $D$1["value"]);
if ( type == 'prepend' ) {
if ( this.rules.length > 1 ) {
sample.before = this.rules[1].before;
} else {
} else if ( this.rules.length == 1 ) {
sample.before = this.after;

@@ -39,16 +39,16 @@ }

return childs;
}
};
// Stringify styles
Root.prototype.stringify = function(builder) {
$proto$0.stringify = function(builder) {
this.stringifyContent(builder);
if ( this.after) builder(this.after);
}
};
// Generate processing result with optional source map
Root.prototype.toResult = function() {var opts = arguments[0];if(opts === void 0)opts = { };
$proto$0.toResult = function() {var opts = arguments[0];if(opts === void 0)opts = { };
return new Result(this, opts);
}
;return Root;})(Container.WithRules);
};
MIXIN$0(Root.prototype,$proto$0);$proto$0=void 0;return Root;})(Container.WithRules);
module.exports = Root;

@@ -6,3 +6,3 @@ var Container = require('./container');

// CSS rule like “a { }”
var Rule = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};"use strict";MIXIN$0(Rule, super$0);
var Rule = (function(super$0){"use strict";var DP$0 = Object.defineProperty;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,Object.getOwnPropertyDescriptor(s,p));}}return t};MIXIN$0(Rule, super$0);var $proto$0={};
function Rule(defaults) {

@@ -14,7 +14,7 @@ this.type = 'rule';

// Different style for empty and non-empty rules
Rule.prototype.styleType = function() {
$proto$0.styleType = function() {
return this.type + (this.decls.length ? '-body' : '-empty');
}
};
Rule.prototype.defaultStyle = function(type) {
$proto$0.defaultStyle = function(type) {
if ( type == 'rule-body' ) {

@@ -25,3 +25,3 @@ return { between: ' ', after: this.defaultAfter() };

}
}
};

@@ -39,8 +39,8 @@ // Shortcut to get selectors as array

// Stringify rule
Rule.prototype.stringify = function(builder) {
$proto$0.stringify = function(builder) {
this.stringifyBlock(builder,
this.stringifyRaw('selector') + this.style().between + '{');
}
;return Rule;})(Container.WithDecls);
};
MIXIN$0(Rule.prototype,$proto$0);$proto$0=void 0;return Rule;})(Container.WithDecls);
module.exports = Rule;
{
"name": "postcss",
"version": "2.2.3",
"version": "2.2.4",
"description": "Framework for CSS postprocessors with full source map support",

@@ -23,7 +23,7 @@ "keywords": ["css", "parser", "postproccessor", "source map"],

"gulp-mocha": "1.0.0",
"gulp-util": "3.0.0",
"gulp-util": "3.0.1",
"fs-extra": "0.11.0",
"gonzales": "1.0.7",
"request": "2.40.0",
"rework": "1.0.0",
"rework": "1.0.1",
"should": "4.0.4",

@@ -33,3 +33,3 @@ "mocha": "1.21.4",

"gulp": "3.8.7",
"es6-transpiler": "~0.7.14-2"
"es6-transpiler": "~0.7.15"
},

@@ -36,0 +36,0 @@ "scripts": {

@@ -36,3 +36,3 @@ # PostCSS [![Build Status](https://travis-ci.org/postcss/postcss.png)](https://travis-ci.org/postcss/postcss)

* [data-separator] splits data-uri into a separate CSS file.
* [grunt-pixrem], `rem` unit polyfill.
* [pixrem]/[grunt-pixrem] is a `rem` unit polyfill.
* [grunt-webpcss] to duplicate images in CSS to WebP for supported browsers.

@@ -50,2 +50,3 @@ * [Pleeease] is a pack of various postprocessors.

[grunt-csswring]: https://github.com/princed/grunt-csswring
[pixrem]: https://github.com/robwierzbowski/node-pixrem
[grunt-pixrem]: https://github.com/robwierzbowski/grunt-pixrem

@@ -254,5 +255,5 @@ [grunt-webpcss]: https://github.com/lexich/grunt-webpcss

var processors = [
require('autoprefixer')('last 1 version').postcss,
require('css-mqpacker').processor,
require('csswring').postcss
require('autoprefixer')('last 1 version'),
require('css-mqpacker'),
require('csswring')
];

@@ -259,0 +260,0 @@ return gulp.src('./src/style.css')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc