@whook/create 10.0.2 → 10.0.3

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.
@@ -1,49 +1,49 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`initCreateWhook should fail with access problems 2`] = `
4
- Object {
5
- "copyCalls": Array [
6
- Array [
4
+ {
5
+ "copyCalls": [
6
+ [
7
7
  "/var/lib/node/node_modules/whook-example",
8
8
  "/home/whoiam/projects/yolo",
9
- Object {
9
+ {
10
10
  "filter": [Function],
11
11
  },
12
12
  ],
13
13
  ],
14
- "execCalls": Array [
15
- Array [
14
+ "execCalls": [
15
+ [
16
16
  "git init",
17
- Object {
17
+ {
18
18
  "cwd": "/home/whoiam/projects/yolo",
19
19
  },
20
20
  [Function],
21
21
  ],
22
22
  ],
23
- "logCalls": Array [
24
- Array [
23
+ "logCalls": [
24
+ [
25
25
  "warning",
26
26
  "🏁️ - Starting Whook project's creation!",
27
27
  ],
28
28
  ],
29
- "oraCalls": Array [],
30
- "oraStartCalls": Array [],
31
- "oraStopAndPersistCalls": Array [],
32
- "readFileCalls": Array [
33
- Array [
29
+ "oraCalls": [],
30
+ "oraStartCalls": [],
31
+ "oraStopAndPersistCalls": [],
32
+ "readFileCalls": [
33
+ [
34
34
  "/var/lib/node/node_modules/whook-example/package.json",
35
35
  ],
36
- Array [
36
+ [
37
37
  "/var/lib/node/node_modules/whook-example/README.md",
38
38
  ],
39
39
  ],
40
- "readdirCalls": Array [
41
- Array [
40
+ "readdirCalls": [
41
+ [
42
42
  "/var/lib/node/node_modules/whook-example/src/config",
43
43
  ],
44
44
  ],
45
- "writeFileCalls": Array [
46
- Array [
45
+ "writeFileCalls": [
46
+ [
47
47
  "/home/whoiam/projects/yolo/README.md",
48
48
  "# super-project
49
49
 
@@ -54,202 +54,201 @@ Wayne Campbell
54
54
 
55
55
  ",
56
56
  ],
57
- Array [
57
+ [
58
58
  "/home/whoiam/projects/yolo/.env.development",
59
59
  "JWT_SECRET=oudelali
60
60
  ",
61
61
  ],
62
- Array [
62
+ [
63
63
  "/home/whoiam/projects/yolo/.env.production",
64
64
  "JWT_SECRET=oudelali
65
65
  ",
66
66
  ],
67
- Array [
67
+ [
68
68
  "/home/whoiam/projects/yolo/package.json",
69
69
  "{
70
- \\"name\\": \\"super-project\\",
71
- \\"description\\": \\"A new Whook project\\",
72
- \\"version\\": \\"0.0.0\\",
73
- \\"license\\": \\"SEE LICENSE\\",
74
- \\"engines\\": {
75
- \\"node\\": \\">=16.15.0\\"
70
+ "name": "super-project",
71
+ "description": "A new Whook project",
72
+ "version": "0.0.0",
73
+ "license": "SEE LICENSE",
74
+ "engines": {
75
+ "node": ">=16.15.0"
76
76
  },
77
- \\"main\\": \\"dist/index.js\\",
78
- \\"types\\": \\"dist/index.d.ts\\",
79
- \\"type\\": \\"module\\",
80
- \\"private\\": true,
81
- \\"keywords\\": [
82
- \\"whook\\"
77
+ "main": "dist/index.js",
78
+ "types": "dist/index.d.ts",
79
+ "type": "module",
80
+ "private": true,
81
+ "keywords": [
82
+ "whook"
83
83
  ],
84
- \\"author\\": {
85
- \\"name\\": \\"Wayne Campbell\\",
86
- \\"email\\": \\"wayne@warner.com\\"
84
+ "author": {
85
+ "name": "Wayne Campbell",
86
+ "email": "wayne@warner.com"
87
87
  },
88
- \\"scripts\\": {
89
- \\"apitypes\\": \\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",
90
- \\"architecture\\": \\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",
91
- \\"build\\": \\"rimraf -f 'dist' && tsc --outDir dist\\",
92
- \\"cover\\": \\"npm run jest -- --coverage\\",
93
- \\"debug\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",
94
- \\"dev\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",
95
- \\"genPackagelock\\": \\"npm i --package-lock-only\\",
96
- \\"jest\\": \\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",
97
- \\"lint\\": \\"eslint 'src/**/*.ts'\\",
98
- \\"postbuild\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",
99
- \\"prettier\\": \\"prettier --write 'src/**/*.ts'\\",
100
- \\"start\\": \\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",
101
- \\"test\\": \\"NODE_ENV=test npm run build && npm run jest\\",
102
- \\"watch\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",
103
- \\"whook\\": \\"NODE_ENV=\${NODE_ENV:-development} whook\\",
104
- \\"whook-dev\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",
105
- \\"whook-repl\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"
88
+ "scripts": {
89
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
90
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
91
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
92
+ "cover": "npm run jest -- --coverage",
93
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
94
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
95
+ "genPackagelock": "npm i --package-lock-only",
96
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
97
+ "lint": "eslint 'src/**/*.ts'",
98
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
99
+ "prettier": "prettier --write 'src/**/*.ts'",
100
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
101
+ "test": "NODE_ENV=test npm run build && npm run jest",
102
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
103
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
104
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
105
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
106
106
  },
107
- \\"files\\": [
108
- \\"bin\\",
109
- \\"dist\\",
110
- \\"src\\",
111
- \\"LICENSE\\",
112
- \\"README.md\\",
113
- \\"CHANGELOG.md\\"
107
+ "files": [
108
+ "bin",
109
+ "dist",
110
+ "src",
111
+ "LICENSE",
112
+ "README.md",
113
+ "CHANGELOG.md"
114
114
  ],
115
- \\"dependencies\\": {
116
- \\"@whook/authorization\\": \\"<current_version>\\",
117
- \\"@whook/cli\\": \\"<current_version>\\",
118
- \\"@whook/cors\\": \\"<current_version>\\",
119
- \\"@whook/http-router\\": \\"<current_version>\\",
120
- \\"@whook/http-server\\": \\"^10.0.1\\",
121
- \\"@whook/http-transaction\\": \\"<current_version>\\",
122
- \\"@whook/swagger-ui\\": \\"<current_version>\\",
123
- \\"@whook/whook\\": \\"<current_version>\\",
124
- \\"common-services\\": \\"^11.0.1\\",
125
- \\"http-auth-utils\\": \\"^3.0.3\\",
126
- \\"jwt-service\\": \\"^9.0.1\\",
127
- \\"knifecycle\\": \\"^14.0.0\\",
128
- \\"openapi-schema-validator\\": \\"^12.0.0\\",
129
- \\"openapi-types\\": \\"^12.0.0\\",
130
- \\"strict-qs\\": \\"^7.0.0\\",
131
- \\"type-fest\\": \\"^2.13.1\\",
132
- \\"yerror\\": \\"^6.1.1\\",
133
- \\"yhttperror\\": \\"^6.1.1\\"
115
+ "dependencies": {
116
+ "@whook/authorization": "<current_version>",
117
+ "@whook/cli": "<current_version>",
118
+ "@whook/cors": "<current_version>",
119
+ "@whook/http-router": "<current_version>",
120
+ "@whook/http-server": "^10.0.2",
121
+ "@whook/http-transaction": "<current_version>",
122
+ "@whook/swagger-ui": "<current_version>",
123
+ "@whook/whook": "<current_version>",
124
+ "common-services": "^11.1.0",
125
+ "http-auth-utils": "^3.0.3",
126
+ "jwt-service": "^9.0.2",
127
+ "knifecycle": "^14.1.0",
128
+ "openapi-schema-validator": "^12.0.0",
129
+ "openapi-types": "^12.0.2",
130
+ "strict-qs": "^7.0.0",
131
+ "type-fest": "^2.19.0",
132
+ "yerror": "^6.1.1",
133
+ "yhttperror": "^6.1.1"
134
134
  },
135
- \\"devDependencies\\": {
136
- \\"@types/jest\\": \\"^28.1.1\\",
137
- \\"@typescript-eslint/eslint-plugin\\": \\"^5.27.0\\",
138
- \\"@typescript-eslint/parser\\": \\"^5.27.0\\",
139
- \\"axios\\": \\"^0.27.2\\",
140
- \\"chokidar\\": \\"^3.5.1\\",
141
- \\"esbuild\\": \\"^0.14.46\\",
142
- \\"esbuild-jest\\": \\"^0.5.0\\",
143
- \\"esbuild-node-externals\\": \\"^1.4.1\\",
144
- \\"eslint\\": \\"^8.17.0\\",
145
- \\"eslint-config-prettier\\": \\"^8.5.0\\",
146
- \\"eslint-plugin-prettier\\": \\"^4.0.0\\",
147
- \\"jest\\": \\"^28.1.0\\",
148
- \\"jsarch\\": \\"^5.0.1\\",
149
- \\"parse-gitignore\\": \\"^1.0.1\\",
150
- \\"prettier\\": \\"^2.6.2\\",
151
- \\"rimraf\\": \\"^3.0.2\\",
152
- \\"schema2dts\\": \\"^4.1.1\\",
153
- \\"ts-node\\": \\"^10.8.1\\",
154
- \\"typescript\\": \\"^4.7.3\\"
135
+ "devDependencies": {
136
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
137
+ "@typescript-eslint/parser": "^5.36.0",
138
+ "axios": "^0.27.2",
139
+ "chokidar": "^3.5.1",
140
+ "esbuild": "^0.15.6",
141
+ "esbuild-jest": "^0.5.0",
142
+ "esbuild-node-externals": "^1.5.0",
143
+ "eslint": "^8.23.0",
144
+ "eslint-config-prettier": "^8.5.0",
145
+ "eslint-plugin-prettier": "^4.2.1",
146
+ "jest": "^29.0.1",
147
+ "jsarch": "^6.0.0",
148
+ "parse-gitignore": "^1.0.1",
149
+ "prettier": "^2.7.1",
150
+ "rimraf": "^3.0.2",
151
+ "schema2dts": "^4.1.1",
152
+ "ts-node": "^10.8.1",
153
+ "typescript": "^4.8.2"
155
154
  },
156
- \\"eslintConfig\\": {
157
- \\"extends\\": [
158
- \\"eslint:recommended\\",
159
- \\"plugin:prettier/recommended\\",
160
- \\"plugin:@typescript-eslint/eslint-recommended\\",
161
- \\"plugin:@typescript-eslint/recommended\\"
162
- ],
163
- \\"parserOptions\\": {
164
- \\"ecmaVersion\\": 2018,
165
- \\"sourceType\\": \\"script\\",
166
- \\"modules\\": true
155
+ "eslintConfig": {
156
+ "extends": [
157
+ "eslint:recommended",
158
+ "plugin:prettier/recommended",
159
+ "plugin:@typescript-eslint/eslint-recommended",
160
+ "plugin:@typescript-eslint/recommended"
161
+ ],
162
+ "parserOptions": {
163
+ "ecmaVersion": 2018,
164
+ "sourceType": "script",
165
+ "modules": true
167
166
  },
168
- \\"env\\": {
169
- \\"es6\\": true,
170
- \\"node\\": true,
171
- \\"jest\\": true,
172
- \\"mocha\\": true
167
+ "env": {
168
+ "es6": true,
169
+ "node": true,
170
+ "jest": true,
171
+ "mocha": true
173
172
  },
174
- \\"plugins\\": [
175
- \\"prettier\\"
173
+ "plugins": [
174
+ "prettier"
176
175
  ],
177
- \\"rules\\": {
178
- \\"prettier/prettier\\": \\"error\\"
176
+ "rules": {
177
+ "prettier/prettier": "error"
179
178
  },
180
- \\"parser\\": \\"@typescript-eslint/parser\\",
181
- \\"ignorePatterns\\": [
182
- \\"*.d.ts\\"
179
+ "parser": "@typescript-eslint/parser",
180
+ "ignorePatterns": [
181
+ "*.d.ts"
183
182
  ]
184
183
  },
185
- \\"prettier\\": {
186
- \\"semi\\": true,
187
- \\"printWidth\\": 80,
188
- \\"singleQuote\\": true,
189
- \\"trailingComma\\": \\"all\\",
190
- \\"proseWrap\\": \\"always\\"
184
+ "prettier": {
185
+ "semi": true,
186
+ "printWidth": 80,
187
+ "singleQuote": true,
188
+ "trailingComma": "all",
189
+ "proseWrap": "always"
191
190
  },
192
- \\"jest\\": {
193
- \\"coverageReporters\\": [
194
- \\"lcov\\",
195
- \\"html\\"
191
+ "jest": {
192
+ "coverageReporters": [
193
+ "lcov",
194
+ "html"
196
195
  ],
197
- \\"testPathIgnorePatterns\\": [
198
- \\"/node_modules/\\"
196
+ "testPathIgnorePatterns": [
197
+ "/node_modules/"
199
198
  ],
200
- \\"roots\\": [
201
- \\"<rootDir>/src\\"
199
+ "roots": [
200
+ "<rootDir>/src"
202
201
  ],
203
- \\"testEnvironment\\": \\"node\\",
204
- \\"transform\\": {
205
- \\"^.+\\\\\\\\.tsx?$\\": [
206
- \\"esbuild-jest\\",
202
+ "testEnvironment": "node",
203
+ "transform": {
204
+ "^.+\\\\.tsx?$": [
205
+ "esbuild-jest",
207
206
  {
208
- \\"sourcemap\\": true,
209
- \\"format\\": \\"esm\\"
207
+ "sourcemap": true,
208
+ "format": "esm"
210
209
  }
211
210
  ]
212
211
  },
213
- \\"moduleNameMapper\\": {
214
- \\"#(.*)\\": \\"<rootDir>/../../node_modules/$1\\",
215
- \\"(.+)\\\\\\\\.js\\": \\"$1\\"
212
+ "moduleNameMapper": {
213
+ "#(.*)": "<rootDir>/../../node_modules/$1",
214
+ "(.+)\\\\.js": "$1"
216
215
  },
217
- \\"extensionsToTreatAsEsm\\": [
218
- \\".ts\\"
216
+ "extensionsToTreatAsEsm": [
217
+ ".ts"
219
218
  ]
220
219
  }
221
220
  }",
222
221
  ],
223
- Array [
222
+ [
224
223
  "/home/whoiam/projects/yolo/tsconfig.json",
225
224
  "{
226
- \\"compilerOptions\\": {
227
- \\"module\\": \\"Node16\\",
228
- \\"moduleResolution\\": \\"Node16\\",
229
- \\"target\\": \\"es2022\\",
230
- \\"noImplicitAny\\": false,
231
- \\"removeComments\\": false,
232
- \\"preserveConstEnums\\": true,
233
- \\"allowSyntheticDefaultImports\\": true,
234
- \\"esModuleInterop\\": true,
235
- \\"strict\\": true,
236
- \\"declaration\\": true,
237
- \\"outDir\\": \\"dist\\",
238
- \\"sourceMap\\": true
225
+ "compilerOptions": {
226
+ "module": "Node16",
227
+ "moduleResolution": "Node16",
228
+ "target": "es2022",
229
+ "noImplicitAny": false,
230
+ "removeComments": false,
231
+ "preserveConstEnums": true,
232
+ "allowSyntheticDefaultImports": true,
233
+ "esModuleInterop": true,
234
+ "strict": true,
235
+ "declaration": true,
236
+ "outDir": "dist",
237
+ "sourceMap": true
239
238
  },
240
- \\"include\\": [
241
- \\"src/**/*.ts\\"
239
+ "include": [
240
+ "src/**/*.ts"
242
241
  ],
243
- \\"exclude\\": [
244
- \\"node_modules\\"
242
+ "exclude": [
243
+ "node_modules"
245
244
  ]
246
245
  }",
247
246
  ],
248
- Array [
247
+ [
249
248
  "/home/whoiam/projects/yolo/LICENSE",
250
249
  "Copyright Wayne Campbell, all rights reserved.",
251
250
  ],
252
- Array [
251
+ [
253
252
  "/home/whoiam/projects/yolo/.gitignore",
254
253
  "node_modules",
255
254
  ],
@@ -258,94 +257,94 @@ Wayne Campbell
258
257
  `;
259
258
 
260
259
  exports[`initCreateWhook should handle git initialization problems 2`] = `
261
- Object {
262
- "copyCalls": Array [
263
- Array [
260
+ {
261
+ "copyCalls": [
262
+ [
264
263
  "/var/lib/node/node_modules/whook-example",
265
264
  "/home/whoiam/projects/yolo",
266
- Object {
265
+ {
267
266
  "filter": [Function],
268
267
  },
269
268
  ],
270
269
  ],
271
- "execCalls": Array [
272
- Array [
270
+ "execCalls": [
271
+ [
273
272
  "git init",
274
- Object {
273
+ {
275
274
  "cwd": "/home/whoiam/projects/yolo",
276
275
  },
277
276
  [Function],
278
277
  ],
279
- Array [
278
+ [
280
279
  "npm i",
281
- Object {
280
+ {
282
281
  "cwd": "/home/whoiam/projects/yolo",
283
282
  },
284
283
  [Function],
285
284
  ],
286
285
  ],
287
- "logCalls": Array [
288
- Array [
286
+ "logCalls": [
287
+ [
289
288
  "warning",
290
289
  "🏁️ - Starting Whook project's creation!",
291
290
  ],
292
- Array [
291
+ [
293
292
  "error",
294
293
  "⚠️ - Could not initialize the git project!",
295
294
  ],
296
- Array [
295
+ [
297
296
  "warning",
298
297
  "✔️ - Project created!",
299
298
  ],
300
- Array [
299
+ [
301
300
  "warning",
302
301
  "➕ - Run \`cd yolo\` to enter the project.",
303
302
  ],
304
- Array [
303
+ [
305
304
  "warning",
306
305
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
307
306
  ],
308
- Array [
307
+ [
309
308
  "warning",
310
309
  "➕ - And finally run \`npm run watch\` to start dev!",
311
310
  ],
312
311
  ],
313
- "oraCalls": Array [
314
- Array [
315
- Object {
312
+ "oraCalls": [
313
+ [
314
+ {
316
315
  "text": "Installing dependencies...",
317
316
  },
318
317
  ],
319
318
  ],
320
- "oraStartCalls": Array [
321
- Array [],
319
+ "oraStartCalls": [
320
+ [],
322
321
  ],
323
- "oraStopAndPersistCalls": Array [
324
- Array [
325
- Object {
322
+ "oraStopAndPersistCalls": [
323
+ [
324
+ {
326
325
  "symbol": "✔️",
327
326
  "text": "Installed dependencies",
328
327
  },
329
328
  ],
330
329
  ],
331
- "readFileCalls": Array [
332
- Array [
330
+ "readFileCalls": [
331
+ [
333
332
  "/var/lib/node/node_modules/whook-example/package.json",
334
333
  ],
335
- Array [
334
+ [
336
335
  "/var/lib/node/node_modules/whook-example/README.md",
337
336
  ],
338
337
  ],
339
- "readdirCalls": Array [
340
- Array [
338
+ "readdirCalls": [
339
+ [
341
340
  "/var/lib/node/node_modules/whook-example/package.json",
342
341
  ],
343
- Array [
342
+ [
344
343
  "/var/lib/node/node_modules/whook-example/README.md",
345
344
  ],
346
345
  ],
347
- "writeFileCalls": Array [
348
- Array [
346
+ "writeFileCalls": [
347
+ [
349
348
  "/home/whoiam/projects/yolo/README.md",
350
349
  "# super-project
351
350
 
@@ -356,202 +355,201 @@ Wayne Campbell
356
355
 
357
356
  ",
358
357
  ],
359
- Array [
358
+ [
360
359
  "/home/whoiam/projects/yolo/.env.development",
361
360
  "JWT_SECRET=oudelali
362
361
  ",
363
362
  ],
364
- Array [
363
+ [
365
364
  "/home/whoiam/projects/yolo/.env.production",
366
365
  "JWT_SECRET=oudelali
367
366
  ",
368
367
  ],
369
- Array [
368
+ [
370
369
  "/home/whoiam/projects/yolo/package.json",
371
370
  "{
372
- \\"name\\": \\"super-project\\",
373
- \\"description\\": \\"A new Whook project\\",
374
- \\"version\\": \\"0.0.0\\",
375
- \\"license\\": \\"SEE LICENSE\\",
376
- \\"engines\\": {
377
- \\"node\\": \\">=16.15.0\\"
371
+ "name": "super-project",
372
+ "description": "A new Whook project",
373
+ "version": "0.0.0",
374
+ "license": "SEE LICENSE",
375
+ "engines": {
376
+ "node": ">=16.15.0"
378
377
  },
379
- \\"main\\": \\"dist/index.js\\",
380
- \\"types\\": \\"dist/index.d.ts\\",
381
- \\"type\\": \\"module\\",
382
- \\"private\\": true,
383
- \\"keywords\\": [
384
- \\"whook\\"
378
+ "main": "dist/index.js",
379
+ "types": "dist/index.d.ts",
380
+ "type": "module",
381
+ "private": true,
382
+ "keywords": [
383
+ "whook"
385
384
  ],
386
- \\"author\\": {
387
- \\"name\\": \\"Wayne Campbell\\",
388
- \\"email\\": \\"wayne@warner.com\\"
385
+ "author": {
386
+ "name": "Wayne Campbell",
387
+ "email": "wayne@warner.com"
389
388
  },
390
- \\"scripts\\": {
391
- \\"apitypes\\": \\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",
392
- \\"architecture\\": \\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",
393
- \\"build\\": \\"rimraf -f 'dist' && tsc --outDir dist\\",
394
- \\"cover\\": \\"npm run jest -- --coverage\\",
395
- \\"debug\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",
396
- \\"dev\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",
397
- \\"genPackagelock\\": \\"npm i --package-lock-only\\",
398
- \\"jest\\": \\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",
399
- \\"lint\\": \\"eslint 'src/**/*.ts'\\",
400
- \\"postbuild\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",
401
- \\"prettier\\": \\"prettier --write 'src/**/*.ts'\\",
402
- \\"start\\": \\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",
403
- \\"test\\": \\"NODE_ENV=test npm run build && npm run jest\\",
404
- \\"watch\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",
405
- \\"whook\\": \\"NODE_ENV=\${NODE_ENV:-development} whook\\",
406
- \\"whook-dev\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",
407
- \\"whook-repl\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"
389
+ "scripts": {
390
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
391
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
392
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
393
+ "cover": "npm run jest -- --coverage",
394
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
395
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
396
+ "genPackagelock": "npm i --package-lock-only",
397
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
398
+ "lint": "eslint 'src/**/*.ts'",
399
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
400
+ "prettier": "prettier --write 'src/**/*.ts'",
401
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
402
+ "test": "NODE_ENV=test npm run build && npm run jest",
403
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
404
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
405
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
406
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
408
407
  },
409
- \\"files\\": [
410
- \\"bin\\",
411
- \\"dist\\",
412
- \\"src\\",
413
- \\"LICENSE\\",
414
- \\"README.md\\",
415
- \\"CHANGELOG.md\\"
408
+ "files": [
409
+ "bin",
410
+ "dist",
411
+ "src",
412
+ "LICENSE",
413
+ "README.md",
414
+ "CHANGELOG.md"
416
415
  ],
417
- \\"dependencies\\": {
418
- \\"@whook/authorization\\": \\"<current_version>\\",
419
- \\"@whook/cli\\": \\"<current_version>\\",
420
- \\"@whook/cors\\": \\"<current_version>\\",
421
- \\"@whook/http-router\\": \\"<current_version>\\",
422
- \\"@whook/http-server\\": \\"^10.0.1\\",
423
- \\"@whook/http-transaction\\": \\"<current_version>\\",
424
- \\"@whook/swagger-ui\\": \\"<current_version>\\",
425
- \\"@whook/whook\\": \\"<current_version>\\",
426
- \\"common-services\\": \\"^11.0.1\\",
427
- \\"http-auth-utils\\": \\"^3.0.3\\",
428
- \\"jwt-service\\": \\"^9.0.1\\",
429
- \\"knifecycle\\": \\"^14.0.0\\",
430
- \\"openapi-schema-validator\\": \\"^12.0.0\\",
431
- \\"openapi-types\\": \\"^12.0.0\\",
432
- \\"strict-qs\\": \\"^7.0.0\\",
433
- \\"type-fest\\": \\"^2.13.1\\",
434
- \\"yerror\\": \\"^6.1.1\\",
435
- \\"yhttperror\\": \\"^6.1.1\\"
416
+ "dependencies": {
417
+ "@whook/authorization": "<current_version>",
418
+ "@whook/cli": "<current_version>",
419
+ "@whook/cors": "<current_version>",
420
+ "@whook/http-router": "<current_version>",
421
+ "@whook/http-server": "^10.0.2",
422
+ "@whook/http-transaction": "<current_version>",
423
+ "@whook/swagger-ui": "<current_version>",
424
+ "@whook/whook": "<current_version>",
425
+ "common-services": "^11.1.0",
426
+ "http-auth-utils": "^3.0.3",
427
+ "jwt-service": "^9.0.2",
428
+ "knifecycle": "^14.1.0",
429
+ "openapi-schema-validator": "^12.0.0",
430
+ "openapi-types": "^12.0.2",
431
+ "strict-qs": "^7.0.0",
432
+ "type-fest": "^2.19.0",
433
+ "yerror": "^6.1.1",
434
+ "yhttperror": "^6.1.1"
436
435
  },
437
- \\"devDependencies\\": {
438
- \\"@types/jest\\": \\"^28.1.1\\",
439
- \\"@typescript-eslint/eslint-plugin\\": \\"^5.27.0\\",
440
- \\"@typescript-eslint/parser\\": \\"^5.27.0\\",
441
- \\"axios\\": \\"^0.27.2\\",
442
- \\"chokidar\\": \\"^3.5.1\\",
443
- \\"esbuild\\": \\"^0.14.46\\",
444
- \\"esbuild-jest\\": \\"^0.5.0\\",
445
- \\"esbuild-node-externals\\": \\"^1.4.1\\",
446
- \\"eslint\\": \\"^8.17.0\\",
447
- \\"eslint-config-prettier\\": \\"^8.5.0\\",
448
- \\"eslint-plugin-prettier\\": \\"^4.0.0\\",
449
- \\"jest\\": \\"^28.1.0\\",
450
- \\"jsarch\\": \\"^5.0.1\\",
451
- \\"parse-gitignore\\": \\"^1.0.1\\",
452
- \\"prettier\\": \\"^2.6.2\\",
453
- \\"rimraf\\": \\"^3.0.2\\",
454
- \\"schema2dts\\": \\"^4.1.1\\",
455
- \\"ts-node\\": \\"^10.8.1\\",
456
- \\"typescript\\": \\"^4.7.3\\"
436
+ "devDependencies": {
437
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
438
+ "@typescript-eslint/parser": "^5.36.0",
439
+ "axios": "^0.27.2",
440
+ "chokidar": "^3.5.1",
441
+ "esbuild": "^0.15.6",
442
+ "esbuild-jest": "^0.5.0",
443
+ "esbuild-node-externals": "^1.5.0",
444
+ "eslint": "^8.23.0",
445
+ "eslint-config-prettier": "^8.5.0",
446
+ "eslint-plugin-prettier": "^4.2.1",
447
+ "jest": "^29.0.1",
448
+ "jsarch": "^6.0.0",
449
+ "parse-gitignore": "^1.0.1",
450
+ "prettier": "^2.7.1",
451
+ "rimraf": "^3.0.2",
452
+ "schema2dts": "^4.1.1",
453
+ "ts-node": "^10.8.1",
454
+ "typescript": "^4.8.2"
457
455
  },
458
- \\"eslintConfig\\": {
459
- \\"extends\\": [
460
- \\"eslint:recommended\\",
461
- \\"plugin:prettier/recommended\\",
462
- \\"plugin:@typescript-eslint/eslint-recommended\\",
463
- \\"plugin:@typescript-eslint/recommended\\"
464
- ],
465
- \\"parserOptions\\": {
466
- \\"ecmaVersion\\": 2018,
467
- \\"sourceType\\": \\"script\\",
468
- \\"modules\\": true
456
+ "eslintConfig": {
457
+ "extends": [
458
+ "eslint:recommended",
459
+ "plugin:prettier/recommended",
460
+ "plugin:@typescript-eslint/eslint-recommended",
461
+ "plugin:@typescript-eslint/recommended"
462
+ ],
463
+ "parserOptions": {
464
+ "ecmaVersion": 2018,
465
+ "sourceType": "script",
466
+ "modules": true
469
467
  },
470
- \\"env\\": {
471
- \\"es6\\": true,
472
- \\"node\\": true,
473
- \\"jest\\": true,
474
- \\"mocha\\": true
468
+ "env": {
469
+ "es6": true,
470
+ "node": true,
471
+ "jest": true,
472
+ "mocha": true
475
473
  },
476
- \\"plugins\\": [
477
- \\"prettier\\"
474
+ "plugins": [
475
+ "prettier"
478
476
  ],
479
- \\"rules\\": {
480
- \\"prettier/prettier\\": \\"error\\"
477
+ "rules": {
478
+ "prettier/prettier": "error"
481
479
  },
482
- \\"parser\\": \\"@typescript-eslint/parser\\",
483
- \\"ignorePatterns\\": [
484
- \\"*.d.ts\\"
480
+ "parser": "@typescript-eslint/parser",
481
+ "ignorePatterns": [
482
+ "*.d.ts"
485
483
  ]
486
484
  },
487
- \\"prettier\\": {
488
- \\"semi\\": true,
489
- \\"printWidth\\": 80,
490
- \\"singleQuote\\": true,
491
- \\"trailingComma\\": \\"all\\",
492
- \\"proseWrap\\": \\"always\\"
485
+ "prettier": {
486
+ "semi": true,
487
+ "printWidth": 80,
488
+ "singleQuote": true,
489
+ "trailingComma": "all",
490
+ "proseWrap": "always"
493
491
  },
494
- \\"jest\\": {
495
- \\"coverageReporters\\": [
496
- \\"lcov\\",
497
- \\"html\\"
492
+ "jest": {
493
+ "coverageReporters": [
494
+ "lcov",
495
+ "html"
498
496
  ],
499
- \\"testPathIgnorePatterns\\": [
500
- \\"/node_modules/\\"
497
+ "testPathIgnorePatterns": [
498
+ "/node_modules/"
501
499
  ],
502
- \\"roots\\": [
503
- \\"<rootDir>/src\\"
500
+ "roots": [
501
+ "<rootDir>/src"
504
502
  ],
505
- \\"testEnvironment\\": \\"node\\",
506
- \\"transform\\": {
507
- \\"^.+\\\\\\\\.tsx?$\\": [
508
- \\"esbuild-jest\\",
503
+ "testEnvironment": "node",
504
+ "transform": {
505
+ "^.+\\\\.tsx?$": [
506
+ "esbuild-jest",
509
507
  {
510
- \\"sourcemap\\": true,
511
- \\"format\\": \\"esm\\"
508
+ "sourcemap": true,
509
+ "format": "esm"
512
510
  }
513
511
  ]
514
512
  },
515
- \\"moduleNameMapper\\": {
516
- \\"#(.*)\\": \\"<rootDir>/../../node_modules/$1\\",
517
- \\"(.+)\\\\\\\\.js\\": \\"$1\\"
513
+ "moduleNameMapper": {
514
+ "#(.*)": "<rootDir>/../../node_modules/$1",
515
+ "(.+)\\\\.js": "$1"
518
516
  },
519
- \\"extensionsToTreatAsEsm\\": [
520
- \\".ts\\"
517
+ "extensionsToTreatAsEsm": [
518
+ ".ts"
521
519
  ]
522
520
  }
523
521
  }",
524
522
  ],
525
- Array [
523
+ [
526
524
  "/home/whoiam/projects/yolo/tsconfig.json",
527
525
  "{
528
- \\"compilerOptions\\": {
529
- \\"module\\": \\"Node16\\",
530
- \\"moduleResolution\\": \\"Node16\\",
531
- \\"target\\": \\"es2022\\",
532
- \\"noImplicitAny\\": false,
533
- \\"removeComments\\": false,
534
- \\"preserveConstEnums\\": true,
535
- \\"allowSyntheticDefaultImports\\": true,
536
- \\"esModuleInterop\\": true,
537
- \\"strict\\": true,
538
- \\"declaration\\": true,
539
- \\"outDir\\": \\"dist\\",
540
- \\"sourceMap\\": true
526
+ "compilerOptions": {
527
+ "module": "Node16",
528
+ "moduleResolution": "Node16",
529
+ "target": "es2022",
530
+ "noImplicitAny": false,
531
+ "removeComments": false,
532
+ "preserveConstEnums": true,
533
+ "allowSyntheticDefaultImports": true,
534
+ "esModuleInterop": true,
535
+ "strict": true,
536
+ "declaration": true,
537
+ "outDir": "dist",
538
+ "sourceMap": true
541
539
  },
542
- \\"include\\": [
543
- \\"src/**/*.ts\\"
540
+ "include": [
541
+ "src/**/*.ts"
544
542
  ],
545
- \\"exclude\\": [
546
- \\"node_modules\\"
543
+ "exclude": [
544
+ "node_modules"
547
545
  ]
548
546
  }",
549
547
  ],
550
- Array [
548
+ [
551
549
  "/home/whoiam/projects/yolo/LICENSE",
552
550
  "Copyright Wayne Campbell, all rights reserved.",
553
551
  ],
554
- Array [
552
+ [
555
553
  "/home/whoiam/projects/yolo/.gitignore",
556
554
  "node_modules",
557
555
  ],
@@ -560,126 +558,126 @@ Wayne Campbell
560
558
  `;
561
559
 
562
560
  exports[`initCreateWhook should handle network issues 2`] = `
563
- Object {
564
- "copyCalls": Array [
565
- Array [
561
+ {
562
+ "copyCalls": [
563
+ [
566
564
  "/var/lib/node/node_modules/whook-example",
567
565
  "/home/whoiam/projects/yolo",
568
- Object {
566
+ {
569
567
  "filter": [Function],
570
568
  },
571
569
  ],
572
570
  ],
573
- "execCalls": Array [
574
- Array [
571
+ "execCalls": [
572
+ [
575
573
  "git init",
576
- Object {
574
+ {
577
575
  "cwd": "/home/whoiam/projects/yolo",
578
576
  },
579
577
  [Function],
580
578
  ],
581
- Array [
579
+ [
582
580
  "npm i",
583
- Object {
581
+ {
584
582
  "cwd": "/home/whoiam/projects/yolo",
585
583
  },
586
584
  [Function],
587
585
  ],
588
586
  ],
589
- "logCalls": Array [
590
- Array [
587
+ "logCalls": [
588
+ [
591
589
  "warning",
592
590
  "🏁️ - Starting Whook project's creation!",
593
591
  ],
594
- Array [
592
+ [
595
593
  "debug",
596
- "Discarding \\"/var/lib/node/node_modules/whook-example/package.json\\" => \\"/home/whoiam/projects/yolo/package.json (\\"..\\").",
594
+ "Discarding "/var/lib/node/node_modules/whook-example/package.json" => "/home/whoiam/projects/yolo/package.json ("..").",
597
595
  ],
598
- Array [
596
+ [
599
597
  "debug",
600
- "Discarding \\"/var/lib/node/node_modules/whook-example/package-lock.json\\" => \\"/home/whoiam/projects/yolo/package-lock.json (\\"..\\").",
598
+ "Discarding "/var/lib/node/node_modules/whook-example/package-lock.json" => "/home/whoiam/projects/yolo/package-lock.json ("..").",
601
599
  ],
602
- Array [
600
+ [
603
601
  "debug",
604
- "Discarding \\"/var/lib/node/node_modules/whook-example/LICENSE\\" => \\"/home/whoiam/projects/yolo/LICENSE (\\"..\\").",
602
+ "Discarding "/var/lib/node/node_modules/whook-example/LICENSE" => "/home/whoiam/projects/yolo/LICENSE ("..").",
605
603
  ],
606
- Array [
604
+ [
607
605
  "debug",
608
- "Discarding \\"/var/lib/node/node_modules/whook-example/dist/index.js\\" => \\"/home/whoiam/projects/yolo/dist/index.js (\\"../..\\").",
606
+ "Discarding "/var/lib/node/node_modules/whook-example/dist/index.js" => "/home/whoiam/projects/yolo/dist/index.js ("../..").",
609
607
  ],
610
- Array [
608
+ [
611
609
  "debug",
612
- "Moving \\"/var/lib/node/node_modules/whook-example/src/index.js\\" => \\"/home/whoiam/projects/yolo/src/index.js\\".",
610
+ "Moving "/var/lib/node/node_modules/whook-example/src/index.js" => "/home/whoiam/projects/yolo/src/index.js".",
613
611
  ],
614
- Array [
612
+ [
615
613
  "debug",
616
- "Discarding \\"/var/lib/node/node_modules/whook-example/coverage/index.html\\" => \\"/home/whoiam/projects/yolo/coverage/index.html (\\"../..\\").",
614
+ "Discarding "/var/lib/node/node_modules/whook-example/coverage/index.html" => "/home/whoiam/projects/yolo/coverage/index.html ("../..").",
617
615
  ],
618
- Array [
616
+ [
619
617
  "debug",
620
- "Discarding \\"/var/lib/node/node_modules/whook-example/node_modules/whook/index.js\\" => \\"/home/whoiam/projects/yolo/node_modules/whook/index.js (\\"../../..\\").",
618
+ "Discarding "/var/lib/node/node_modules/whook-example/node_modules/whook/index.js" => "/home/whoiam/projects/yolo/node_modules/whook/index.js ("../../..").",
621
619
  ],
622
- Array [
620
+ [
623
621
  "error",
624
622
  "⚠️ - Could not initialize the git project!",
625
623
  ],
626
- Array [
624
+ [
627
625
  "error",
628
- "⚠️ - Could not retrieve the \`.gitignore\` file contents from: \\"https://www.gitignore.io/api/osx,node,linux\\"",
626
+ "⚠️ - Could not retrieve the \`.gitignore\` file contents from: "https://www.gitignore.io/api/osx,node,linux"",
629
627
  ],
630
- Array [
628
+ [
631
629
  "warning",
632
630
  "✔️ - Project created!",
633
631
  ],
634
- Array [
632
+ [
635
633
  "warning",
636
634
  "➕ - Run \`cd yolo\` to enter the project.",
637
635
  ],
638
- Array [
636
+ [
639
637
  "warning",
640
638
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
641
639
  ],
642
- Array [
640
+ [
643
641
  "warning",
644
642
  "➕ - And finally run \`npm run watch\` to start dev!",
645
643
  ],
646
644
  ],
647
- "oraCalls": Array [
648
- Array [
649
- Object {
645
+ "oraCalls": [
646
+ [
647
+ {
650
648
  "text": "Installing dependencies...",
651
649
  },
652
650
  ],
653
651
  ],
654
- "oraStartCalls": Array [
655
- Array [],
652
+ "oraStartCalls": [
653
+ [],
656
654
  ],
657
- "oraStopAndPersistCalls": Array [
658
- Array [
659
- Object {
655
+ "oraStopAndPersistCalls": [
656
+ [
657
+ {
660
658
  "symbol": "✔️",
661
659
  "text": "Installed dependencies",
662
660
  },
663
661
  ],
664
662
  ],
665
- "readFileCalls": Array [
666
- Array [
663
+ "readFileCalls": [
664
+ [
667
665
  "/var/lib/node/node_modules/whook-example/package.json",
668
666
  ],
669
- Array [
667
+ [
670
668
  "/var/lib/node/node_modules/whook-example/README.md",
671
669
  ],
672
670
  ],
673
- "readdirCalls": Array [
674
- Array [
671
+ "readdirCalls": [
672
+ [
675
673
  "/var/lib/node/node_modules/whook-example/package.json",
676
674
  ],
677
- Array [
675
+ [
678
676
  "/var/lib/node/node_modules/whook-example/README.md",
679
677
  ],
680
678
  ],
681
- "writeFileCalls": Array [
682
- Array [
679
+ "writeFileCalls": [
680
+ [
683
681
  "/home/whoiam/projects/yolo/README.md",
684
682
  "# super-project
685
683
 
@@ -690,198 +688,197 @@ Wayne Campbell
690
688
 
691
689
  ",
692
690
  ],
693
- Array [
691
+ [
694
692
  "/home/whoiam/projects/yolo/.env.development",
695
693
  "JWT_SECRET=oudelali
696
694
  ",
697
695
  ],
698
- Array [
696
+ [
699
697
  "/home/whoiam/projects/yolo/.env.production",
700
698
  "JWT_SECRET=oudelali
701
699
  ",
702
700
  ],
703
- Array [
701
+ [
704
702
  "/home/whoiam/projects/yolo/package.json",
705
703
  "{
706
- \\"name\\": \\"super-project\\",
707
- \\"description\\": \\"A new Whook project\\",
708
- \\"version\\": \\"0.0.0\\",
709
- \\"license\\": \\"SEE LICENSE\\",
710
- \\"engines\\": {
711
- \\"node\\": \\">=16.15.0\\"
704
+ "name": "super-project",
705
+ "description": "A new Whook project",
706
+ "version": "0.0.0",
707
+ "license": "SEE LICENSE",
708
+ "engines": {
709
+ "node": ">=16.15.0"
712
710
  },
713
- \\"main\\": \\"dist/index.js\\",
714
- \\"types\\": \\"dist/index.d.ts\\",
715
- \\"type\\": \\"module\\",
716
- \\"private\\": true,
717
- \\"keywords\\": [
718
- \\"whook\\"
711
+ "main": "dist/index.js",
712
+ "types": "dist/index.d.ts",
713
+ "type": "module",
714
+ "private": true,
715
+ "keywords": [
716
+ "whook"
719
717
  ],
720
- \\"author\\": {
721
- \\"name\\": \\"Wayne Campbell\\",
722
- \\"email\\": \\"wayne@warner.com\\"
718
+ "author": {
719
+ "name": "Wayne Campbell",
720
+ "email": "wayne@warner.com"
723
721
  },
724
- \\"scripts\\": {
725
- \\"apitypes\\": \\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",
726
- \\"architecture\\": \\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",
727
- \\"build\\": \\"rimraf -f 'dist' && tsc --outDir dist\\",
728
- \\"cover\\": \\"npm run jest -- --coverage\\",
729
- \\"debug\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",
730
- \\"dev\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",
731
- \\"genPackagelock\\": \\"npm i --package-lock-only\\",
732
- \\"jest\\": \\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",
733
- \\"lint\\": \\"eslint 'src/**/*.ts'\\",
734
- \\"postbuild\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",
735
- \\"prettier\\": \\"prettier --write 'src/**/*.ts'\\",
736
- \\"start\\": \\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",
737
- \\"test\\": \\"NODE_ENV=test npm run build && npm run jest\\",
738
- \\"watch\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",
739
- \\"whook\\": \\"NODE_ENV=\${NODE_ENV:-development} whook\\",
740
- \\"whook-dev\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",
741
- \\"whook-repl\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"
722
+ "scripts": {
723
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
724
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
725
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
726
+ "cover": "npm run jest -- --coverage",
727
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
728
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
729
+ "genPackagelock": "npm i --package-lock-only",
730
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
731
+ "lint": "eslint 'src/**/*.ts'",
732
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
733
+ "prettier": "prettier --write 'src/**/*.ts'",
734
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
735
+ "test": "NODE_ENV=test npm run build && npm run jest",
736
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
737
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
738
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
739
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
742
740
  },
743
- \\"files\\": [
744
- \\"bin\\",
745
- \\"dist\\",
746
- \\"src\\",
747
- \\"LICENSE\\",
748
- \\"README.md\\",
749
- \\"CHANGELOG.md\\"
741
+ "files": [
742
+ "bin",
743
+ "dist",
744
+ "src",
745
+ "LICENSE",
746
+ "README.md",
747
+ "CHANGELOG.md"
750
748
  ],
751
- \\"dependencies\\": {
752
- \\"@whook/authorization\\": \\"<current_version>\\",
753
- \\"@whook/cli\\": \\"<current_version>\\",
754
- \\"@whook/cors\\": \\"<current_version>\\",
755
- \\"@whook/http-router\\": \\"<current_version>\\",
756
- \\"@whook/http-server\\": \\"^10.0.1\\",
757
- \\"@whook/http-transaction\\": \\"<current_version>\\",
758
- \\"@whook/swagger-ui\\": \\"<current_version>\\",
759
- \\"@whook/whook\\": \\"<current_version>\\",
760
- \\"common-services\\": \\"^11.0.1\\",
761
- \\"http-auth-utils\\": \\"^3.0.3\\",
762
- \\"jwt-service\\": \\"^9.0.1\\",
763
- \\"knifecycle\\": \\"^14.0.0\\",
764
- \\"openapi-schema-validator\\": \\"^12.0.0\\",
765
- \\"openapi-types\\": \\"^12.0.0\\",
766
- \\"strict-qs\\": \\"^7.0.0\\",
767
- \\"type-fest\\": \\"^2.13.1\\",
768
- \\"yerror\\": \\"^6.1.1\\",
769
- \\"yhttperror\\": \\"^6.1.1\\"
749
+ "dependencies": {
750
+ "@whook/authorization": "<current_version>",
751
+ "@whook/cli": "<current_version>",
752
+ "@whook/cors": "<current_version>",
753
+ "@whook/http-router": "<current_version>",
754
+ "@whook/http-server": "^10.0.2",
755
+ "@whook/http-transaction": "<current_version>",
756
+ "@whook/swagger-ui": "<current_version>",
757
+ "@whook/whook": "<current_version>",
758
+ "common-services": "^11.1.0",
759
+ "http-auth-utils": "^3.0.3",
760
+ "jwt-service": "^9.0.2",
761
+ "knifecycle": "^14.1.0",
762
+ "openapi-schema-validator": "^12.0.0",
763
+ "openapi-types": "^12.0.2",
764
+ "strict-qs": "^7.0.0",
765
+ "type-fest": "^2.19.0",
766
+ "yerror": "^6.1.1",
767
+ "yhttperror": "^6.1.1"
770
768
  },
771
- \\"devDependencies\\": {
772
- \\"@types/jest\\": \\"^28.1.1\\",
773
- \\"@typescript-eslint/eslint-plugin\\": \\"^5.27.0\\",
774
- \\"@typescript-eslint/parser\\": \\"^5.27.0\\",
775
- \\"axios\\": \\"^0.27.2\\",
776
- \\"chokidar\\": \\"^3.5.1\\",
777
- \\"esbuild\\": \\"^0.14.46\\",
778
- \\"esbuild-jest\\": \\"^0.5.0\\",
779
- \\"esbuild-node-externals\\": \\"^1.4.1\\",
780
- \\"eslint\\": \\"^8.17.0\\",
781
- \\"eslint-config-prettier\\": \\"^8.5.0\\",
782
- \\"eslint-plugin-prettier\\": \\"^4.0.0\\",
783
- \\"jest\\": \\"^28.1.0\\",
784
- \\"jsarch\\": \\"^5.0.1\\",
785
- \\"parse-gitignore\\": \\"^1.0.1\\",
786
- \\"prettier\\": \\"^2.6.2\\",
787
- \\"rimraf\\": \\"^3.0.2\\",
788
- \\"schema2dts\\": \\"^4.1.1\\",
789
- \\"ts-node\\": \\"^10.8.1\\",
790
- \\"typescript\\": \\"^4.7.3\\"
769
+ "devDependencies": {
770
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
771
+ "@typescript-eslint/parser": "^5.36.0",
772
+ "axios": "^0.27.2",
773
+ "chokidar": "^3.5.1",
774
+ "esbuild": "^0.15.6",
775
+ "esbuild-jest": "^0.5.0",
776
+ "esbuild-node-externals": "^1.5.0",
777
+ "eslint": "^8.23.0",
778
+ "eslint-config-prettier": "^8.5.0",
779
+ "eslint-plugin-prettier": "^4.2.1",
780
+ "jest": "^29.0.1",
781
+ "jsarch": "^6.0.0",
782
+ "parse-gitignore": "^1.0.1",
783
+ "prettier": "^2.7.1",
784
+ "rimraf": "^3.0.2",
785
+ "schema2dts": "^4.1.1",
786
+ "ts-node": "^10.8.1",
787
+ "typescript": "^4.8.2"
791
788
  },
792
- \\"eslintConfig\\": {
793
- \\"extends\\": [
794
- \\"eslint:recommended\\",
795
- \\"plugin:prettier/recommended\\",
796
- \\"plugin:@typescript-eslint/eslint-recommended\\",
797
- \\"plugin:@typescript-eslint/recommended\\"
798
- ],
799
- \\"parserOptions\\": {
800
- \\"ecmaVersion\\": 2018,
801
- \\"sourceType\\": \\"script\\",
802
- \\"modules\\": true
789
+ "eslintConfig": {
790
+ "extends": [
791
+ "eslint:recommended",
792
+ "plugin:prettier/recommended",
793
+ "plugin:@typescript-eslint/eslint-recommended",
794
+ "plugin:@typescript-eslint/recommended"
795
+ ],
796
+ "parserOptions": {
797
+ "ecmaVersion": 2018,
798
+ "sourceType": "script",
799
+ "modules": true
803
800
  },
804
- \\"env\\": {
805
- \\"es6\\": true,
806
- \\"node\\": true,
807
- \\"jest\\": true,
808
- \\"mocha\\": true
801
+ "env": {
802
+ "es6": true,
803
+ "node": true,
804
+ "jest": true,
805
+ "mocha": true
809
806
  },
810
- \\"plugins\\": [
811
- \\"prettier\\"
807
+ "plugins": [
808
+ "prettier"
812
809
  ],
813
- \\"rules\\": {
814
- \\"prettier/prettier\\": \\"error\\"
810
+ "rules": {
811
+ "prettier/prettier": "error"
815
812
  },
816
- \\"parser\\": \\"@typescript-eslint/parser\\",
817
- \\"ignorePatterns\\": [
818
- \\"*.d.ts\\"
813
+ "parser": "@typescript-eslint/parser",
814
+ "ignorePatterns": [
815
+ "*.d.ts"
819
816
  ]
820
817
  },
821
- \\"prettier\\": {
822
- \\"semi\\": true,
823
- \\"printWidth\\": 80,
824
- \\"singleQuote\\": true,
825
- \\"trailingComma\\": \\"all\\",
826
- \\"proseWrap\\": \\"always\\"
818
+ "prettier": {
819
+ "semi": true,
820
+ "printWidth": 80,
821
+ "singleQuote": true,
822
+ "trailingComma": "all",
823
+ "proseWrap": "always"
827
824
  },
828
- \\"jest\\": {
829
- \\"coverageReporters\\": [
830
- \\"lcov\\",
831
- \\"html\\"
825
+ "jest": {
826
+ "coverageReporters": [
827
+ "lcov",
828
+ "html"
832
829
  ],
833
- \\"testPathIgnorePatterns\\": [
834
- \\"/node_modules/\\"
830
+ "testPathIgnorePatterns": [
831
+ "/node_modules/"
835
832
  ],
836
- \\"roots\\": [
837
- \\"<rootDir>/src\\"
833
+ "roots": [
834
+ "<rootDir>/src"
838
835
  ],
839
- \\"testEnvironment\\": \\"node\\",
840
- \\"transform\\": {
841
- \\"^.+\\\\\\\\.tsx?$\\": [
842
- \\"esbuild-jest\\",
836
+ "testEnvironment": "node",
837
+ "transform": {
838
+ "^.+\\\\.tsx?$": [
839
+ "esbuild-jest",
843
840
  {
844
- \\"sourcemap\\": true,
845
- \\"format\\": \\"esm\\"
841
+ "sourcemap": true,
842
+ "format": "esm"
846
843
  }
847
844
  ]
848
845
  },
849
- \\"moduleNameMapper\\": {
850
- \\"#(.*)\\": \\"<rootDir>/../../node_modules/$1\\",
851
- \\"(.+)\\\\\\\\.js\\": \\"$1\\"
846
+ "moduleNameMapper": {
847
+ "#(.*)": "<rootDir>/../../node_modules/$1",
848
+ "(.+)\\\\.js": "$1"
852
849
  },
853
- \\"extensionsToTreatAsEsm\\": [
854
- \\".ts\\"
850
+ "extensionsToTreatAsEsm": [
851
+ ".ts"
855
852
  ]
856
853
  }
857
854
  }",
858
855
  ],
859
- Array [
856
+ [
860
857
  "/home/whoiam/projects/yolo/tsconfig.json",
861
858
  "{
862
- \\"compilerOptions\\": {
863
- \\"module\\": \\"Node16\\",
864
- \\"moduleResolution\\": \\"Node16\\",
865
- \\"target\\": \\"es2022\\",
866
- \\"noImplicitAny\\": false,
867
- \\"removeComments\\": false,
868
- \\"preserveConstEnums\\": true,
869
- \\"allowSyntheticDefaultImports\\": true,
870
- \\"esModuleInterop\\": true,
871
- \\"strict\\": true,
872
- \\"declaration\\": true,
873
- \\"outDir\\": \\"dist\\",
874
- \\"sourceMap\\": true
859
+ "compilerOptions": {
860
+ "module": "Node16",
861
+ "moduleResolution": "Node16",
862
+ "target": "es2022",
863
+ "noImplicitAny": false,
864
+ "removeComments": false,
865
+ "preserveConstEnums": true,
866
+ "allowSyntheticDefaultImports": true,
867
+ "esModuleInterop": true,
868
+ "strict": true,
869
+ "declaration": true,
870
+ "outDir": "dist",
871
+ "sourceMap": true
875
872
  },
876
- \\"include\\": [
877
- \\"src/**/*.ts\\"
873
+ "include": [
874
+ "src/**/*.ts"
878
875
  ],
879
- \\"exclude\\": [
880
- \\"node_modules\\"
876
+ "exclude": [
877
+ "node_modules"
881
878
  ]
882
879
  }",
883
880
  ],
884
- Array [
881
+ [
885
882
  "/home/whoiam/projects/yolo/LICENSE",
886
883
  "Copyright Wayne Campbell, all rights reserved.",
887
884
  ],
@@ -890,118 +887,118 @@ Wayne Campbell
890
887
  `;
891
888
 
892
889
  exports[`initCreateWhook should work 2`] = `
893
- Object {
894
- "copyCalls": Array [
895
- Array [
890
+ {
891
+ "copyCalls": [
892
+ [
896
893
  "/var/lib/node/node_modules/whook-example",
897
894
  "/home/whoiam/projects/yolo",
898
- Object {
895
+ {
899
896
  "filter": [Function],
900
897
  },
901
898
  ],
902
899
  ],
903
- "execCalls": Array [
904
- Array [
900
+ "execCalls": [
901
+ [
905
902
  "git init",
906
- Object {
903
+ {
907
904
  "cwd": "/home/whoiam/projects/yolo",
908
905
  },
909
906
  [Function],
910
907
  ],
911
- Array [
908
+ [
912
909
  "npm i",
913
- Object {
910
+ {
914
911
  "cwd": "/home/whoiam/projects/yolo",
915
912
  },
916
913
  [Function],
917
914
  ],
918
915
  ],
919
- "logCalls": Array [
920
- Array [
916
+ "logCalls": [
917
+ [
921
918
  "warning",
922
919
  "🏁️ - Starting Whook project's creation!",
923
920
  ],
924
- Array [
921
+ [
925
922
  "debug",
926
- "Discarding \\"/var/lib/node/node_modules/whook-example/package.json\\" => \\"/home/whoiam/projects/yolo/package.json (\\"..\\").",
923
+ "Discarding "/var/lib/node/node_modules/whook-example/package.json" => "/home/whoiam/projects/yolo/package.json ("..").",
927
924
  ],
928
- Array [
925
+ [
929
926
  "debug",
930
- "Discarding \\"/var/lib/node/node_modules/whook-example/package-lock.json\\" => \\"/home/whoiam/projects/yolo/package-lock.json (\\"..\\").",
927
+ "Discarding "/var/lib/node/node_modules/whook-example/package-lock.json" => "/home/whoiam/projects/yolo/package-lock.json ("..").",
931
928
  ],
932
- Array [
929
+ [
933
930
  "debug",
934
- "Discarding \\"/var/lib/node/node_modules/whook-example/LICENSE\\" => \\"/home/whoiam/projects/yolo/LICENSE (\\"..\\").",
931
+ "Discarding "/var/lib/node/node_modules/whook-example/LICENSE" => "/home/whoiam/projects/yolo/LICENSE ("..").",
935
932
  ],
936
- Array [
933
+ [
937
934
  "debug",
938
- "Discarding \\"/var/lib/node/node_modules/whook-example/dist/index.js\\" => \\"/home/whoiam/projects/yolo/dist/index.js (\\"../..\\").",
935
+ "Discarding "/var/lib/node/node_modules/whook-example/dist/index.js" => "/home/whoiam/projects/yolo/dist/index.js ("../..").",
939
936
  ],
940
- Array [
937
+ [
941
938
  "debug",
942
- "Moving \\"/var/lib/node/node_modules/whook-example/src/index.js\\" => \\"/home/whoiam/projects/yolo/src/index.js\\".",
939
+ "Moving "/var/lib/node/node_modules/whook-example/src/index.js" => "/home/whoiam/projects/yolo/src/index.js".",
943
940
  ],
944
- Array [
941
+ [
945
942
  "debug",
946
- "Discarding \\"/var/lib/node/node_modules/whook-example/coverage/index.html\\" => \\"/home/whoiam/projects/yolo/coverage/index.html (\\"../..\\").",
943
+ "Discarding "/var/lib/node/node_modules/whook-example/coverage/index.html" => "/home/whoiam/projects/yolo/coverage/index.html ("../..").",
947
944
  ],
948
- Array [
945
+ [
949
946
  "debug",
950
- "Discarding \\"/var/lib/node/node_modules/whook-example/node_modules/whook/index.js\\" => \\"/home/whoiam/projects/yolo/node_modules/whook/index.js (\\"../../..\\").",
947
+ "Discarding "/var/lib/node/node_modules/whook-example/node_modules/whook/index.js" => "/home/whoiam/projects/yolo/node_modules/whook/index.js ("../../..").",
951
948
  ],
952
- Array [
949
+ [
953
950
  "warning",
954
951
  "✔️ - Project created!",
955
952
  ],
956
- Array [
953
+ [
957
954
  "warning",
958
955
  "➕ - Run \`cd yolo\` to enter the project.",
959
956
  ],
960
- Array [
957
+ [
961
958
  "warning",
962
959
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
963
960
  ],
964
- Array [
961
+ [
965
962
  "warning",
966
963
  "➕ - And finally run \`npm run watch\` to start dev!",
967
964
  ],
968
965
  ],
969
- "oraCalls": Array [
970
- Array [
971
- Object {
966
+ "oraCalls": [
967
+ [
968
+ {
972
969
  "text": "Installing dependencies...",
973
970
  },
974
971
  ],
975
972
  ],
976
- "oraStartCalls": Array [
977
- Array [],
973
+ "oraStartCalls": [
974
+ [],
978
975
  ],
979
- "oraStopAndPersistCalls": Array [
980
- Array [
981
- Object {
976
+ "oraStopAndPersistCalls": [
977
+ [
978
+ {
982
979
  "symbol": "✔️",
983
980
  "text": "Installed dependencies",
984
981
  },
985
982
  ],
986
983
  ],
987
- "readFileCalls": Array [
988
- Array [
984
+ "readFileCalls": [
985
+ [
989
986
  "/var/lib/node/node_modules/whook-example/package.json",
990
987
  ],
991
- Array [
988
+ [
992
989
  "/var/lib/node/node_modules/whook-example/README.md",
993
990
  ],
994
991
  ],
995
- "readdirCalls": Array [
996
- Array [
992
+ "readdirCalls": [
993
+ [
997
994
  "/var/lib/node/node_modules/whook-example/package.json",
998
995
  ],
999
- Array [
996
+ [
1000
997
  "/var/lib/node/node_modules/whook-example/README.md",
1001
998
  ],
1002
999
  ],
1003
- "writeFileCalls": Array [
1004
- Array [
1000
+ "writeFileCalls": [
1001
+ [
1005
1002
  "/home/whoiam/projects/yolo/README.md",
1006
1003
  "# super-project
1007
1004
 
@@ -1012,202 +1009,201 @@ Wayne Campbell
1012
1009
 
1013
1010
  ",
1014
1011
  ],
1015
- Array [
1012
+ [
1016
1013
  "/home/whoiam/projects/yolo/.env.development",
1017
1014
  "JWT_SECRET=oudelali
1018
1015
  ",
1019
1016
  ],
1020
- Array [
1017
+ [
1021
1018
  "/home/whoiam/projects/yolo/.env.production",
1022
1019
  "JWT_SECRET=oudelali
1023
1020
  ",
1024
1021
  ],
1025
- Array [
1022
+ [
1026
1023
  "/home/whoiam/projects/yolo/package.json",
1027
1024
  "{
1028
- \\"name\\": \\"super-project\\",
1029
- \\"description\\": \\"A new Whook project\\",
1030
- \\"version\\": \\"0.0.0\\",
1031
- \\"license\\": \\"SEE LICENSE\\",
1032
- \\"engines\\": {
1033
- \\"node\\": \\">=16.15.0\\"
1025
+ "name": "super-project",
1026
+ "description": "A new Whook project",
1027
+ "version": "0.0.0",
1028
+ "license": "SEE LICENSE",
1029
+ "engines": {
1030
+ "node": ">=16.15.0"
1034
1031
  },
1035
- \\"main\\": \\"dist/index.js\\",
1036
- \\"types\\": \\"dist/index.d.ts\\",
1037
- \\"type\\": \\"module\\",
1038
- \\"private\\": true,
1039
- \\"keywords\\": [
1040
- \\"whook\\"
1032
+ "main": "dist/index.js",
1033
+ "types": "dist/index.d.ts",
1034
+ "type": "module",
1035
+ "private": true,
1036
+ "keywords": [
1037
+ "whook"
1041
1038
  ],
1042
- \\"author\\": {
1043
- \\"name\\": \\"Wayne Campbell\\",
1044
- \\"email\\": \\"wayne@warner.com\\"
1039
+ "author": {
1040
+ "name": "Wayne Campbell",
1041
+ "email": "wayne@warner.com"
1045
1042
  },
1046
- \\"scripts\\": {
1047
- \\"apitypes\\": \\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",
1048
- \\"architecture\\": \\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",
1049
- \\"build\\": \\"rimraf -f 'dist' && tsc --outDir dist\\",
1050
- \\"cover\\": \\"npm run jest -- --coverage\\",
1051
- \\"debug\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",
1052
- \\"dev\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",
1053
- \\"genPackagelock\\": \\"npm i --package-lock-only\\",
1054
- \\"jest\\": \\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",
1055
- \\"lint\\": \\"eslint 'src/**/*.ts'\\",
1056
- \\"postbuild\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",
1057
- \\"prettier\\": \\"prettier --write 'src/**/*.ts'\\",
1058
- \\"start\\": \\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",
1059
- \\"test\\": \\"NODE_ENV=test npm run build && npm run jest\\",
1060
- \\"watch\\": \\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",
1061
- \\"whook\\": \\"NODE_ENV=\${NODE_ENV:-development} whook\\",
1062
- \\"whook-dev\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",
1063
- \\"whook-repl\\": \\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"
1043
+ "scripts": {
1044
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
1045
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
1046
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
1047
+ "cover": "npm run jest -- --coverage",
1048
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
1049
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
1050
+ "genPackagelock": "npm i --package-lock-only",
1051
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
1052
+ "lint": "eslint 'src/**/*.ts'",
1053
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
1054
+ "prettier": "prettier --write 'src/**/*.ts'",
1055
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
1056
+ "test": "NODE_ENV=test npm run build && npm run jest",
1057
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
1058
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
1059
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
1060
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
1064
1061
  },
1065
- \\"files\\": [
1066
- \\"bin\\",
1067
- \\"dist\\",
1068
- \\"src\\",
1069
- \\"LICENSE\\",
1070
- \\"README.md\\",
1071
- \\"CHANGELOG.md\\"
1062
+ "files": [
1063
+ "bin",
1064
+ "dist",
1065
+ "src",
1066
+ "LICENSE",
1067
+ "README.md",
1068
+ "CHANGELOG.md"
1072
1069
  ],
1073
- \\"dependencies\\": {
1074
- \\"@whook/authorization\\": \\"<current_version>\\",
1075
- \\"@whook/cli\\": \\"<current_version>\\",
1076
- \\"@whook/cors\\": \\"<current_version>\\",
1077
- \\"@whook/http-router\\": \\"<current_version>\\",
1078
- \\"@whook/http-server\\": \\"^10.0.1\\",
1079
- \\"@whook/http-transaction\\": \\"<current_version>\\",
1080
- \\"@whook/swagger-ui\\": \\"<current_version>\\",
1081
- \\"@whook/whook\\": \\"<current_version>\\",
1082
- \\"common-services\\": \\"^11.0.1\\",
1083
- \\"http-auth-utils\\": \\"^3.0.3\\",
1084
- \\"jwt-service\\": \\"^9.0.1\\",
1085
- \\"knifecycle\\": \\"^14.0.0\\",
1086
- \\"openapi-schema-validator\\": \\"^12.0.0\\",
1087
- \\"openapi-types\\": \\"^12.0.0\\",
1088
- \\"strict-qs\\": \\"^7.0.0\\",
1089
- \\"type-fest\\": \\"^2.13.1\\",
1090
- \\"yerror\\": \\"^6.1.1\\",
1091
- \\"yhttperror\\": \\"^6.1.1\\"
1070
+ "dependencies": {
1071
+ "@whook/authorization": "<current_version>",
1072
+ "@whook/cli": "<current_version>",
1073
+ "@whook/cors": "<current_version>",
1074
+ "@whook/http-router": "<current_version>",
1075
+ "@whook/http-server": "^10.0.2",
1076
+ "@whook/http-transaction": "<current_version>",
1077
+ "@whook/swagger-ui": "<current_version>",
1078
+ "@whook/whook": "<current_version>",
1079
+ "common-services": "^11.1.0",
1080
+ "http-auth-utils": "^3.0.3",
1081
+ "jwt-service": "^9.0.2",
1082
+ "knifecycle": "^14.1.0",
1083
+ "openapi-schema-validator": "^12.0.0",
1084
+ "openapi-types": "^12.0.2",
1085
+ "strict-qs": "^7.0.0",
1086
+ "type-fest": "^2.19.0",
1087
+ "yerror": "^6.1.1",
1088
+ "yhttperror": "^6.1.1"
1092
1089
  },
1093
- \\"devDependencies\\": {
1094
- \\"@types/jest\\": \\"^28.1.1\\",
1095
- \\"@typescript-eslint/eslint-plugin\\": \\"^5.27.0\\",
1096
- \\"@typescript-eslint/parser\\": \\"^5.27.0\\",
1097
- \\"axios\\": \\"^0.27.2\\",
1098
- \\"chokidar\\": \\"^3.5.1\\",
1099
- \\"esbuild\\": \\"^0.14.46\\",
1100
- \\"esbuild-jest\\": \\"^0.5.0\\",
1101
- \\"esbuild-node-externals\\": \\"^1.4.1\\",
1102
- \\"eslint\\": \\"^8.17.0\\",
1103
- \\"eslint-config-prettier\\": \\"^8.5.0\\",
1104
- \\"eslint-plugin-prettier\\": \\"^4.0.0\\",
1105
- \\"jest\\": \\"^28.1.0\\",
1106
- \\"jsarch\\": \\"^5.0.1\\",
1107
- \\"parse-gitignore\\": \\"^1.0.1\\",
1108
- \\"prettier\\": \\"^2.6.2\\",
1109
- \\"rimraf\\": \\"^3.0.2\\",
1110
- \\"schema2dts\\": \\"^4.1.1\\",
1111
- \\"ts-node\\": \\"^10.8.1\\",
1112
- \\"typescript\\": \\"^4.7.3\\"
1090
+ "devDependencies": {
1091
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
1092
+ "@typescript-eslint/parser": "^5.36.0",
1093
+ "axios": "^0.27.2",
1094
+ "chokidar": "^3.5.1",
1095
+ "esbuild": "^0.15.6",
1096
+ "esbuild-jest": "^0.5.0",
1097
+ "esbuild-node-externals": "^1.5.0",
1098
+ "eslint": "^8.23.0",
1099
+ "eslint-config-prettier": "^8.5.0",
1100
+ "eslint-plugin-prettier": "^4.2.1",
1101
+ "jest": "^29.0.1",
1102
+ "jsarch": "^6.0.0",
1103
+ "parse-gitignore": "^1.0.1",
1104
+ "prettier": "^2.7.1",
1105
+ "rimraf": "^3.0.2",
1106
+ "schema2dts": "^4.1.1",
1107
+ "ts-node": "^10.8.1",
1108
+ "typescript": "^4.8.2"
1113
1109
  },
1114
- \\"eslintConfig\\": {
1115
- \\"extends\\": [
1116
- \\"eslint:recommended\\",
1117
- \\"plugin:prettier/recommended\\",
1118
- \\"plugin:@typescript-eslint/eslint-recommended\\",
1119
- \\"plugin:@typescript-eslint/recommended\\"
1120
- ],
1121
- \\"parserOptions\\": {
1122
- \\"ecmaVersion\\": 2018,
1123
- \\"sourceType\\": \\"script\\",
1124
- \\"modules\\": true
1110
+ "eslintConfig": {
1111
+ "extends": [
1112
+ "eslint:recommended",
1113
+ "plugin:prettier/recommended",
1114
+ "plugin:@typescript-eslint/eslint-recommended",
1115
+ "plugin:@typescript-eslint/recommended"
1116
+ ],
1117
+ "parserOptions": {
1118
+ "ecmaVersion": 2018,
1119
+ "sourceType": "script",
1120
+ "modules": true
1125
1121
  },
1126
- \\"env\\": {
1127
- \\"es6\\": true,
1128
- \\"node\\": true,
1129
- \\"jest\\": true,
1130
- \\"mocha\\": true
1122
+ "env": {
1123
+ "es6": true,
1124
+ "node": true,
1125
+ "jest": true,
1126
+ "mocha": true
1131
1127
  },
1132
- \\"plugins\\": [
1133
- \\"prettier\\"
1128
+ "plugins": [
1129
+ "prettier"
1134
1130
  ],
1135
- \\"rules\\": {
1136
- \\"prettier/prettier\\": \\"error\\"
1131
+ "rules": {
1132
+ "prettier/prettier": "error"
1137
1133
  },
1138
- \\"parser\\": \\"@typescript-eslint/parser\\",
1139
- \\"ignorePatterns\\": [
1140
- \\"*.d.ts\\"
1134
+ "parser": "@typescript-eslint/parser",
1135
+ "ignorePatterns": [
1136
+ "*.d.ts"
1141
1137
  ]
1142
1138
  },
1143
- \\"prettier\\": {
1144
- \\"semi\\": true,
1145
- \\"printWidth\\": 80,
1146
- \\"singleQuote\\": true,
1147
- \\"trailingComma\\": \\"all\\",
1148
- \\"proseWrap\\": \\"always\\"
1139
+ "prettier": {
1140
+ "semi": true,
1141
+ "printWidth": 80,
1142
+ "singleQuote": true,
1143
+ "trailingComma": "all",
1144
+ "proseWrap": "always"
1149
1145
  },
1150
- \\"jest\\": {
1151
- \\"coverageReporters\\": [
1152
- \\"lcov\\",
1153
- \\"html\\"
1146
+ "jest": {
1147
+ "coverageReporters": [
1148
+ "lcov",
1149
+ "html"
1154
1150
  ],
1155
- \\"testPathIgnorePatterns\\": [
1156
- \\"/node_modules/\\"
1151
+ "testPathIgnorePatterns": [
1152
+ "/node_modules/"
1157
1153
  ],
1158
- \\"roots\\": [
1159
- \\"<rootDir>/src\\"
1154
+ "roots": [
1155
+ "<rootDir>/src"
1160
1156
  ],
1161
- \\"testEnvironment\\": \\"node\\",
1162
- \\"transform\\": {
1163
- \\"^.+\\\\\\\\.tsx?$\\": [
1164
- \\"esbuild-jest\\",
1157
+ "testEnvironment": "node",
1158
+ "transform": {
1159
+ "^.+\\\\.tsx?$": [
1160
+ "esbuild-jest",
1165
1161
  {
1166
- \\"sourcemap\\": true,
1167
- \\"format\\": \\"esm\\"
1162
+ "sourcemap": true,
1163
+ "format": "esm"
1168
1164
  }
1169
1165
  ]
1170
1166
  },
1171
- \\"moduleNameMapper\\": {
1172
- \\"#(.*)\\": \\"<rootDir>/../../node_modules/$1\\",
1173
- \\"(.+)\\\\\\\\.js\\": \\"$1\\"
1167
+ "moduleNameMapper": {
1168
+ "#(.*)": "<rootDir>/../../node_modules/$1",
1169
+ "(.+)\\\\.js": "$1"
1174
1170
  },
1175
- \\"extensionsToTreatAsEsm\\": [
1176
- \\".ts\\"
1171
+ "extensionsToTreatAsEsm": [
1172
+ ".ts"
1177
1173
  ]
1178
1174
  }
1179
1175
  }",
1180
1176
  ],
1181
- Array [
1177
+ [
1182
1178
  "/home/whoiam/projects/yolo/tsconfig.json",
1183
1179
  "{
1184
- \\"compilerOptions\\": {
1185
- \\"module\\": \\"Node16\\",
1186
- \\"moduleResolution\\": \\"Node16\\",
1187
- \\"target\\": \\"es2022\\",
1188
- \\"noImplicitAny\\": false,
1189
- \\"removeComments\\": false,
1190
- \\"preserveConstEnums\\": true,
1191
- \\"allowSyntheticDefaultImports\\": true,
1192
- \\"esModuleInterop\\": true,
1193
- \\"strict\\": true,
1194
- \\"declaration\\": true,
1195
- \\"outDir\\": \\"dist\\",
1196
- \\"sourceMap\\": true
1180
+ "compilerOptions": {
1181
+ "module": "Node16",
1182
+ "moduleResolution": "Node16",
1183
+ "target": "es2022",
1184
+ "noImplicitAny": false,
1185
+ "removeComments": false,
1186
+ "preserveConstEnums": true,
1187
+ "allowSyntheticDefaultImports": true,
1188
+ "esModuleInterop": true,
1189
+ "strict": true,
1190
+ "declaration": true,
1191
+ "outDir": "dist",
1192
+ "sourceMap": true
1197
1193
  },
1198
- \\"include\\": [
1199
- \\"src/**/*.ts\\"
1194
+ "include": [
1195
+ "src/**/*.ts"
1200
1196
  ],
1201
- \\"exclude\\": [
1202
- \\"node_modules\\"
1197
+ "exclude": [
1198
+ "node_modules"
1203
1199
  ]
1204
1200
  }",
1205
1201
  ],
1206
- Array [
1202
+ [
1207
1203
  "/home/whoiam/projects/yolo/LICENSE",
1208
1204
  "Copyright Wayne Campbell, all rights reserved.",
1209
1205
  ],
1210
- Array [
1206
+ [
1211
1207
  "/home/whoiam/projects/yolo/.gitignore",
1212
1208
  "node_modules",
1213
1209
  ],