Skip to content

Commit

Permalink
export getClient for server
Browse files Browse the repository at this point in the history
  • Loading branch information
lsimone committed Aug 28, 2018
1 parent 0eac4f5 commit e19e430
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.call = undefined;
exports.getClient = exports.call = undefined;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

Expand All @@ -15,6 +15,12 @@ Object.defineProperty(exports, 'call', {
return _client.call;
}
});
Object.defineProperty(exports, 'getClient', {
enumerable: true,
get: function get() {
return _client.getClient;
}
});
exports.init = init;

var _path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cors from 'cors'
import mockApi from 'swagger-mock-api'
import { init as clientInit } from './client'

export { call } from './client'
export { call, getClient } from './client'

export function init (defaultHost, getDefaultHeaders, options = {}) {
let mockServerPort
Expand Down

0 comments on commit e19e430

Please sign in to comment.