dmock-server
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -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 {}; |
@@ -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 · [![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
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
170
2
10622