very-express 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ # veryExpress generated
2
+ EXPRESS_PORT=3000
@@ -0,0 +1,28 @@
1
+ {
2
+ "main": "index.js",
3
+ "scripts": {
4
+ "build": "tsc -p .",
5
+ "dev": "nodemon --watch src --exec ts-node src/server.ts",
6
+ "start": "node ./dist/server.js",
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "dependencies": {
10
+ "dotenv": "^16.3.1",
11
+ "nodemon": "^2.0.22",
12
+ "express": "^4.18.2",
13
+ "express-validator": "^7.0.1",
14
+ "helmet": "^7.1.0",
15
+ "passport": "^0.7.0",
16
+ "passport-google-oauth20": "^2.0.0",
17
+ "swagger-ui-express": "^5.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/express": "^4.17.21",
21
+ "@types/node": "^20.10.5",
22
+ "@types/passport": "^1.0.16",
23
+ "@types/passport-google-oauth20": "^2.0.14",
24
+ "@types/swagger-ui-express": "^4.1.6",
25
+ "ts-node": "^10.9.2",
26
+ "typescript": "^5.3.3"
27
+ }
28
+ }
@@ -0,0 +1,11 @@
1
+ import jsYaml from 'js-yaml';
2
+ import fs from 'fs';
3
+ import log from '../../utils/log';
4
+
5
+ export function loadYaml(yamlFilePath: string) {
6
+ try {
7
+ return jsYaml.load(fs.readFileSync(yamlFilePath, 'utf8'));
8
+ } catch (e: any) {
9
+ log.error('Error Load OpenApi File :\n', e.message || e);
10
+ }
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "very-express",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
5
5
  "author": "justin26l",
6
6
  "license": "MIT",