Browse Source

change vendor.js to vendor-bundle.js

patch-2
Manuel Araoz 11 years ago
parent
commit
18b2d190de
  1. 2
      Key.js
  2. 4
      browser/concat.sh
  3. 0
      browser/vendor-bundle.js
  4. 2
      util/util.js

2
Key.js

@ -5,7 +5,7 @@ if (process.versions) {
module.exports = require('bindings')('KeyModule');
} else {
// pure js version
var ECKey = require('./browser/vendor.js').ECKey;
var ECKey = require('./browser/vendor-bundle.js').ECKey;
var buffertools = require('buffertools');
var bufferToArray = function(buffer) {

4
browser/concat.sh

@ -1,7 +1,7 @@
#! /bin/bash
cd vendor/
cat browser-adapter.js crypto.js ripemd160.js jsbn.js jsbn2.js prng4.js util.js rng.js ec.js sec.js ecdsa.js eckey.js > vendor.js
mv vendor.js ../
cat browser-adapter.js crypto.js ripemd160.js jsbn.js jsbn2.js prng4.js util.js rng.js ec.js sec.js ecdsa.js eckey.js > vendor-bundle.js
mv vendor-bundle.js ../
cd ../

0
browser/vendor.js → browser/vendor-bundle.js

2
util/util.js

@ -7,7 +7,7 @@ var buffertools = require('buffertools');
var browser;
if (!process.versions) {
// browser version
browser = require('../browser/vendor.js');
browser = require('../browser/vendor-bundle.js');
}

Loading…
Cancel
Save