postcss 4.1.15 → 4.1.16

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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.1.16
2
+ * Fix errors without stack trace.
3
+
1
4
  ## 4.1.15
2
5
  * Allow asynchronous plugins to change processor plugins list (by Ben Briggs).
3
6
 
package/lib/container.js CHANGED
@@ -360,7 +360,7 @@ var Container = (function (_Node) {
360
360
  nodes = [nodes];
361
361
  } else if (nodes.prop) {
362
362
  if (typeof nodes.value === 'undefined') {
363
- throw 'value field is missed in node creation';
363
+ throw new Error('Value field is missed in node creation');
364
364
  }
365
365
  nodes = [new _declaration2['default'](nodes)];
366
366
  } else if (nodes.selector) {
@@ -372,7 +372,7 @@ var Container = (function (_Node) {
372
372
  } else if (nodes.text) {
373
373
  nodes = [new _comment2['default'](nodes)];
374
374
  } else {
375
- throw 'Unknown node type in node creation';
375
+ throw new Error('Unknown node type in node creation');
376
376
  }
377
377
  }
378
378
 
@@ -161,7 +161,7 @@ var LazyResult = (function () {
161
161
  this.processed = true;
162
162
 
163
163
  if (this.processing) {
164
- throw 'Use process(css).then(cb) to work with async plugins';
164
+ throw new Error('Use process(css).then(cb) to work with async plugins');
165
165
  }
166
166
 
167
167
  if (this.error) throw this.error;
@@ -182,7 +182,7 @@ var LazyResult = (function () {
182
182
 
183
183
  var promise = this.run(plugin);
184
184
  if (isPromise(promise)) {
185
- throw 'Use process(css).then(cb) to work with async plugins';
185
+ throw new Error('Use process(css).then(cb) to work with async plugins');
186
186
  }
187
187
  }
188
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "4.1.15",
3
+ "version": "4.1.16",
4
4
  "description": "Tool for transforming CSS with JS plugins",
5
5
  "keywords": [
6
6
  "css",