Skip to content

Commit

Permalink
Make http server dev only
Browse files Browse the repository at this point in the history
  • Loading branch information
bachase committed May 5, 2017
1 parent f1f5364 commit f175966
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 50 deletions.
42 changes: 0 additions & 42 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"babel-runtime": "^6.3.19",
"bignumber.js": "^2.0.3",
"https-proxy-agent": "^1.0.0",
"jayson": "^1.2.2",
"jsonschema": "^1.1.1",
"lodash": "^3.1.0",
"ripple-address-codec": "^2.0.1",
Expand Down Expand Up @@ -51,6 +50,7 @@
"gulp-uglify": "^1.1.0",
"http-server": "^0.8.5",
"istanbul": "^1.1.0-alpha.1",
"jayson": "^1.2.2",
"json-loader": "^0.5.2",
"json-schema-to-markdown-table": "^0.4.0",
"mocha": "^2.1.0",
Expand Down
6 changes: 3 additions & 3 deletions scripts/http.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const createHTTPServer = require('../src/index').createHTTPServer;
'use strict';

const createHTTPServer = require('../src/http').createHTTPServer;
const port = 5990;
const serverUrl = 'wss://s1.ripple.com';

Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
module.exports = {
RippleAPI: require('./api').RippleAPI,
// Broadcast api is experimental
RippleAPIBroadcast: require('./broadcast').RippleAPIBroadcast,
// HTTP server is experimental
createHTTPServer: require('./http').createHTTPServer
RippleAPIBroadcast: require('./broadcast').RippleAPIBroadcast
}
2 changes: 1 addition & 1 deletion test/integration/http-integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const _ = require('lodash');
const jayson = require('jayson');

const RippleAPI = require('../../src').RippleAPI;
const createHTTPServer = require('../../src/index').createHTTPServer;
const createHTTPServer = require('../../src/http').createHTTPServer;
const {payTo, ledgerAccept} = require('./utils');

const apiFixtures = require('../fixtures');
Expand Down

0 comments on commit f175966

Please sign in to comment.