Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-mock-record

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-mock-record - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

3

client/mock.utilities.js

@@ -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) {

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc