typo fixes

This commit is contained in:
AJ ONeal 2017-05-29 18:35:59 +00:00
parent 7a9ea3fef8
commit a2dcd45403
1 changed files with 2 additions and 6 deletions

View File

@ -155,8 +155,8 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
console.log('DEBUG pkgPath', pkgPath); console.log('DEBUG pkgPath', pkgPath);
myApp = express(); myApp = express();
myApp.handlePromise = require('./lib/common').promisableRequest; myApp.handlePromise = require('./common').promisableRequest;
myApp.handleRejection = require('./lib/common').rejectableRequest; myApp.handleRejection = require('./common').rejectableRequest;
var _getOauth3Controllers = pkgDeps.getOauth3Controllers = require('oauthcommon/example-oauthmodels').create( var _getOauth3Controllers = pkgDeps.getOauth3Controllers = require('oauthcommon/example-oauthmodels').create(
{ sqlite3Sock: xconfx.sqlite3Sock, ipcKey: xconfx.ipcKey } { sqlite3Sock: xconfx.sqlite3Sock, ipcKey: xconfx.ipcKey }
@ -243,7 +243,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
Object.defineProperty(req, 'Stripe', { Object.defineProperty(req, 'Stripe', {
enumerable: true enumerable: true
, configurable: false , configurable: false
, writable: false
, get: function () { , get: function () {
_stripe = _stripe || require('stripe')(siteConfig['stripe.com'].live.secret); _stripe = _stripe || require('stripe')(siteConfig['stripe.com'].live.secret);
return _stripe; return _stripe;
@ -253,7 +252,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
Object.defineProperty(req, 'StripeTest', { Object.defineProperty(req, 'StripeTest', {
enumerable: true enumerable: true
, configurable: false , configurable: false
, writable: false
, get: function () { , get: function () {
_stripe_test = _stripe_test || require('stripe')(siteConfig['stripe.com'].test.secret); _stripe_test = _stripe_test || require('stripe')(siteConfig['stripe.com'].test.secret);
return _stripe_test; return _stripe_test;
@ -263,7 +261,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
Object.defineProperty(req, 'Mandrill', { Object.defineProperty(req, 'Mandrill', {
enumerable: true enumerable: true
, configurable: false , configurable: false
, writable: false
, get: function () { , get: function () {
if (!_mandrill) { if (!_mandrill) {
var Mandrill = require('mandrill-api/mandrill'); var Mandrill = require('mandrill-api/mandrill');
@ -281,7 +278,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
Object.defineProperty(req, 'Mailchimp', { Object.defineProperty(req, 'Mailchimp', {
enumerable: true enumerable: true
, configurable: false , configurable: false
, writable: false
, get: function () { , get: function () {
var Mailchimp = require('mailchimp-api-v3'); var Mailchimp = require('mailchimp-api-v3');
_mailchimp = _mailchimp || new Mailchimp(siteConfig['mailchimp.com'].apiKey); _mailchimp = _mailchimp || new Mailchimp(siteConfig['mailchimp.com'].apiKey);