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

dmock-server

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmock-server - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

12

lib/index.d.ts

@@ -49,3 +49,3 @@ /// <reference types="node" />

*/
declare type ServerParameters = {
export declare type ServerParameters = {
hostname?: string;

@@ -81,3 +81,11 @@ port?: number;

*/
declare type ResponseFunction = (request: express.Request, response: express.Response) => void;
declare type ResponseFunction = (request: Request, response: Response) => void;
/**
* The request object
*/
export declare type Request = express.Request;
/**
* The response object
*/
export declare type Response = express.Response;
export {};

3

lib/index.js

@@ -24,3 +24,2 @@ "use strict";

this.port = 3000;
console.log(process.env.INIT_CWD + '/');
if (parameters.hostname !== undefined)

@@ -32,6 +31,4 @@ this.hostname = parameters.hostname;

this.routes = require(`${process.env.INIT_CWD}/${parameters.routes}`);
// this.routes = require(`${path.basename(__filename)}${parameters.routes}`)
else
this.routes = parameters.routes;
console.log(this.routes);
}

@@ -38,0 +35,0 @@ /**

{
"name": "dmock-server",
"version": "1.5.0",
"version": "1.5.1",
"description": "This NodeJS module is a delightful mock server built for automation and ongoing development",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,0 +0,0 @@ # dMock Server &middot; [![GitHub license](https://img.shields.io/badge/license-BSD%203%20Clause-blue.svg)](https://github.com/danitseitlin/dmock-server/blob/master/LICENSE) [![npm version](http://img.shields.io/npm/v/dmock-server.svg?style=flat)](https://npmjs.org/package/dmock-server "View this project on npm") ![CI](https://github.com/danitseitlin/dmock-server/workflows/CI/badge.svg)

Sorry, the diff of this file is not supported yet

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