From 7e693cc2142cffa05889005f607ec995c7e287a2 Mon Sep 17 00:00:00 2001 From: Ravi Sankar Date: Sat, 1 Nov 2014 14:55:18 -0700 Subject: [PATCH] A bug meant that attempting to use BB.js without including EJS failed, even though EJS is intended to be an optional component (required only if you wish to do generation) --- bower.json | 2 +- lib/generators.js | 2 +- package.json | 15 +++++++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index c74cc41..099548f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "bluebutton", - "version": "0.2.0", + "version": "0.2.1", "description": "BlueButton.js allows web developers to parse and navigate complex health data with ease.", "main": [ "build/bluebutton.js" diff --git a/lib/generators.js b/lib/generators.js index 0f6cc1b..da9b9b7 100644 --- a/lib/generators.js +++ b/lib/generators.js @@ -15,7 +15,7 @@ var Generators = (function () { } } - if (typeof ejs !== undefined) { + if (typeof ejs !== 'undefined') { /* Filters are automatically available to ejs to be used like "... | hl7Date" * Helpers are functions that we'll manually pass in to ejs. * The intended distinction is that a helper gets called with regular function-call syntax diff --git a/package.json b/package.json index 82f0463..ea4aa53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluebutton", - "version": "0.2.0", + "version": "0.2.1", "description": "BlueButton.js helps developers navigate complex health data with ease.", "keywords": [ "bb", @@ -23,14 +23,17 @@ "url": "http://blacktm.com" }, "contributors": [ - { - "name": "Rob Dodson", - "email": "lets.email.rob@gmail.com", - "url": "http://robdodson.me" - }, { "name": "Ravi Sankar", "email": "sankarravi+bbjs@gmail.com" + }, + { + "name": "Tyler Hayes", + "email": "tyler@thetylerhayes.com" + }, + { + "name": "Dmitry Kachaev", + "url": "http://twitter.com/kachok" } ], "main": "build/bluebutton.js",