Comparing version 0.11.6 to 0.11.7
0.11.7 / 2011-04-12 | ||
================== | ||
* Added `Renderer#use(fn)`. Closes #224 | ||
* Improved `utils.assertType()` error message; include param name | ||
0.11.6 / 2011-04-12 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -88,2 +88,18 @@ | ||
/** | ||
* Use the given `fn`. | ||
* | ||
* This allows for plugins to alter the renderer in | ||
* any way they wish, exposing paths etc. | ||
* | ||
* @param {Function} | ||
* @return {Renderer} for chaining | ||
* @api public | ||
*/ | ||
Renderer.prototype.use = function(fn){ | ||
fn.call(this, this); | ||
return this; | ||
}; | ||
/** | ||
* Define function with the given `name`. Optionally | ||
@@ -90,0 +106,0 @@ * the function may accept full expressions, by setting `raw` |
@@ -26,3 +26,3 @@ | ||
exports.version = '0.11.6'; | ||
exports.version = '0.11.7'; | ||
@@ -29,0 +29,0 @@ /** |
@@ -106,3 +106,6 @@ | ||
var actual = node.nodeName | ||
, msg = 'expected ' + type + ', but got ' + actual + ':' + node; | ||
, msg = 'expected "' | ||
+ param + '" to be a ' | ||
+ type + ', but got ' | ||
+ actual + ':' + node; | ||
throw new Error('TypeError: ' + msg); | ||
@@ -109,0 +112,0 @@ }; |
{ "name": "stylus" | ||
, "description": "Robust, expressive, and feature-rich CSS superset" | ||
, "version": "0.11.6" | ||
, "version": "0.11.7" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"] |
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
205110
7292