Browse Source

move *.browser and *.node to browser/* and node/*

...this should leave the lib folder a little bit less cluttered.
patch-2
Ryan X. Charles 11 years ago
parent
commit
f82fa5007a
  1. 4
      lib/Key.js
  2. 4
      lib/Point.js
  3. 2
      lib/browser/Key.js
  4. 10
      lib/browser/Point.js
  5. 0
      lib/node/Key.js
  6. 2
      lib/node/Point.js

4
lib/Key.js

@ -1,5 +1,5 @@
if (process.versions) {
module.exports = require('./Key.node');
module.exports = require('./node/Key');
return;
}
module.exports = require('./Key.browser');
module.exports = require('./browser/Key');

4
lib/Point.js

@ -1,5 +1,5 @@
if (process.versions) {
module.exports = require('./Point.node');
module.exports = require('./node/Point');
return;
}
module.exports = require('./Point.browser');
module.exports = require('./browser/Point');

2
lib/Key.browser.js → lib/browser/Key.js

@ -1,4 +1,4 @@
var ECKey = require('../browser/vendor-bundle.js').ECKey;
var ECKey = require('../../browser/vendor-bundle.js').ECKey;
var buffertools = require('buffertools');
var Key = function() {

10
lib/Point.browser.js → lib/browser/Point.js

@ -4,11 +4,11 @@ var imports = require('soop').imports();
var Key = imports.Key || require('./Key');
var bignum = imports.bignum || require('bignum');
var assert = require('assert');
var ECKey = require('../browser/vendor-bundle.js').ECKey;
var ECPointFp = require('../browser/vendor-bundle.js').ECPointFp;
var ECFieldElementFp = require('../browser/vendor-bundle.js').ECFieldElementFp;
var getSECCurveByName = require('../browser/vendor-bundle.js').getSECCurveByName;
var BigInteger = require('../browser/vendor-bundle.js').BigInteger;
var ECKey = require('../../browser/vendor-bundle.js').ECKey;
var ECPointFp = require('../../browser/vendor-bundle.js').ECPointFp;
var ECFieldElementFp = require('../../browser/vendor-bundle.js').ECFieldElementFp;
var getSECCurveByName = require('../../browser/vendor-bundle.js').getSECCurveByName;
var BigInteger = require('../../browser/vendor-bundle.js').BigInteger;
var should = require('chai').should();
//a point on the secp256k1 curve

0
lib/Key.node.js → lib/node/Key.js

2
lib/Point.node.js → lib/node/Point.js

@ -1,7 +1,7 @@
"use strict";
var imports = require('soop').imports();
var Key = imports.Key || require('./Key');
var Key = imports.Key || require('../Key');
var bignum = imports.bignum || require('bignum');
var assert = require('assert');
Loading…
Cancel
Save