You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by jh...@apache.org on 2015/08/11 07:57:41 UTC

[2/3] couchdb-nano git commit: Webpack support

Webpack support

Specify `.json` extension when requiring `package.json` as suggested by @abhishiv.

Closes #289


Project: http://git-wip-us.apache.org/repos/asf/couchdb-nano/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-nano/commit/c38e92db
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-nano/tree/c38e92db
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-nano/diff/c38e92db

Branch: refs/heads/master
Commit: c38e92dbf7cb7ed4e6d679fbf3e0390f9502f01e
Parents: 03e784b
Author: Johannes J. Schmidt <jo...@die-tf.de>
Authored: Mon Aug 3 11:58:24 2015 +0200
Committer: Johannes J. Schmidt <jo...@die-tf.de>
Committed: Mon Aug 3 11:58:24 2015 +0200

----------------------------------------------------------------------
 lib/nano.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-nano/blob/c38e92db/lib/nano.js
----------------------------------------------------------------------
diff --git a/lib/nano.js b/lib/nano.js
index 19ff1f8..ab97228 100644
--- a/lib/nano.js
+++ b/lib/nano.js
@@ -758,7 +758,7 @@ module.exports = exports = nano = function dbScope(cfg) {
  *
  * thanks for visiting! come again!
  */
-nano.version = require('../package').version;
+nano.version = require('../package.json').version;
 nano.path    = __dirname;
 
 function urlResolveFix(couchUrl, dbName) {