commit 9dfe47d560ad9c75bd88cf6f1db8a4f7d6fc92b4
Author: Tom Hughes <tom@compton.nu>
Date: Tue Oct 6 09:22:02 2015 +0100
Update underscore dependency to 1.8.3
This requires a fix to the code due to a change in the
semantics of _.template in the 1.7.0 release.
diff --git a/lib/carto/parser.js b/lib/carto/parser.js
index 2327576..23ff9d8 100644
--- a/lib/carto/parser.js
+++ b/lib/carto/parser.js
@@ -128,7 +128,7 @@ carto.Parser = function Parser(env) {
for (var n = err.index; n >= 0 && einput.charAt(n) !== '\n'; n--) {
err.column++;
}
- return new Error(_('<%=filename%>:<%=line%>:<%=column%> <%=message%>').template(err));
+ return new Error(_.template('<%=filename%>:<%=line%>:<%=column%> <%=message%>')(err));
}
this.env = env = env || {};
diff --git a/package.json b/package.json
index 7418651..791e63b 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
"node": ">=0.4.x"
},
"dependencies": {
- "underscore": "~1.6.0",
+ "underscore": "~1.8.3",
"mapnik-reference": "~8.5.0",
"optimist": "~0.6.0"
},