From 80c13d02143d0198792bbb02c39aa2a737bf9c78 Mon Sep 17 00:00:00 2001 From: Stefan Micko Date: Sat, 17 Aug 2024 00:29:13 +0200 Subject: [PATCH 1/2] Fix vulnerabilities and formatted readme.md inclusive some line how to start the server from commanline --- .../ts-microservice/client/package-lock.json | 14 +++++----- samples/ts-microservice/readme.md | 26 ++++++++++--------- .../ts-microservice/server/package-lock.json | 26 +++++++++---------- 3 files changed, 34 insertions(+), 32 deletions(-) diff --git a/samples/ts-microservice/client/package-lock.json b/samples/ts-microservice/client/package-lock.json index b7356b48..bd481d55 100644 --- a/samples/ts-microservice/client/package-lock.json +++ b/samples/ts-microservice/client/package-lock.json @@ -2710,11 +2710,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -4108,9 +4108,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, diff --git a/samples/ts-microservice/readme.md b/samples/ts-microservice/readme.md index 019ab647..3a145d0c 100644 --- a/samples/ts-microservice/readme.md +++ b/samples/ts-microservice/readme.md @@ -13,19 +13,21 @@ Depending on the methog beeing called the server just answers or will create del # server The server is node based -* Running the sample -** Have at least node 18 and VSCode installed. -** Server: -*** Navigate into the server folder and call npm ci to install the dependencies -*** Adopt .env.sample and save it as .env -**** The listen port of the server is required on the client side +## Running the sample +* Have at least node 18 and VSCode installed. +* Server: + * Navigate into the server folder and call npm ci to install the dependencies + * Adopt .env.sample and save it as .env + * The listen port of the server is required on the client side + * Call npm run build which compiles the TypeScript into JavaScript + * Call nom run start to start the example server -** Client: -*** Navigate into the client folder and call npm ci to install the dependencies -*** Adopt .env.sample and save it as .env -*** Open the microservicetemplate_client.code-workspace in VSCode -*** Call npm start in the console of VSCode -*** In Run and Debug select the appropriate client and http:// or https:// depending on your configuration +* Client: + * Navigate into the client folder and call npm ci to install the dependencies + * Adopt .env.sample and save it as .env + * Open the microservicetemplate_client.code-workspace in VSCode + * Call npm start in the console of VSCode + * In Run and Debug select the appropriate client and http:// or https:// depending on your configuration # OpenApi This is an example usage of https://www.npmjs.com/package/@estos/esnacc-openapi-sdk?activeTab=readme diff --git a/samples/ts-microservice/server/package-lock.json b/samples/ts-microservice/server/package-lock.json index 78e0d076..71034157 100644 --- a/samples/ts-microservice/server/package-lock.json +++ b/samples/ts-microservice/server/package-lock.json @@ -2018,9 +2018,9 @@ } }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dev": true, "dependencies": { "follow-redirects": "^1.15.6", @@ -2197,11 +2197,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -4230,9 +4230,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -8967,9 +8967,9 @@ } }, "node_modules/ws": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz", - "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "engines": { "node": ">=10.0.0" }, From 038e4903c05ba3f065309a511608bd47933a9cad Mon Sep 17 00:00:00 2001 From: stemi1 Date: Sat, 17 Aug 2024 00:53:02 +0200 Subject: [PATCH 2/2] Update readme.md --- samples/ts-microservice/readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/ts-microservice/readme.md b/samples/ts-microservice/readme.md index 3a145d0c..11e117f1 100644 --- a/samples/ts-microservice/readme.md +++ b/samples/ts-microservice/readme.md @@ -16,20 +16,20 @@ The server is node based ## Running the sample * Have at least node 18 and VSCode installed. * Server: - * Navigate into the server folder and call npm ci to install the dependencies + * Navigate into the server folder and call `npm ci` to install the dependencies * Adopt .env.sample and save it as .env * The listen port of the server is required on the client side - * Call npm run build which compiles the TypeScript into JavaScript - * Call nom run start to start the example server + * Call `npm run build` which compiles the TypeScript into JavaScript + * Call `npm run start` to start the example server * Client: - * Navigate into the client folder and call npm ci to install the dependencies + * Navigate into the client folder and call `npm ci` to install the dependencies * Adopt .env.sample and save it as .env * Open the microservicetemplate_client.code-workspace in VSCode - * Call npm start in the console of VSCode + * Call `npm start` in the console of VSCode * In Run and Debug select the appropriate client and http:// or https:// depending on your configuration # OpenApi This is an example usage of https://www.npmjs.com/package/@estos/esnacc-openapi-sdk?activeTab=readme -Either you start it with `npm run start` that uses the local npm package or you use `npm run serve` that just hosts the schema and index.html and gets the sdk from unpkg \ No newline at end of file +Either you start it with `npm run start` that uses the local npm package or you use `npm run serve` that just hosts the schema and index.html and gets the sdk from unpkg