postcss 2.2.2 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of postcss might be problematic. Click here for more details.

package/lib/at-rule.js CHANGED
@@ -3,27 +3,27 @@ var Container = require('./container');
3
3
  // CSS at-rule like “this.keyframes name { }”.
4
4
  //
5
5
  // Can contain declarations (like this.font-face or this.page) ot another rules.
6
- 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);
6
+ var AtRule = (function(super$0){"use strict";var PRS$0 = (function(o,t){o["__proto__"]={"a":t};return o["a"]===t})({},{});var DP$0 = Object.defineProperty;var GOPD$0 = Object.getOwnPropertyDescriptor;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,GOPD$0(s,p));}}return t};var SP$0 = Object.setPrototypeOf||function(o,p){o["__proto__"]=p;return o};var OC$0 = Object.create;if(!PRS$0)MIXIN$0(AtRule, super$0);var proto$0={};
7
7
  function AtRule(defaults) {
8
8
  this.type = 'atrule';
9
9
  super$0.call(this, defaults);
10
- }AtRule.prototype = Object.create(super$0.prototype, {"constructor": {"value": AtRule, "configurable": true, "writable": true} });DP$0(AtRule, "prototype", {"configurable": false, "enumerable": false, "writable": false});
10
+ }if(super$0!==null)SP$0(AtRule,super$0);AtRule.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":AtRule,"configurable":true,"writable":true}});DP$0(AtRule,"prototype",{"configurable":false,"enumerable":false,"writable":false});
11
11
 
12
12
  // Different style for this.encoding and this.page at-rules.
13
- AtRule.prototype.styleType = function() {
13
+ proto$0.styleType = function() {
14
14
  return this.type + ((this.rules || this.decls) ? '-body' : '-bodiless');
15
- }
15
+ };
16
16
 
17
- AtRule.prototype.defaultStyle = function(type) {
17
+ proto$0.defaultStyle = function(type) {
18
18
  if ( type == 'atrule-body' ) {
19
19
  return { between: ' ', after: this.defaultAfter() };
20
20
  } else {
21
21
  return { between: '' };
22
22
  }
23
- }
23
+ };
24
24
 
25
25
  // Load into at-rule mixin for selected content type
26
- AtRule.prototype.addMixin = function(type) {
26
+ proto$0.addMixin = function(type) {
27
27
  var mixin = type == 'rules' ? Container.WithRules : Container.WithDecls;
28
28
  if ( !mixin ) return;
29
29
 
@@ -38,10 +38,10 @@ var AtRule = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = f
38
38
  this[name] = value;
39
39
  }
40
40
  mixin.apply(this);
41
- }
41
+ };
42
42
 
43
43
  // Stringify at-rule
44
- AtRule.prototype.stringify = function(builder, last) {
44
+ proto$0.stringify = function(builder, last) {
45
45
  var style = this.style();
46
46
 
47
47
  var name = '@' + this.name;
@@ -61,21 +61,21 @@ var AtRule = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$0 = f
61
61
  var semicolon = (!last || this.semicolon) ? ';' : '';
62
62
  builder(name + params + style.between + semicolon, this);
63
63
  }
64
- }
64
+ };
65
65
 
66
66
  // Hack to detect container type by child type
67
- AtRule.prototype.append = function(child) {
67
+ proto$0.append = function(child) {
68
68
  var mixin = child.type == 'decl' ? 'decls' : 'rules';
69
69
  this.addMixin(mixin);
70
70
  return this.append(child);
71
- }
71
+ };
72
72
 
73
73
  // Hack to detect container type by child type
74
- AtRule.prototype.prepend = function(child) {
74
+ proto$0.prepend = function(child) {
75
75
  var mixin = child.type == 'decl' ? 'decls' : 'rules';
76
76
  this.addMixin(mixin);
77
77
  return this.prepend(child);
78
- }
79
- ;return AtRule;})(Container);
78
+ };
79
+ MIXIN$0(AtRule.prototype,proto$0);proto$0=void 0;return AtRule;})(Container);
80
80
 
81
81
  module.exports = AtRule;
package/lib/comment.js CHANGED
@@ -1,23 +1,23 @@
1
1
  var Node = require('./node');
2
2
 
3
3
  // CSS comment between declarations or rules
4
- 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);
4
+ var Comment = (function(super$0){"use strict";var PRS$0 = (function(o,t){o["__proto__"]={"a":t};return o["a"]===t})({},{});var DP$0 = Object.defineProperty;var GOPD$0 = Object.getOwnPropertyDescriptor;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,GOPD$0(s,p));}}return t};var SP$0 = Object.setPrototypeOf||function(o,p){o["__proto__"]=p;return o};var OC$0 = Object.create;if(!PRS$0)MIXIN$0(Comment, super$0);var proto$0={};
5
5
  function Comment(defaults) {
6
6
  this.type = 'comment';
7
7
  super$0.call(this, defaults);
8
- }Comment.prototype = Object.create(super$0.prototype, {"constructor": {"value": Comment, "configurable": true, "writable": true} });DP$0(Comment, "prototype", {"configurable": false, "enumerable": false, "writable": false});
8
+ }if(super$0!==null)SP$0(Comment,super$0);Comment.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":Comment,"configurable":true,"writable":true}});DP$0(Comment,"prototype",{"configurable":false,"enumerable":false,"writable":false});
9
9
 
10
10
  // Default spaces for new node
11
- Comment.prototype.defaultStyle = function() {
11
+ proto$0.defaultStyle = function() {
12
12
  return { left: ' ', right: ' ' };
13
- }
13
+ };
14
14
 
15
15
  // Stringify declaration
16
- Comment.prototype.stringify = function(builder) {
16
+ proto$0.stringify = function(builder) {
17
17
  var style = this.style();
18
18
  if ( this.before ) builder(this.before);
19
19
  builder('/*' + style.left + this.text + style.right + '*/', this);
20
- }
21
- ;return Comment;})(Node);
20
+ };
21
+ MIXIN$0(Comment.prototype,proto$0);proto$0=void 0;return Comment;})(Node);
22
22
 
23
23
  module.exports = Comment;
package/lib/container.js CHANGED
@@ -1,10 +1,10 @@
1
- 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');
1
+ var PRS$0 = (function(o,t){o["__proto__"]={"a":t};return o["a"]===t})({},{});var DP$0 = Object.defineProperty;var GOPD$0 = Object.getOwnPropertyDescriptor;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,GOPD$0(s,p));}}return t};var SP$0 = Object.setPrototypeOf||function(o,p){o["__proto__"]=p;return o};var OC$0 = Object.create;var Node = require('./node');
2
2
  var Declaration = require('./declaration');
3
3
 
4
4
  // CSS node, that contain another nodes (like at-rules or rules with selectors)
5
- 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')};
5
+ var Container = (function(super$0){"use strict";function Container() {super$0.apply(this, arguments)}if(!PRS$0)MIXIN$0(Container, super$0);if(super$0!==null)SP$0(Container,super$0);Container.prototype = OC$0(super$0!==null?super$0.prototype:null,{"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')};
6
6
  // Stringify container childs
7
- Container.prototype.stringifyContent = function(builder) {
7
+ proto$0.stringifyContent = function(builder) {
8
8
  if ( !this.rules && !this.decls ) return;
9
9
 
10
10
  var i, last = this.list.length - 1;
@@ -18,10 +18,10 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
18
18
  this.decls[i].stringify(builder, last != i || this.semicolon);
19
19
  }
20
20
  }
21
- }
21
+ };
22
22
 
23
23
  // Generate default spaces before }
24
- Container.prototype.defaultAfter = function() {
24
+ proto$0.defaultAfter = function() {
25
25
  if ( this.list.length === 0 ) {
26
26
  return '';
27
27
  } else {
@@ -32,11 +32,11 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
32
32
  return "\n";
33
33
  }
34
34
  }
35
- }
35
+ };
36
36
 
37
37
  // Stringify node with start (for example, selector) and brackets block
38
38
  // with child inside
39
- Container.prototype.stringifyBlock = function(builder, start) {
39
+ proto$0.stringifyBlock = function(builder, start) {
40
40
  var style = this.style();
41
41
 
42
42
  if ( this.before ) builder(this.before);
@@ -46,15 +46,15 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
46
46
 
47
47
  if ( style.after ) builder(style.after);
48
48
  builder('}', this, 'end');
49
- }
49
+ };
50
50
 
51
51
  // Add child to end of list without any checks.
52
52
  // Please, use `append()` method, `push()` is mostly for parser.
53
- Container.prototype.push = function(child) {
53
+ proto$0.push = function(child) {
54
54
  child.parent = this;
55
55
  this.list.push(child);
56
56
  return this;
57
- }
57
+ };
58
58
 
59
59
  // Execute `callback` on every child element. First arguments will be child
60
60
  // node, second will be index.
@@ -70,7 +70,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
70
70
  // # On next iteration will be next rule, regardless of that
71
71
  // # list size was increased
72
72
  // });
73
- Container.prototype.each = function(callback) {
73
+ proto$0.each = function(callback) {
74
74
  if ( !this.lastEach ) this.lastEach = 0;
75
75
  if ( !this.indexes ) this.indexes = { };
76
76
 
@@ -94,7 +94,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
94
94
  delete this.indexes[id];
95
95
 
96
96
  if ( result === false ) return false;
97
- }
97
+ };
98
98
 
99
99
  // Execute callback on every child in all rules inside.
100
100
  //
@@ -105,7 +105,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
105
105
  // });
106
106
  //
107
107
  // Also as `each` it is safe of insert/remove nodes inside iterating.
108
- Container.prototype.eachInside = function(callback) {
108
+ proto$0.eachInside = function(callback) {
109
109
  return this.each( function(child, i) {
110
110
  var result = callback(child, i);
111
111
 
@@ -115,7 +115,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
115
115
 
116
116
  if ( result === false ) return result;
117
117
  });
118
- }
118
+ };
119
119
 
120
120
  // Execute callback on every declaration in all rules inside.
121
121
  // It will goes inside at-rules recursivelly.
@@ -128,9 +128,9 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
128
128
  // });
129
129
  //
130
130
  // Also as `each` it is safe of insert/remove nodes inside iterating.
131
- Container.prototype.eachDecl = function(callback) {
131
+ proto$0.eachDecl = function(callback) {
132
132
  // Different realization will be inside subclasses
133
- }
133
+ };
134
134
 
135
135
  // Execute callback on every block comment (only between rules
136
136
  // and declarations, not inside selectors and values) in all rules inside.
@@ -143,14 +143,14 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
143
143
  // });
144
144
  //
145
145
  // Also as `each` it is safe of insert/remove nodes inside iterating.
146
- Container.prototype.eachComment = function(callback) {
146
+ proto$0.eachComment = function(callback) {
147
147
  return this.eachInside( function(child, i) {
148
148
  if ( child.type == 'comment' ) {
149
149
  var result = callback(child, i);
150
150
  if ( result === false ) return result;
151
151
  }
152
152
  });
153
- }
153
+ };
154
154
 
155
155
  // Add child to container.
156
156
  //
@@ -159,13 +159,13 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
159
159
  // You can add declaration by hash:
160
160
  //
161
161
  // rule.append({ prop: 'color', value: 'black' });
162
- Container.prototype.append = function(child) {var $D$0;var $D$1;var $D$2;
162
+ proto$0.append = function(child) {var $D$0;var $D$1;var $D$2;
163
163
  var childs = this.normalize(child, this.list[this.list.length - 1]);
164
- $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"]);
164
+ $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"]);
165
165
  this.list.push(child);
166
166
  };$D$0 = $D$1 = $D$2 = void 0;
167
167
  return this;
168
- }
168
+ };
169
169
 
170
170
  // Add child to beginning of container
171
171
  //
@@ -174,9 +174,9 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
174
174
  // You can add declaration by hash:
175
175
  //
176
176
  // rule.prepend({ prop: 'color', value: 'black' });
177
- Container.prototype.prepend = function(child) {var $D$3;var $D$4;var $D$5;
177
+ proto$0.prepend = function(child) {var $D$3;var $D$4;var $D$5;
178
178
  var childs = this.normalize(child, this.list[0], 'prepend').reverse();
179
- $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"]);
179
+ $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"]);
180
180
  this.list.unshift(child);
181
181
  };$D$3 = $D$4 = $D$5 = void 0;
182
182
 
@@ -185,7 +185,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
185
185
  }
186
186
 
187
187
  return this;
188
- }
188
+ };
189
189
 
190
190
  // Insert new `added` child before `exist`.
191
191
  // You can set node object or node index (it will be faster) in `exist`.
@@ -195,12 +195,12 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
195
195
  // You can add declaration by hash:
196
196
  //
197
197
  // rule.insertBefore(1, { prop: 'color', value: 'black' });
198
- Container.prototype.insertBefore = function(exist, add) {var $D$6;var $D$7;var $D$8;
198
+ proto$0.insertBefore = function(exist, add) {var $D$6;var $D$7;var $D$8;
199
199
  exist = this.index(exist);
200
200
 
201
201
  var type = exist === 0 ? 'prepend' : false;
202
202
  var childs = this.normalize(add, this.list[exist], type).reverse();
203
- $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"]);
203
+ $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"]);
204
204
  this.list.splice(exist, 0, child);
205
205
  };$D$6 = $D$7 = $D$8 = void 0;
206
206
 
@@ -209,7 +209,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
209
209
  }
210
210
 
211
211
  return this;
212
- }
212
+ };
213
213
 
214
214
  // Insert new `added` child after `exist`.
215
215
  // You can set node object or node index (it will be faster) in `exist`.
@@ -219,11 +219,11 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
219
219
  // You can add declaration by hash:
220
220
  //
221
221
  // rule.insertAfter(1, { prop: 'color', value: 'black' });
222
- Container.prototype.insertAfter = function(exist, add) {var $D$9;var $D$10;var $D$11;
222
+ proto$0.insertAfter = function(exist, add) {var $D$9;var $D$10;var $D$11;
223
223
  exist = this.index(exist);
224
224
 
225
225
  var childs = this.normalize(add, this.list[exist]).reverse();
226
- $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"]);
226
+ $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"]);
227
227
  this.list.splice(exist + 1, 0, child);
228
228
  };$D$9 = $D$10 = $D$11 = void 0;
229
229
 
@@ -232,12 +232,12 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
232
232
  }
233
233
 
234
234
  return this;
235
- }
235
+ };
236
236
 
237
237
  // Remove `child` by index or node.
238
238
  //
239
239
  // css.remove(2);
240
- Container.prototype.remove = function(child) {
240
+ proto$0.remove = function(child) {
241
241
  child = this.index(child);
242
242
  this.list.splice(child, 1);
243
243
 
@@ -249,28 +249,28 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
249
249
  }
250
250
 
251
251
  return this;
252
- }
252
+ };
253
253
 
254
254
  // Return true if all childs return true in `condition`.
255
255
  // Just shorcut for `list.every`.
256
- Container.prototype.every = function(condition) {
256
+ proto$0.every = function(condition) {
257
257
  return this.list.every(condition);
258
- }
258
+ };
259
259
 
260
260
  // Return true if one or more childs return true in `condition`.
261
261
  // Just shorcut for `list.some`.
262
- Container.prototype.some = function(condition) {
262
+ proto$0.some = function(condition) {
263
263
  return this.list.some(condition);
264
- }
264
+ };
265
265
 
266
266
  // Return index of child
267
- Container.prototype.index = function(child) {
267
+ proto$0.index = function(child) {
268
268
  if ( typeof(child) == 'number' ) {
269
269
  return child;
270
270
  } else {
271
271
  return this.list.indexOf(child);
272
272
  }
273
- }
273
+ };
274
274
 
275
275
  // Shortcut to get first child
276
276
  function first$get$0() {
@@ -290,7 +290,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
290
290
  }
291
291
 
292
292
  // Normalize child before insert. Copy before from `sample`.
293
- Container.prototype.normalize = function(child, sample) {var $D$12;var $D$13;var $D$14;
293
+ proto$0.normalize = function(child, sample) {var $D$12;var $D$13;var $D$14;
294
294
  var childs;
295
295
  if ( child.type == 'root' ) {
296
296
  childs = child.rules;
@@ -303,7 +303,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
303
303
  childs = [child];
304
304
  }
305
305
 
306
- $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"]);
306
+ $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"]);
307
307
  child.parent = this;
308
308
  if ( typeof(child.before) == 'undefined' && sample ) {
309
309
  child.before = sample.before;
@@ -311,28 +311,28 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
311
311
  };$D$12 = $D$13 = $D$14 = void 0;
312
312
 
313
313
  return childs;
314
- }
315
- ;return Container;})(Node);
314
+ };
315
+ MIXIN$0(Container.prototype,proto$0);proto$0=void 0;return Container;})(Node);
316
316
 
317
317
  // Container with another rules, like this.media at-rule
318
- Container.WithRules = ((function(super$0){"use strict";MIXIN$0(constructor$0, super$0);
318
+ Container.WithRules = ((function(super$0){"use strict";if(!PRS$0)MIXIN$0(constructor$0, super$0);var proto$0={};
319
319
  function constructor$0(defaults) {
320
320
  this.rules = [];
321
321
  super$0.call(this, defaults);
322
- }constructor$0.prototype = Object.create(super$0.prototype, {"constructor": {"value": constructor$0, "configurable": true, "writable": true} });DP$0(constructor$0, "prototype", {"configurable": false, "enumerable": false, "writable": false});
322
+ }if(super$0!==null)SP$0(constructor$0,super$0);constructor$0.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":constructor$0,"configurable":true,"writable":true}});DP$0(constructor$0,"prototype",{"configurable":false,"enumerable":false,"writable":false});
323
323
 
324
324
  // Execute `callback` on every declaration in all rules inside.
325
325
  // It will goes inside at-rules recursivelly.
326
326
  //
327
327
  // See documentation in `Container#eachDecl`.
328
- constructor$0.prototype.eachDecl = function(callback) {
328
+ proto$0.eachDecl = function(callback) {
329
329
  return this.each( function(child) {
330
330
  if ( child.eachDecl ) {
331
331
  var result = child.eachDecl(callback);
332
332
  if ( result === false ) return result;
333
333
  }
334
334
  });
335
- }
335
+ };
336
336
 
337
337
  // Execute `callback` on every rule in conatiner and inside child at-rules.
338
338
  //
@@ -345,7 +345,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
345
345
  // console.log(rule.selector + ' at ' + i);
346
346
  // }
347
347
  // });
348
- constructor$0.prototype.eachRule = function(callback) {
348
+ proto$0.eachRule = function(callback) {
349
349
  return this.each( function(child, i) {
350
350
  var result;
351
351
  if ( child.type == 'rule' ) {
@@ -355,7 +355,7 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
355
355
  }
356
356
  if ( result === false ) return result;
357
357
  });
358
- }
358
+ };
359
359
 
360
360
  // Execute `callback` on every at-rule in conatiner and inside at-rules.
361
361
  //
@@ -368,42 +368,42 @@ var Container = (function(super$0){"use strict";function Container() {super$0.ap
368
368
  // console.log(atrule.name + ' at ' + i);
369
369
  // }
370
370
  // });
371
- constructor$0.prototype.eachAtRule = function(callback) {
371
+ proto$0.eachAtRule = function(callback) {
372
372
  return this.eachInside( function(child, i) {
373
373
  if ( child.type == 'atrule' ) {
374
374
  var result = callback(child, i);
375
375
  if ( result === false ) return result;
376
376
  }
377
377
  });
378
- }
379
- ;return constructor$0;})(Container));
378
+ };
379
+ MIXIN$0(constructor$0.prototype,proto$0);proto$0=void 0;return constructor$0;})(Container));
380
380
 
381
381
  // Container with another rules, like this.media at-rule
382
- Container.WithDecls = ((function(super$0){"use strict";MIXIN$0(constructor$1, super$0);
382
+ Container.WithDecls = ((function(super$0){"use strict";if(!PRS$0)MIXIN$0(constructor$1, super$0);var proto$0={};
383
383
  function constructor$1(defaults) {
384
384
  this.decls = [];
385
385
  super$0.call(this, defaults);
386
- }constructor$1.prototype = Object.create(super$0.prototype, {"constructor": {"value": constructor$1, "configurable": true, "writable": true} });DP$0(constructor$1, "prototype", {"configurable": false, "enumerable": false, "writable": false});
386
+ }if(super$0!==null)SP$0(constructor$1,super$0);constructor$1.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":constructor$1,"configurable":true,"writable":true}});DP$0(constructor$1,"prototype",{"configurable":false,"enumerable":false,"writable":false});
387
387
 
388
388
  // Allow to define new declaration as hash
389
- constructor$1.prototype.normalize = function(child, sample, type) {
389
+ proto$0.normalize = function(child, sample, type) {
390
390
  if ( !child.type && !Array.isArray(child) ) {
391
391
  child = new Declaration(child);
392
392
  }
393
393
  return super$0.prototype.normalize.call(this, child, sample, type);
394
- }
394
+ };
395
395
 
396
396
  // Execute callback on every declaration.
397
397
  //
398
398
  // See documentation in `Container#eachDecl`.
399
- constructor$1.prototype.eachDecl = function(callback) {
399
+ proto$0.eachDecl = function(callback) {
400
400
  return this.each( function(child, i) {
401
401
  if ( child.type == 'decl' ) {
402
402
  var result = callback(child, i);
403
403
  if ( result === false ) return result;
404
404
  }
405
405
  });
406
- }
407
- ;return constructor$1;})(Container));
406
+ };
407
+ MIXIN$0(constructor$1.prototype,proto$0);proto$0=void 0;return constructor$1;})(Container));
408
408
 
409
409
  module.exports = Container;
@@ -1,5 +1,5 @@
1
1
  // Error while CSS parsing
2
- 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);
2
+ var CssSyntaxError = (function(super$0){"use strict";var PRS$0 = (function(o,t){o["__proto__"]={"a":t};return o["a"]===t})({},{});var DP$0 = Object.defineProperty;var GOPD$0 = Object.getOwnPropertyDescriptor;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,GOPD$0(s,p));}}return t};var SP$0 = Object.setPrototypeOf||function(o,p){o["__proto__"]=p;return o};var OC$0 = Object.create;if(!PRS$0)MIXIN$0(CssSyntaxError, super$0);var proto$0={};
3
3
  function CssSyntaxError(text, source, pos, file) {
4
4
  this.file = file;
5
5
  this.line = pos.line;
@@ -9,9 +9,9 @@ var CssSyntaxError = (function(super$0){var DP$0 = Object.defineProperty;var MIX
9
9
 
10
10
  this.message = file ? file : '<css input>';
11
11
  this.message += ':' + pos.line + ':' + pos.column + ': ' + text;
12
- }CssSyntaxError.prototype = Object.create(super$0.prototype, {"constructor": {"value": CssSyntaxError, "configurable": true, "writable": true} });DP$0(CssSyntaxError, "prototype", {"configurable": false, "enumerable": false, "writable": false});
12
+ }if(super$0!==null)SP$0(CssSyntaxError,super$0);CssSyntaxError.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":CssSyntaxError,"configurable":true,"writable":true}});DP$0(CssSyntaxError,"prototype",{"configurable":false,"enumerable":false,"writable":false});
13
13
 
14
- CssSyntaxError.prototype.highlight = function(color) {
14
+ proto$0.highlight = function(color) {
15
15
  var num = this.line - 1;
16
16
  var lines = this.source.split('\n');
17
17
 
@@ -38,11 +38,11 @@ var CssSyntaxError = (function(super$0){var DP$0 = Object.defineProperty;var MIX
38
38
  }
39
39
 
40
40
  return prev + broken + mark + next;
41
- }
41
+ };
42
42
 
43
- CssSyntaxError.prototype.toString = function() {
43
+ proto$0.toString = function() {
44
44
  return this.message + "\n" + this.highlight();
45
- }
46
- ;return CssSyntaxError;})(Error);
45
+ };
46
+ MIXIN$0(CssSyntaxError.prototype,proto$0);proto$0=void 0;return CssSyntaxError;})(Error);
47
47
 
48
48
  module.exports = CssSyntaxError;
@@ -2,18 +2,18 @@ var Node = require('./node');
2
2
  var vendor = require('./vendor');
3
3
 
4
4
  // CSS declaration like “color: black” in rules
5
- 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);
5
+ var Declaration = (function(super$0){"use strict";var PRS$0 = (function(o,t){o["__proto__"]={"a":t};return o["a"]===t})({},{});var DP$0 = Object.defineProperty;var GOPD$0 = Object.getOwnPropertyDescriptor;var MIXIN$0 = function(t,s){for(var p in s){if(s.hasOwnProperty(p)){DP$0(t,p,GOPD$0(s,p));}}return t};var SP$0 = Object.setPrototypeOf||function(o,p){o["__proto__"]=p;return o};var OC$0 = Object.create;if(!PRS$0)MIXIN$0(Declaration, super$0);var proto$0={};
6
6
  function Declaration(defaults) {
7
7
  this.type = 'decl';
8
8
  super$0.call(this, defaults);
9
- }Declaration.prototype = Object.create(super$0.prototype, {"constructor": {"value": Declaration, "configurable": true, "writable": true} });DP$0(Declaration, "prototype", {"configurable": false, "enumerable": false, "writable": false});
9
+ }if(super$0!==null)SP$0(Declaration,super$0);Declaration.prototype = OC$0(super$0!==null?super$0.prototype:null,{"constructor":{"value":Declaration,"configurable":true,"writable":true}});DP$0(Declaration,"prototype",{"configurable":false,"enumerable":false,"writable":false});
10
10
 
11
- Declaration.prototype.defaultStyle = function() {
11
+ proto$0.defaultStyle = function() {
12
12
  return { before: "\n ", between: ': ' };
13
- }
13
+ };
14
14
 
15
15
  // Stringify declaration
16
- Declaration.prototype.stringify = function(builder, semicolon) {
16
+ proto$0.stringify = function(builder, semicolon) {
17
17
  var style = this.style();
18
18
 
19
19
  if ( style.before ) builder(style.before);
@@ -25,16 +25,16 @@ var Declaration = (function(super$0){var DP$0 = Object.defineProperty;var MIXIN$
25
25
 
26
26
  if ( semicolon ) string += ';';
27
27
  builder(string, this);
28
- }
28
+ };
29
29
 
30
30
  // Clean `before` and `between` property in clone to copy it from new
31
31
  // parent rule
32
- Declaration.prototype.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
32
+ proto$0.clone = function() {var overrides = arguments[0];if(overrides === void 0)overrides = { };
33
33
  var cloned = super$0.prototype.clone.call(this, overrides);
34
34
  delete cloned.before;
35
35
  delete cloned.between;
36
36
  return cloned;
37
- }
38
- ;return Declaration;})(Node);
37
+ };
38
+ MIXIN$0(Declaration.prototype,proto$0);proto$0=void 0;return Declaration;})(Node);
39
39
 
40
40
  module.exports = Declaration;
package/lib/list.js CHANGED
@@ -3,7 +3,7 @@ var list = {
3
3
 
4
4
  // Split string to array by separator symbols with function and inside strings
5
5
  // cheching
6
- 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;
6
+ 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;
7
7
  var array = [];
8
8
  var current = '';
9
9
  var split = false;
@@ -30,7 +30,7 @@ var list = {
30
30
  } else if ( letter == ')' ) {
31
31
  if ( func > 0 ) func -= 1;
32
32
  } else if ( func === 0 ) {
33
- $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"]);
33
+ $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"]);
34
34
  if ( letter == separator ) split = true;
35
35
  };$D$0 = $D$1 = $D$2 = void 0;
36
36
  }