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 +3 -0
- package/lib/container.js +2 -2
- package/lib/lazy-result.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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 '
|
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
|
|
package/lib/lazy-result.js
CHANGED
@@ -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
|
|