Browse Source

Name changes for version guard message.

patch-2
Braydon Fuller 9 years ago
parent
commit
1746009546
  1. 6
      index.js
  2. 2
      package.json

6
index.js

@ -6,9 +6,9 @@ var bitcore = module.exports;
bitcore.version = 'v' + require('./package.json').version;
bitcore.versionGuard = function(version) {
if (version !== undefined) {
var message = 'More than one instance of bitcore found with versions: ' + bitcore.version +
' and ' + version + '. Please make sure to require bitcore and check that submodules do' +
' not also include their own bitcore dependency.';
var message = 'More than one instance of bitcore-lib found. ' +
'Please make sure to require bitcore-lib and check that submodules do' +
' not also include their own bitcore-lib dependency.';
throw new Error(message);
}
};

2
package.json

@ -74,7 +74,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/bitpay/bitcore.git"
"url": "https://github.com/bitpay/bitcore-lib.git"
},
"browser": {
"request": "browser-request"

Loading…
Cancel
Save