postcss-message-helpers
Advanced tools
Comparing version 1.1.1 to 2.0.0
@@ -0,12 +1,17 @@ | ||
# 2.0.0 - 2014-01-26 | ||
- Added: compatibility with postcss v4.x | ||
- Removed: compability with postcss v3.x | ||
# 1.1.1 - 2014-11-24 | ||
- Fix issue with multilines error message in stack trace | ||
- Add `originalMessage` property in the exception | ||
- Fixed: issue with multilines error message in stack trace | ||
- Added: `originalMessage` property in the exception | ||
# 1.1.0 - 2014-11-24 | ||
- `try` now returns the result of the callback | ||
- Added: `try` now returns the result of the callback | ||
# 1.0.0 - 2014-11-24 | ||
First release | ||
✨ First release |
10
index.js
@@ -23,4 +23,4 @@ /** | ||
if (source) { | ||
if (source.file) { | ||
message = source.file | ||
if (source.input && source.input.file) { | ||
message = source.input.file | ||
} | ||
@@ -63,3 +63,3 @@ if (source.start) { | ||
// add a stack item if something interesting available | ||
if (source.file || source.start) { | ||
if ((source.input && source.input.file) || source.start) { | ||
var stack = err.stack.split(SPLITTER) | ||
@@ -72,4 +72,4 @@ var firstStackItem = stack.shift() | ||
if (source.file) { | ||
err.fileName = source.file | ||
if (source.input && source.input.file) { | ||
err.fileName = source.input.file | ||
} | ||
@@ -76,0 +76,0 @@ if (source.start) { |
{ | ||
"name": "postcss-message-helpers", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"description": "PostCSS helpers to throw or output GNU style messages", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"jshint": "^2.5.6", | ||
"postcss": "^3.0.0", | ||
"postcss": "^4.0.2", | ||
"tape": "^3.0.0" | ||
@@ -30,0 +30,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6241