@openapi-typescript-infra/service 6.1.3 → 6.2.0

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.
Files changed (87) hide show
  1. package/.yarn/patches/confit-npm-3.0.0-eade8c7ce1.patch +52 -0
  2. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  3. package/.yarn/releases/yarn-3.2.3.cjs +783 -0
  4. package/.yarnrc.yml +7 -0
  5. package/__tests__/config.test.ts +53 -0
  6. package/__tests__/fake-serv/api/fake-serv.yaml +48 -0
  7. package/__tests__/fake-serv/config/config.json +13 -0
  8. package/__tests__/fake-serv/src/handlers/hello.ts +17 -0
  9. package/__tests__/fake-serv/src/index.ts +36 -0
  10. package/__tests__/fake-serv/src/routes/error.ts +16 -0
  11. package/__tests__/fake-serv/src/routes/index.ts +19 -0
  12. package/__tests__/fake-serv/src/routes/other/world.ts +7 -0
  13. package/__tests__/fake-serv.test.ts +119 -0
  14. package/__tests__/vitest.test-setup.ts +15 -0
  15. package/build/bin/start-service.js +1 -1
  16. package/build/bin/start-service.js.map +1 -1
  17. package/build/bootstrap.d.ts +1 -1
  18. package/build/bootstrap.js +0 -2
  19. package/build/bootstrap.js.map +1 -1
  20. package/build/config/index.d.ts +1 -1
  21. package/build/config/index.js +1 -1
  22. package/build/config/index.js.map +1 -1
  23. package/build/config/schema.d.ts +1 -1
  24. package/build/config/schema.js +0 -1
  25. package/build/config/shortstops.d.ts +17 -2
  26. package/build/config/shortstops.js.map +1 -1
  27. package/build/config/validation.d.ts +1 -1
  28. package/build/development/port-finder.js +0 -1
  29. package/build/development/port-finder.js.map +1 -1
  30. package/build/development/repl.d.ts +2 -2
  31. package/build/development/repl.js +11 -8
  32. package/build/development/repl.js.map +1 -1
  33. package/build/env.js +1 -0
  34. package/build/env.js.map +1 -1
  35. package/build/error.d.ts +1 -1
  36. package/build/express-app/app.d.ts +1 -1
  37. package/build/express-app/app.js +8 -9
  38. package/build/express-app/app.js.map +1 -1
  39. package/build/express-app/internal-server.d.ts +2 -2
  40. package/build/express-app/route-loader.d.ts +1 -1
  41. package/build/express-app/types.d.ts +1 -1
  42. package/build/express-app/types.js +0 -1
  43. package/build/hook.d.ts +1 -1
  44. package/build/openapi.d.ts +2 -2
  45. package/build/openapi.js +1 -0
  46. package/build/openapi.js.map +1 -1
  47. package/build/telemetry/DummyExporter.d.ts +1 -1
  48. package/build/telemetry/DummyExporter.js.map +1 -1
  49. package/build/telemetry/index.js +1 -2
  50. package/build/telemetry/index.js.map +1 -1
  51. package/build/telemetry/instrumentations.d.ts +4 -2
  52. package/build/telemetry/instrumentations.js +1 -1
  53. package/build/telemetry/instrumentations.js.map +1 -1
  54. package/build/telemetry/requestLogger.d.ts +3 -3
  55. package/build/telemetry/requestLogger.js.map +1 -1
  56. package/build/types.d.ts +6 -6
  57. package/build/types.js +0 -1
  58. package/package.json +31 -30
  59. package/src/bin/start-service.ts +1 -1
  60. package/src/bootstrap.ts +6 -6
  61. package/src/config/index.ts +2 -7
  62. package/src/config/schema.ts +1 -1
  63. package/src/config/shortstops.ts +3 -3
  64. package/src/config/validation.ts +1 -1
  65. package/src/development/port-finder.ts +0 -1
  66. package/src/development/repl.ts +14 -10
  67. package/src/env.ts +1 -0
  68. package/src/error.ts +1 -1
  69. package/src/express-app/app.ts +11 -12
  70. package/src/express-app/internal-server.ts +2 -2
  71. package/src/express-app/route-loader.ts +1 -1
  72. package/src/express-app/types.ts +1 -1
  73. package/src/hook.ts +1 -1
  74. package/src/openapi.ts +4 -3
  75. package/src/telemetry/DummyExporter.ts +2 -1
  76. package/src/telemetry/index.ts +2 -3
  77. package/src/telemetry/instrumentations.ts +5 -6
  78. package/src/telemetry/requestLogger.ts +7 -7
  79. package/src/types.ts +6 -6
  80. package/.commitlintrc.json +0 -5
  81. package/.eslintignore +0 -11
  82. package/.eslintrc.cjs +0 -14
  83. package/.prettierrc.cjs +0 -14
  84. package/build/tsconfig.build.tsbuildinfo +0 -1
  85. package/tsconfig.build.json +0 -11
  86. package/tsconfig.json +0 -35
  87. package/vitest.config.ts +0 -19
package/vitest.config.ts DELETED
@@ -1,19 +0,0 @@
1
- /**
2
- * This file is generated by coconfig. Do not edit it directly.
3
- * Instead, edit the coconfig.js or coconfig.ts file in your project root.
4
- *
5
- * See https://github.com/gas-buddy/coconfig for more information.
6
- * @version coconfig@1.6.2
7
- */
8
- import cjs from '@openapi-typescript-infra/coconfig';
9
- import * as esmToCjs from '@openapi-typescript-infra/coconfig';
10
-
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- const configModule: any = cjs || esmToCjs;
13
-
14
- const configItem = configModule.default || configModule.config || configModule;
15
- const { configuration } = configItem && configItem['vitest.config.ts'];
16
- const resolved = typeof configuration === 'function' ? configuration() : configuration;
17
-
18
- // eslint-disable-next-line import/no-default-export
19
- export default resolved;