@whook/create 20.1.2 → 21.0.1

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.
@@ -121,130 +121,139 @@ describe('initCreateWhook', () => {
121
121
  expect(JSON.parse(outputFile.mock.calls
122
122
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
123
123
  ?.toString() || '')).toMatchInlineSnapshot(`
124
- {
125
- "author": {
126
- "email": "wayne@warner.com",
127
- "name": "Wayne Campbell",
128
- },
129
- "dependencies": {
130
- "@whook/authorization": "<current_version>",
131
- "@whook/cors": "<current_version>",
132
- "@whook/http-router": "<current_version>",
133
- "@whook/http-server": "<current_version>",
134
- "@whook/http-transaction": "<current_version>",
135
- "@whook/swagger-ui": "<current_version>",
136
- "@whook/whook": "<current_version>",
137
- "application-services": "^7.0.4",
138
- "common-services": "^17.1.2",
139
- "http-auth-utils": "^6.0.1",
140
- "jwt-service": "^11.0.3",
141
- "knifecycle": "^19.1.3",
142
- "strict-qs": "^8.0.3",
143
- "type-fest": "^5.1.0",
144
- "ya-json-schema-types": "^1.0.1",
145
- "ya-open-api-types": "1.2.2",
146
- "yerror": "^8.0.0",
147
- "yhttperror": "^8.1.0",
148
- },
149
- "description": "A new Whook project",
150
- "devDependencies": {
151
- "@eslint/js": "^9.30.1",
152
- "@swc/cli": "^0.7.8",
153
- "@swc/core": "^1.12.11",
154
- "@swc/helpers": "^0.5.17",
155
- "@swc/jest": "^0.2.39",
156
- "axios": "^1.12.2",
157
- "esbuild-node-externals": "^1.15.0",
158
- "eslint": "^9.30.1",
159
- "eslint-config-prettier": "^10.1.5",
160
- "eslint-plugin-jest": "^29.0.1",
161
- "eslint-plugin-prettier": "^5.5.1",
162
- "jest": "^30.0.4",
163
- "jsarch": "^6.2.1",
164
- "prettier": "^3.6.2",
165
- "rimraf": "^6.0.1",
166
- "schema2dts": "^8.1.1",
167
- "streamtest": "^3.0.1",
168
- "tsx": "^4.7.1",
169
- "typescript": "^5.8.3",
170
- "typescript-eslint": "^8.36.0",
171
- },
172
- "engines": {
173
- "node": ">=22.16.0",
174
- },
175
- "files": [
176
- "bin",
177
- "dist",
178
- "src",
179
- "LICENSE",
180
- "README.md",
181
- "CHANGELOG.md",
182
- ],
183
- "jest": {
184
- "coverageReporters": [
185
- "lcov",
186
- "html",
187
- ],
188
- "extensionsToTreatAsEsm": [
189
- ".ts",
190
- ],
191
- "moduleNameMapper": {
192
- "#(.*)": "<rootDir>/../../node_modules/$1",
193
- "(.+)\\.js": "$1",
194
- },
195
- "prettierPath": null,
196
- "roots": [
197
- "<rootDir>/src",
198
- ],
199
- "testEnvironment": "node",
200
- "testPathIgnorePatterns": [
201
- "/node_modules/",
202
- ],
203
- "transform": {
204
- "^.+\\.tsx?$": [
205
- "@swc/jest",
206
- {},
207
- ],
208
- },
209
- },
210
- "keywords": [
211
- "whook",
212
- ],
213
- "license": "SEE LICENSE",
214
- "main": "dist/index.js",
215
- "name": "super-project",
216
- "prettier": {
217
- "printWidth": 80,
218
- "proseWrap": "always",
219
- "semi": true,
220
- "singleQuote": true,
221
- "trailingComma": "all",
222
- },
223
- "private": true,
224
- "scripts": {
225
- "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
226
- "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
227
- "build": "rimraf 'dist' && tsc --outDir dist",
228
- "cover": "node --run jest -- --coverage",
229
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
230
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
231
- "format": "node --run prettier",
232
- "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
233
- "lint": "eslint 'src/**/*.ts'",
234
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
235
- "prettier": "prettier --write 'src/**/*.ts'",
236
- "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
237
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
238
- "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
239
- "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
240
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
241
- "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
242
- },
243
- "type": "module",
244
- "types": "dist/index.d.ts",
245
- "version": "0.0.0",
246
- }
247
- `);
124
+ {
125
+ "author": {
126
+ "email": "wayne@warner.com",
127
+ "name": "Wayne Campbell",
128
+ },
129
+ "dependencies": {
130
+ "@whook/authorization": "<current_version>",
131
+ "@whook/cors": "<current_version>",
132
+ "@whook/http-router": "<current_version>",
133
+ "@whook/http-server": "<current_version>",
134
+ "@whook/http-transaction": "<current_version>",
135
+ "@whook/swagger-ui": "<current_version>",
136
+ "@whook/whook": "<current_version>",
137
+ "application-services": "^8.0.1",
138
+ "common-services": "^18.0.1",
139
+ "http-auth-utils": "^7.0.0",
140
+ "jwt-service": "^12.0.0",
141
+ "knifecycle": "^20.0.0",
142
+ "strict-qs": "^9.0.0",
143
+ "type-fest": "^5.5.0",
144
+ "ya-json-schema-types": "^2.0.1",
145
+ "ya-open-api-types": "^2.1.1",
146
+ "yerror": "^9.1.1",
147
+ "yhttperror": "^9.0.1",
148
+ },
149
+ "description": "A new Whook project",
150
+ "devDependencies": {
151
+ "@eslint/js": "^10.0.1",
152
+ "@swc/cli": "^0.8.0",
153
+ "@swc/core": "^1.15.21",
154
+ "@swc/jest": "^0.2.39",
155
+ "axios": "^1.13.6",
156
+ "esbuild-node-externals": "^1.20.1",
157
+ "eslint": "^10.1.0",
158
+ "eslint-config-prettier": "^10.1.8",
159
+ "eslint-plugin-jest": "^29.15.1",
160
+ "eslint-plugin-prettier": "^5.5.5",
161
+ "jest": "^30.3.0",
162
+ "jsarch": "^7.0.0",
163
+ "prettier": "^3.8.1",
164
+ "rimraf": "^6.1.3",
165
+ "schema2dts": "^9.0.0",
166
+ "streamtest": "^4.0.0",
167
+ "tsx": "^4.21.0",
168
+ "typescript": "^6.0.2",
169
+ "typescript-eslint": "^8.57.2",
170
+ },
171
+ "engines": {
172
+ "node": ">=24.14.0",
173
+ },
174
+ "files": [
175
+ "bin",
176
+ "dist",
177
+ "src",
178
+ "LICENSE",
179
+ "README.md",
180
+ "CHANGELOG.md",
181
+ ],
182
+ "jest": {
183
+ "coverageReporters": [
184
+ "lcov",
185
+ "html",
186
+ ],
187
+ "extensionsToTreatAsEsm": [
188
+ ".ts",
189
+ ],
190
+ "moduleNameMapper": {
191
+ "#(.*)": "<rootDir>/../../node_modules/$1",
192
+ "(.+)\\.js": "$1",
193
+ },
194
+ "roots": [
195
+ "<rootDir>/src",
196
+ ],
197
+ "testEnvironment": "node",
198
+ "testPathIgnorePatterns": [
199
+ "/node_modules/",
200
+ ],
201
+ "transform": {
202
+ "^.+\\.tsx?$": [
203
+ "@swc/jest",
204
+ {},
205
+ ],
206
+ },
207
+ },
208
+ "keywords": [
209
+ "whook",
210
+ ],
211
+ "license": "SEE LICENSE",
212
+ "main": "dist/index.js",
213
+ "name": "super-project",
214
+ "overrides": {
215
+ "@typescript-eslint/eslint-plugin": {
216
+ "typescript": "^6",
217
+ },
218
+ "@typescript-eslint/parser": {
219
+ "typescript": "^6",
220
+ },
221
+ "typescript-eslint": {
222
+ "typescript": "^6",
223
+ },
224
+ },
225
+ "prettier": {
226
+ "printWidth": 80,
227
+ "proseWrap": "always",
228
+ "semi": true,
229
+ "singleQuote": true,
230
+ "trailingComma": "all",
231
+ },
232
+ "private": true,
233
+ "scripts": {
234
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
235
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
236
+ "build": "rimraf 'dist' && tsc --outDir dist",
237
+ "cover": "node --run jest -- --coverage",
238
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
239
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
240
+ "format": "node --run prettier",
241
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
242
+ "lint": "eslint 'src/**/*.ts'",
243
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
244
+ "prettier": "prettier --write 'src/**/*.ts'",
245
+ "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
246
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
247
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
248
+ "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
249
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
250
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
251
+ },
252
+ "type": "module",
253
+ "types": "dist/index.d.ts",
254
+ "version": "0.0.0",
255
+ }
256
+ `);
248
257
  expect({
249
258
  copyCalls: copy.mock.calls,
250
259
  outputFileCalls: outputFile.mock.calls,
@@ -292,130 +301,139 @@ describe('initCreateWhook', () => {
292
301
  expect(JSON.parse(outputFile.mock.calls
293
302
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
294
303
  ?.toString() || '')).toMatchInlineSnapshot(`
295
- {
296
- "author": {
297
- "email": "wayne@warner.com",
298
- "name": "Wayne Campbell",
299
- },
300
- "dependencies": {
301
- "@whook/authorization": "<current_version>",
302
- "@whook/cors": "<current_version>",
303
- "@whook/http-router": "<current_version>",
304
- "@whook/http-server": "<current_version>",
305
- "@whook/http-transaction": "<current_version>",
306
- "@whook/swagger-ui": "<current_version>",
307
- "@whook/whook": "<current_version>",
308
- "application-services": "^7.0.4",
309
- "common-services": "^17.1.2",
310
- "http-auth-utils": "^6.0.1",
311
- "jwt-service": "^11.0.3",
312
- "knifecycle": "^19.1.3",
313
- "strict-qs": "^8.0.3",
314
- "type-fest": "^5.1.0",
315
- "ya-json-schema-types": "^1.0.1",
316
- "ya-open-api-types": "1.2.2",
317
- "yerror": "^8.0.0",
318
- "yhttperror": "^8.1.0",
319
- },
320
- "description": "A new Whook project",
321
- "devDependencies": {
322
- "@eslint/js": "^9.30.1",
323
- "@swc/cli": "^0.7.8",
324
- "@swc/core": "^1.12.11",
325
- "@swc/helpers": "^0.5.17",
326
- "@swc/jest": "^0.2.39",
327
- "axios": "^1.12.2",
328
- "esbuild-node-externals": "^1.15.0",
329
- "eslint": "^9.30.1",
330
- "eslint-config-prettier": "^10.1.5",
331
- "eslint-plugin-jest": "^29.0.1",
332
- "eslint-plugin-prettier": "^5.5.1",
333
- "jest": "^30.0.4",
334
- "jsarch": "^6.2.1",
335
- "prettier": "^3.6.2",
336
- "rimraf": "^6.0.1",
337
- "schema2dts": "^8.1.1",
338
- "streamtest": "^3.0.1",
339
- "tsx": "^4.7.1",
340
- "typescript": "^5.8.3",
341
- "typescript-eslint": "^8.36.0",
342
- },
343
- "engines": {
344
- "node": ">=22.16.0",
345
- },
346
- "files": [
347
- "bin",
348
- "dist",
349
- "src",
350
- "LICENSE",
351
- "README.md",
352
- "CHANGELOG.md",
353
- ],
354
- "jest": {
355
- "coverageReporters": [
356
- "lcov",
357
- "html",
358
- ],
359
- "extensionsToTreatAsEsm": [
360
- ".ts",
361
- ],
362
- "moduleNameMapper": {
363
- "#(.*)": "<rootDir>/../../node_modules/$1",
364
- "(.+)\\.js": "$1",
365
- },
366
- "prettierPath": null,
367
- "roots": [
368
- "<rootDir>/src",
369
- ],
370
- "testEnvironment": "node",
371
- "testPathIgnorePatterns": [
372
- "/node_modules/",
373
- ],
374
- "transform": {
375
- "^.+\\.tsx?$": [
376
- "@swc/jest",
377
- {},
378
- ],
379
- },
380
- },
381
- "keywords": [
382
- "whook",
383
- ],
384
- "license": "SEE LICENSE",
385
- "main": "dist/index.js",
386
- "name": "super-project",
387
- "prettier": {
388
- "printWidth": 80,
389
- "proseWrap": "always",
390
- "semi": true,
391
- "singleQuote": true,
392
- "trailingComma": "all",
393
- },
394
- "private": true,
395
- "scripts": {
396
- "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
397
- "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
398
- "build": "rimraf 'dist' && tsc --outDir dist",
399
- "cover": "node --run jest -- --coverage",
400
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
401
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
402
- "format": "node --run prettier",
403
- "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
404
- "lint": "eslint 'src/**/*.ts'",
405
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
406
- "prettier": "prettier --write 'src/**/*.ts'",
407
- "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
408
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
409
- "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
410
- "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
411
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
412
- "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
413
- },
414
- "type": "module",
415
- "types": "dist/index.d.ts",
416
- "version": "0.0.0",
417
- }
418
- `);
304
+ {
305
+ "author": {
306
+ "email": "wayne@warner.com",
307
+ "name": "Wayne Campbell",
308
+ },
309
+ "dependencies": {
310
+ "@whook/authorization": "<current_version>",
311
+ "@whook/cors": "<current_version>",
312
+ "@whook/http-router": "<current_version>",
313
+ "@whook/http-server": "<current_version>",
314
+ "@whook/http-transaction": "<current_version>",
315
+ "@whook/swagger-ui": "<current_version>",
316
+ "@whook/whook": "<current_version>",
317
+ "application-services": "^8.0.1",
318
+ "common-services": "^18.0.1",
319
+ "http-auth-utils": "^7.0.0",
320
+ "jwt-service": "^12.0.0",
321
+ "knifecycle": "^20.0.0",
322
+ "strict-qs": "^9.0.0",
323
+ "type-fest": "^5.5.0",
324
+ "ya-json-schema-types": "^2.0.1",
325
+ "ya-open-api-types": "^2.1.1",
326
+ "yerror": "^9.1.1",
327
+ "yhttperror": "^9.0.1",
328
+ },
329
+ "description": "A new Whook project",
330
+ "devDependencies": {
331
+ "@eslint/js": "^10.0.1",
332
+ "@swc/cli": "^0.8.0",
333
+ "@swc/core": "^1.15.21",
334
+ "@swc/jest": "^0.2.39",
335
+ "axios": "^1.13.6",
336
+ "esbuild-node-externals": "^1.20.1",
337
+ "eslint": "^10.1.0",
338
+ "eslint-config-prettier": "^10.1.8",
339
+ "eslint-plugin-jest": "^29.15.1",
340
+ "eslint-plugin-prettier": "^5.5.5",
341
+ "jest": "^30.3.0",
342
+ "jsarch": "^7.0.0",
343
+ "prettier": "^3.8.1",
344
+ "rimraf": "^6.1.3",
345
+ "schema2dts": "^9.0.0",
346
+ "streamtest": "^4.0.0",
347
+ "tsx": "^4.21.0",
348
+ "typescript": "^6.0.2",
349
+ "typescript-eslint": "^8.57.2",
350
+ },
351
+ "engines": {
352
+ "node": ">=24.14.0",
353
+ },
354
+ "files": [
355
+ "bin",
356
+ "dist",
357
+ "src",
358
+ "LICENSE",
359
+ "README.md",
360
+ "CHANGELOG.md",
361
+ ],
362
+ "jest": {
363
+ "coverageReporters": [
364
+ "lcov",
365
+ "html",
366
+ ],
367
+ "extensionsToTreatAsEsm": [
368
+ ".ts",
369
+ ],
370
+ "moduleNameMapper": {
371
+ "#(.*)": "<rootDir>/../../node_modules/$1",
372
+ "(.+)\\.js": "$1",
373
+ },
374
+ "roots": [
375
+ "<rootDir>/src",
376
+ ],
377
+ "testEnvironment": "node",
378
+ "testPathIgnorePatterns": [
379
+ "/node_modules/",
380
+ ],
381
+ "transform": {
382
+ "^.+\\.tsx?$": [
383
+ "@swc/jest",
384
+ {},
385
+ ],
386
+ },
387
+ },
388
+ "keywords": [
389
+ "whook",
390
+ ],
391
+ "license": "SEE LICENSE",
392
+ "main": "dist/index.js",
393
+ "name": "super-project",
394
+ "overrides": {
395
+ "@typescript-eslint/eslint-plugin": {
396
+ "typescript": "^6",
397
+ },
398
+ "@typescript-eslint/parser": {
399
+ "typescript": "^6",
400
+ },
401
+ "typescript-eslint": {
402
+ "typescript": "^6",
403
+ },
404
+ },
405
+ "prettier": {
406
+ "printWidth": 80,
407
+ "proseWrap": "always",
408
+ "semi": true,
409
+ "singleQuote": true,
410
+ "trailingComma": "all",
411
+ },
412
+ "private": true,
413
+ "scripts": {
414
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
415
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
416
+ "build": "rimraf 'dist' && tsc --outDir dist",
417
+ "cover": "node --run jest -- --coverage",
418
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
419
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
420
+ "format": "node --run prettier",
421
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
422
+ "lint": "eslint 'src/**/*.ts'",
423
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
424
+ "prettier": "prettier --write 'src/**/*.ts'",
425
+ "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
426
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
427
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
428
+ "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
429
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
430
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
431
+ },
432
+ "type": "module",
433
+ "types": "dist/index.d.ts",
434
+ "version": "0.0.0",
435
+ }
436
+ `);
419
437
  expect({
420
438
  copyCalls: copy.mock.calls,
421
439
  outputFileCalls: outputFile.mock.calls,
@@ -457,130 +475,139 @@ describe('initCreateWhook', () => {
457
475
  expect(JSON.parse(outputFile.mock.calls
458
476
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
459
477
  ?.toString() || '')).toMatchInlineSnapshot(`
460
- {
461
- "author": {
462
- "email": "wayne@warner.com",
463
- "name": "Wayne Campbell",
464
- },
465
- "dependencies": {
466
- "@whook/authorization": "<current_version>",
467
- "@whook/cors": "<current_version>",
468
- "@whook/http-router": "<current_version>",
469
- "@whook/http-server": "<current_version>",
470
- "@whook/http-transaction": "<current_version>",
471
- "@whook/swagger-ui": "<current_version>",
472
- "@whook/whook": "<current_version>",
473
- "application-services": "^7.0.4",
474
- "common-services": "^17.1.2",
475
- "http-auth-utils": "^6.0.1",
476
- "jwt-service": "^11.0.3",
477
- "knifecycle": "^19.1.3",
478
- "strict-qs": "^8.0.3",
479
- "type-fest": "^5.1.0",
480
- "ya-json-schema-types": "^1.0.1",
481
- "ya-open-api-types": "1.2.2",
482
- "yerror": "^8.0.0",
483
- "yhttperror": "^8.1.0",
484
- },
485
- "description": "A new Whook project",
486
- "devDependencies": {
487
- "@eslint/js": "^9.30.1",
488
- "@swc/cli": "^0.7.8",
489
- "@swc/core": "^1.12.11",
490
- "@swc/helpers": "^0.5.17",
491
- "@swc/jest": "^0.2.39",
492
- "axios": "^1.12.2",
493
- "esbuild-node-externals": "^1.15.0",
494
- "eslint": "^9.30.1",
495
- "eslint-config-prettier": "^10.1.5",
496
- "eslint-plugin-jest": "^29.0.1",
497
- "eslint-plugin-prettier": "^5.5.1",
498
- "jest": "^30.0.4",
499
- "jsarch": "^6.2.1",
500
- "prettier": "^3.6.2",
501
- "rimraf": "^6.0.1",
502
- "schema2dts": "^8.1.1",
503
- "streamtest": "^3.0.1",
504
- "tsx": "^4.7.1",
505
- "typescript": "^5.8.3",
506
- "typescript-eslint": "^8.36.0",
507
- },
508
- "engines": {
509
- "node": ">=22.16.0",
510
- },
511
- "files": [
512
- "bin",
513
- "dist",
514
- "src",
515
- "LICENSE",
516
- "README.md",
517
- "CHANGELOG.md",
518
- ],
519
- "jest": {
520
- "coverageReporters": [
521
- "lcov",
522
- "html",
523
- ],
524
- "extensionsToTreatAsEsm": [
525
- ".ts",
526
- ],
527
- "moduleNameMapper": {
528
- "#(.*)": "<rootDir>/../../node_modules/$1",
529
- "(.+)\\.js": "$1",
530
- },
531
- "prettierPath": null,
532
- "roots": [
533
- "<rootDir>/src",
534
- ],
535
- "testEnvironment": "node",
536
- "testPathIgnorePatterns": [
537
- "/node_modules/",
538
- ],
539
- "transform": {
540
- "^.+\\.tsx?$": [
541
- "@swc/jest",
542
- {},
543
- ],
544
- },
545
- },
546
- "keywords": [
547
- "whook",
548
- ],
549
- "license": "SEE LICENSE",
550
- "main": "dist/index.js",
551
- "name": "super-project",
552
- "prettier": {
553
- "printWidth": 80,
554
- "proseWrap": "always",
555
- "semi": true,
556
- "singleQuote": true,
557
- "trailingComma": "all",
558
- },
559
- "private": true,
560
- "scripts": {
561
- "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
562
- "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
563
- "build": "rimraf 'dist' && tsc --outDir dist",
564
- "cover": "node --run jest -- --coverage",
565
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
566
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
567
- "format": "node --run prettier",
568
- "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
569
- "lint": "eslint 'src/**/*.ts'",
570
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
571
- "prettier": "prettier --write 'src/**/*.ts'",
572
- "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
573
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
574
- "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
575
- "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
576
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
577
- "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
578
- },
579
- "type": "module",
580
- "types": "dist/index.d.ts",
581
- "version": "0.0.0",
582
- }
583
- `);
478
+ {
479
+ "author": {
480
+ "email": "wayne@warner.com",
481
+ "name": "Wayne Campbell",
482
+ },
483
+ "dependencies": {
484
+ "@whook/authorization": "<current_version>",
485
+ "@whook/cors": "<current_version>",
486
+ "@whook/http-router": "<current_version>",
487
+ "@whook/http-server": "<current_version>",
488
+ "@whook/http-transaction": "<current_version>",
489
+ "@whook/swagger-ui": "<current_version>",
490
+ "@whook/whook": "<current_version>",
491
+ "application-services": "^8.0.1",
492
+ "common-services": "^18.0.1",
493
+ "http-auth-utils": "^7.0.0",
494
+ "jwt-service": "^12.0.0",
495
+ "knifecycle": "^20.0.0",
496
+ "strict-qs": "^9.0.0",
497
+ "type-fest": "^5.5.0",
498
+ "ya-json-schema-types": "^2.0.1",
499
+ "ya-open-api-types": "^2.1.1",
500
+ "yerror": "^9.1.1",
501
+ "yhttperror": "^9.0.1",
502
+ },
503
+ "description": "A new Whook project",
504
+ "devDependencies": {
505
+ "@eslint/js": "^10.0.1",
506
+ "@swc/cli": "^0.8.0",
507
+ "@swc/core": "^1.15.21",
508
+ "@swc/jest": "^0.2.39",
509
+ "axios": "^1.13.6",
510
+ "esbuild-node-externals": "^1.20.1",
511
+ "eslint": "^10.1.0",
512
+ "eslint-config-prettier": "^10.1.8",
513
+ "eslint-plugin-jest": "^29.15.1",
514
+ "eslint-plugin-prettier": "^5.5.5",
515
+ "jest": "^30.3.0",
516
+ "jsarch": "^7.0.0",
517
+ "prettier": "^3.8.1",
518
+ "rimraf": "^6.1.3",
519
+ "schema2dts": "^9.0.0",
520
+ "streamtest": "^4.0.0",
521
+ "tsx": "^4.21.0",
522
+ "typescript": "^6.0.2",
523
+ "typescript-eslint": "^8.57.2",
524
+ },
525
+ "engines": {
526
+ "node": ">=24.14.0",
527
+ },
528
+ "files": [
529
+ "bin",
530
+ "dist",
531
+ "src",
532
+ "LICENSE",
533
+ "README.md",
534
+ "CHANGELOG.md",
535
+ ],
536
+ "jest": {
537
+ "coverageReporters": [
538
+ "lcov",
539
+ "html",
540
+ ],
541
+ "extensionsToTreatAsEsm": [
542
+ ".ts",
543
+ ],
544
+ "moduleNameMapper": {
545
+ "#(.*)": "<rootDir>/../../node_modules/$1",
546
+ "(.+)\\.js": "$1",
547
+ },
548
+ "roots": [
549
+ "<rootDir>/src",
550
+ ],
551
+ "testEnvironment": "node",
552
+ "testPathIgnorePatterns": [
553
+ "/node_modules/",
554
+ ],
555
+ "transform": {
556
+ "^.+\\.tsx?$": [
557
+ "@swc/jest",
558
+ {},
559
+ ],
560
+ },
561
+ },
562
+ "keywords": [
563
+ "whook",
564
+ ],
565
+ "license": "SEE LICENSE",
566
+ "main": "dist/index.js",
567
+ "name": "super-project",
568
+ "overrides": {
569
+ "@typescript-eslint/eslint-plugin": {
570
+ "typescript": "^6",
571
+ },
572
+ "@typescript-eslint/parser": {
573
+ "typescript": "^6",
574
+ },
575
+ "typescript-eslint": {
576
+ "typescript": "^6",
577
+ },
578
+ },
579
+ "prettier": {
580
+ "printWidth": 80,
581
+ "proseWrap": "always",
582
+ "semi": true,
583
+ "singleQuote": true,
584
+ "trailingComma": "all",
585
+ },
586
+ "private": true,
587
+ "scripts": {
588
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
589
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
590
+ "build": "rimraf 'dist' && tsc --outDir dist",
591
+ "cover": "node --run jest -- --coverage",
592
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
593
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
594
+ "format": "node --run prettier",
595
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
596
+ "lint": "eslint 'src/**/*.ts'",
597
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
598
+ "prettier": "prettier --write 'src/**/*.ts'",
599
+ "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
600
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
601
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
602
+ "test": "NODE_ENV=test npm run build && node --run jest && node --run jest",
603
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
604
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
605
+ },
606
+ "type": "module",
607
+ "types": "dist/index.d.ts",
608
+ "version": "0.0.0",
609
+ }
610
+ `);
584
611
  expect({
585
612
  copyCalls: copy.mock.calls,
586
613
  outputFileCalls: outputFile.mock.calls,
@@ -625,12 +652,12 @@ describe('initCreateWhook', () => {
625
652
  catch (err) {
626
653
  expect({
627
654
  errorCode: err.code,
628
- errorParams: err.params,
655
+ errorDebugValues: err.debugValues,
629
656
  }).toMatchInlineSnapshot(`
630
- {
631
- "errorCode": "E_ACCESS",
632
- "errorParams": [],
633
- }
657
+ {
658
+ "errorCode": "E_ACCESS",
659
+ "errorDebugValues": [],
660
+ }
634
661
  `);
635
662
  expect({
636
663
  copyCalls: copy.mock.calls,