From 87b818badf0334b7745edfb5d1c360a2b87c279a Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 10 Jul 2014 16:08:42 -0300 Subject: [PATCH] remove soop exports --- browser/build.js | 2 -- browser/testdata.js | 62 +++---------------------------------- lib/Address.js | 2 +- lib/BIP39.js | 2 +- lib/BIP39WordlistEn.js | 2 +- lib/Block.js | 2 +- lib/Bloom.js | 2 +- lib/Connection.js | 2 +- lib/Curve.js | 2 +- lib/ECIES.js | 2 +- lib/HierarchicalKey.js | 2 +- lib/Message.js | 2 +- lib/Opcode.js | 2 +- lib/PayPro.js | 2 +- lib/Peer.js | 2 +- lib/PeerManager.js | 2 +- lib/Point.js | 2 +- lib/PrivateKey.js | 2 +- lib/RpcClient.js | 2 +- lib/SIN.js | 2 +- lib/SINKey.js | 2 +- lib/Script.js | 2 +- lib/ScriptInterpreter.js | 2 +- lib/SecureRandom.js | 2 +- lib/Transaction.js | 2 +- lib/TransactionBuilder.js | 2 +- lib/Wallet.js | 2 +- lib/WalletKey.js | 2 +- lib/browser/ECIES.js | 2 +- lib/browser/Point.js | 2 +- lib/browser/SecureRandom.js | 2 +- lib/common/ECIES.js | 2 +- lib/common/SecureRandom.js | 2 +- 33 files changed, 35 insertions(+), 91 deletions(-) diff --git a/browser/build.js b/browser/build.js index f96b358..ffd62b9 100644 --- a/browser/build.js +++ b/browser/build.js @@ -2,7 +2,6 @@ var fs = require('fs'); var browserify = require('browserify'); -var browserPack = require('browser-pack'); var exec = require('child_process').exec; var sys = require('sys'); var puts = function(error, stdout, stderr) { @@ -134,7 +133,6 @@ var createBitcore = function(opts) { var createTestData = function() { var bopts = { - pack: pack, debug: true, standalone: 'testdata', insertGlobals: true diff --git a/browser/testdata.js b/browser/testdata.js index 5922dfd..1520dc5 100644 --- a/browser/testdata.js +++ b/browser/testdata.js @@ -1,57 +1,4 @@ -require= -// modules are defined as an array -// [ module function, map of requireuires ] -// -// map of requireuires is short require name -> numeric require -// -// anything defined in a previous bundle is accessed via the -// orig method which is the requireuire for previous bundles -(function outer (modules, cache, entry) { - // Save the require from previous bundle to this closure if any - var previousRequire = typeof require == "function" && require; - - function newRequire(name, jumped, inSkipCache){ - - var m, skipCache = inSkipCache; - if (typeof name === 'string') { - if (name.charAt(0) === '!' ) { - name = name.substr(1); - skipCache=true; - } - } - if(skipCache || !cache[name]) { - if(!modules[name]) { - // if we cannot find the the module within our internal map or - // cache jump to the current global require ie. the last bundle - // that was added to the page. - var currentRequire = typeof require == "function" && require; - if (!jumped && currentRequire) return currentRequire(name, true); - - // If there are other bundles on this page the require from the - // previous one is saved to 'previousRequire'. Repeat this as - // many times as there are bundles until the module is found or - // we exhaust the require chain. - if (previousRequire) return previousRequire(name, true); - throw new Error('Cannot find module \'' + name + '\''); - } - - m = {exports:{}}; - var nextSkipCache = inSkipCache ? false : skipCache; - if (!skipCache) cache[name] = m; - skipCache = false; - modules[name][0].call(m.exports, function(x){ - var id = modules[name][1][x]; - return newRequire(id ? id : x, false, nextSkipCache); - },m,m.exports,outer,modules,cache,entry); - } - return m ? m.exports:cache[name].exports; - } - for(var i=0;i