From 95d3a822df3dbd404e3c76baddbceaade209f0fd Mon Sep 17 00:00:00 2001 From: "Andrew D.Laptev" Date: Sun, 27 Oct 2024 18:12:29 +0300 Subject: [PATCH] fix: cleanup unnecessary libraries --- package-lock.json | 7 ------- package.json | 3 +-- startServerMockup.js | 10 ++++------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a855a02..70a2e9e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "dot": "^1.1.3", "eslint": "^8.3.0", "eslint-plugin-node": "^11.1.0", - "ip": "^2.0.1", "jsdoc": "^4.0.2", "keypress": "^0.2.1", "mocha": "^10.0.0", @@ -2042,12 +2041,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/ip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", - "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==", - "dev": true - }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", diff --git a/package.json b/package.json index 21499983..d15a34ef 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "keypress": "^0.2.1", "mocha": "^10.0.0", "nimble": "^0.0.2", - "nyc": "^15.1.0", - "ip": "^2.0.1" + "nyc": "^15.1.0" } } diff --git a/startServerMockup.js b/startServerMockup.js index 2c9c6c69..fc824e3d 100644 --- a/startServerMockup.js +++ b/startServerMockup.js @@ -1,16 +1,14 @@ // Run the Server Mockup -let ip = require('ip'); - -let serverHostname = ip.address(); -let serverPort = '10101'; -let allowDiscovery = 'false'; +const serverHostname = 'localhost'; +const serverPort = '10101'; process.env['HOSTNAME'] = serverHostname; process.env['PORT'] = serverPort; process.env['VERBOSE'] = 'true'; -console.log('Starting Server Mockup at http://' + serverHostname + ':' + serverPort + '/onvif/device_service'); +console.log(`Starting Server Mockup at http://${serverHostname}:${serverPort}/onvif/device_service`); +console.log('BTW you can find full-functional server here: https://www.happytimesoft.com/products/onvif-server/index.html'); let serverMockup = require('./test/serverMockup.js')