From 85d5e69fc1202f826919e1c86c34d8b78e270a35 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 21 Jul 2014 13:52:09 -0700 Subject: [PATCH] paypro: move root certs to common. --- browser/root-certs | 2 +- lib/PayPro.js | 2 +- lib/browser/PayPro.js | 2 +- lib/{ => common}/RootCerts.js | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename lib/{ => common}/RootCerts.js (100%) diff --git a/browser/root-certs b/browser/root-certs index c8bbc77..d3d2dbb 100755 --- a/browser/root-certs +++ b/browser/root-certs @@ -172,7 +172,7 @@ function main(argv, callback) { argv = null; } return getRootCerts(function(err, certs) { - var file = path.resolve(__dirname, '..', 'lib', 'RootCerts.js'); + var file = path.resolve(__dirname, '..', 'lib', 'common', 'RootCerts.js'); return fs.writeFile(file, certs, callback); }); } diff --git a/lib/PayPro.js b/lib/PayPro.js index a9e8f37..4b5850b 100644 --- a/lib/PayPro.js +++ b/lib/PayPro.js @@ -2,7 +2,7 @@ var protobufjs = protobufjs || require('protobufjs/dist/ProtoBuf'); var Message = Message || require('./Message'); -var RootCerts = require('./RootCerts'); +var RootCerts = require('./common/RootCerts'); // BIP 70 - payment protocol function PayPro() { diff --git a/lib/browser/PayPro.js b/lib/browser/PayPro.js index 867fdb1..c664af8 100644 --- a/lib/browser/PayPro.js +++ b/lib/browser/PayPro.js @@ -4,7 +4,7 @@ var Key = require('./Key'); var KJUR = require('./x509'); var assert = require('assert'); var PayPro = require('../PayPro'); -var RootCerts = require('../RootCerts'); +var RootCerts = require('../common/RootCerts'); PayPro.sign = function(key) { if (this.messageType !== 'PaymentRequest') diff --git a/lib/RootCerts.js b/lib/common/RootCerts.js similarity index 100% rename from lib/RootCerts.js rename to lib/common/RootCerts.js