@effect-app/infra 0.133.0-next.50 → 0.133.0-next.51

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 (40) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/_cjs/api/http.cjs +39 -0
  3. package/_cjs/api/http.cjs.map +1 -0
  4. package/_cjs/api/routing/base.cjs +169 -0
  5. package/_cjs/api/routing/base.cjs.map +1 -0
  6. package/_cjs/api/routing/defaultErrorHandler.cjs +50 -0
  7. package/_cjs/api/routing/defaultErrorHandler.cjs.map +1 -0
  8. package/_cjs/api/routing/makeRequestHandler.cjs +134 -0
  9. package/_cjs/api/routing/makeRequestHandler.cjs.map +1 -0
  10. package/_cjs/api/routing/match.cjs +45 -0
  11. package/_cjs/api/routing/match.cjs.map +1 -0
  12. package/_cjs/api/routing.cjs +50 -0
  13. package/_cjs/api/routing.cjs.map +1 -0
  14. package/_src/api/http.ts +25 -0
  15. package/_src/api/routing/base.ts +476 -0
  16. package/_src/api/routing/defaultErrorHandler.ts +83 -0
  17. package/_src/api/routing/makeRequestHandler.ts +278 -0
  18. package/_src/api/routing/match.ts +119 -0
  19. package/_src/api/routing.ts +11 -0
  20. package/dist/api/http.d.ts +15 -0
  21. package/dist/api/http.d.ts.map +1 -0
  22. package/dist/api/http.js +11 -0
  23. package/dist/api/routing/base.d.ts +117 -0
  24. package/dist/api/routing/base.d.ts.map +1 -0
  25. package/dist/api/routing/base.js +137 -0
  26. package/dist/api/routing/defaultErrorHandler.d.ts +16 -0
  27. package/dist/api/routing/defaultErrorHandler.d.ts.map +1 -0
  28. package/dist/api/routing/defaultErrorHandler.js +42 -0
  29. package/dist/api/routing/makeRequestHandler.d.ts +20 -0
  30. package/dist/api/routing/makeRequestHandler.d.ts.map +1 -0
  31. package/dist/api/routing/makeRequestHandler.js +121 -0
  32. package/dist/api/routing/match.d.ts +12 -0
  33. package/dist/api/routing/match.d.ts.map +1 -0
  34. package/dist/api/routing/match.js +31 -0
  35. package/dist/api/routing.d.ts +5 -0
  36. package/dist/api/routing.d.ts.map +1 -0
  37. package/dist/api/routing.js +8 -0
  38. package/dist/services/Repository.d.ts +2 -2
  39. package/dist/services/Repository.d.ts.map +1 -1
  40. package/package.json +66 -4
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.133.0-next.50",
3
+ "version": "0.133.0-next.51",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@azure/cosmos": "^4.0.0",
8
8
  "@azure/service-bus": "^7.9.3",
9
+ "@effect/platform": "^0.40.1",
9
10
  "@effect/schema": "npm:@effect-app/schema-fork@0.0.0-20231228152439",
10
- "effect": "^2.0.1",
11
+ "express-oauth2-jwt-bearer": "^1.6.0",
11
12
  "@faker-js/faker": "^8.3.1",
12
13
  "@sendgrid/helpers": "^8.0.0",
13
14
  "@sendgrid/mail": "^8.1.0",
14
15
  "change-case": "^5.3.0",
15
16
  "cross-fetch": "^4.0.0",
17
+ "effect": "^2.0.1",
16
18
  "fast-check": "~3.15.0",
17
19
  "object-hash": "^3.0.0",
18
20
  "path-parser": "^6.1.0",
@@ -21,8 +23,8 @@
21
23
  "redlock": "^4.2.0",
22
24
  "@effect-app/core": "0.97.0-next.7",
23
25
  "@effect-app/infra-adapters": "0.85.0-next.42",
24
- "@effect-app/prelude": "0.107.0-next.42",
25
- "@effect-app/schema": "0.150.0-next.27"
26
+ "@effect-app/schema": "0.150.0-next.27",
27
+ "@effect-app/prelude": "0.107.0-next.42"
26
28
  },
27
29
  "devDependencies": {
28
30
  "@babel/cli": "^7.23.4",
@@ -153,6 +155,16 @@
153
155
  "default": "./_cjs/api/express/schema/routing.cjs"
154
156
  }
155
157
  },
158
+ "./api/http": {
159
+ "import": {
160
+ "types": "./dist/api/http.d.ts",
161
+ "default": "./dist/api/http.js"
162
+ },
163
+ "require": {
164
+ "types": "./dist/api/http.d.ts",
165
+ "default": "./_cjs/api/http.cjs"
166
+ }
167
+ },
156
168
  "./api/reportError": {
157
169
  "import": {
158
170
  "types": "./dist/api/reportError.d.ts",
@@ -163,6 +175,56 @@
163
175
  "default": "./_cjs/api/reportError.cjs"
164
176
  }
165
177
  },
178
+ "./api/routing": {
179
+ "import": {
180
+ "types": "./dist/api/routing.d.ts",
181
+ "default": "./dist/api/routing.js"
182
+ },
183
+ "require": {
184
+ "types": "./dist/api/routing.d.ts",
185
+ "default": "./_cjs/api/routing.cjs"
186
+ }
187
+ },
188
+ "./api/routing/base": {
189
+ "import": {
190
+ "types": "./dist/api/routing/base.d.ts",
191
+ "default": "./dist/api/routing/base.js"
192
+ },
193
+ "require": {
194
+ "types": "./dist/api/routing/base.d.ts",
195
+ "default": "./_cjs/api/routing/base.cjs"
196
+ }
197
+ },
198
+ "./api/routing/defaultErrorHandler": {
199
+ "import": {
200
+ "types": "./dist/api/routing/defaultErrorHandler.d.ts",
201
+ "default": "./dist/api/routing/defaultErrorHandler.js"
202
+ },
203
+ "require": {
204
+ "types": "./dist/api/routing/defaultErrorHandler.d.ts",
205
+ "default": "./_cjs/api/routing/defaultErrorHandler.cjs"
206
+ }
207
+ },
208
+ "./api/routing/makeRequestHandler": {
209
+ "import": {
210
+ "types": "./dist/api/routing/makeRequestHandler.d.ts",
211
+ "default": "./dist/api/routing/makeRequestHandler.js"
212
+ },
213
+ "require": {
214
+ "types": "./dist/api/routing/makeRequestHandler.d.ts",
215
+ "default": "./_cjs/api/routing/makeRequestHandler.cjs"
216
+ }
217
+ },
218
+ "./api/routing/match": {
219
+ "import": {
220
+ "types": "./dist/api/routing/match.d.ts",
221
+ "default": "./dist/api/routing/match.js"
222
+ },
223
+ "require": {
224
+ "types": "./dist/api/routing/match.d.ts",
225
+ "default": "./_cjs/api/routing/match.cjs"
226
+ }
227
+ },
166
228
  "./api/setupRequest": {
167
229
  "import": {
168
230
  "types": "./dist/api/setupRequest.d.ts",