angular-mock-record
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -13,2 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
this.api_host = api_host; | ||
if (browser.baseUrl.indexOf('process_port') > -1) { | ||
this.api_host = 'http://localhost:' + browser.baseUrl.split('?process_port=')[1]; | ||
} | ||
} | ||
@@ -15,0 +18,0 @@ MockUtilities.prototype.mockRequest = function (endpoint, mockResponse, method) { |
{ | ||
"name": "angular-mock-record", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "An angular / protractor framework that mocks and records requests. Requests can be manually mocked or recorded like VCR.", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -17,3 +17,3 @@ process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0; | ||
start() { | ||
this.app.listen(config.port || 3000, () => console.log('Mock API running on port ' + config.port + '..')); | ||
this.app.listen(process.argv[3] || 3000, () => console.log('Mock API running on port ' + process.argv[3] || 3000 + '..')); | ||
this.app.all('*', (req, res) => { | ||
@@ -20,0 +20,0 @@ req.url = this.rewritePathToMocks(req.url); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15833
416