@effect/platform 0.18.7 → 0.19.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 (155) hide show
  1. package/Command/dist/effect-platform-Command.cjs.dev.js +419 -26
  2. package/Command/dist/effect-platform-Command.cjs.prod.js +419 -26
  3. package/Command/dist/effect-platform-Command.esm.js +382 -9
  4. package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.dev.js +72 -7
  5. package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.prod.js +72 -7
  6. package/CommandExecutor/dist/effect-platform-CommandExecutor.esm.js +71 -2
  7. package/Effectify/dist/effect-platform-Effectify.cjs.dev.js +55 -3
  8. package/Effectify/dist/effect-platform-Effectify.cjs.prod.js +55 -3
  9. package/Effectify/dist/effect-platform-Effectify.esm.js +38 -2
  10. package/Error/dist/effect-platform-Error.cjs.dev.js +87 -5
  11. package/Error/dist/effect-platform-Error.cjs.prod.js +87 -5
  12. package/Error/dist/effect-platform-Error.esm.js +68 -2
  13. package/FileSystem/dist/effect-platform-FileSystem.cjs.dev.js +287 -20
  14. package/FileSystem/dist/effect-platform-FileSystem.cjs.prod.js +287 -20
  15. package/FileSystem/dist/effect-platform-FileSystem.esm.js +256 -9
  16. package/Http/App/dist/effect-platform-Http-App.cjs.dev.js +15 -0
  17. package/Http/App/dist/effect-platform-Http-App.cjs.mjs +6 -1
  18. package/Http/App/dist/effect-platform-Http-App.cjs.prod.js +15 -0
  19. package/Http/App/dist/effect-platform-Http-App.esm.js +6 -1
  20. package/Http/Body/dist/effect-platform-Http-Body.cjs.dev.js +4 -4
  21. package/Http/Body/dist/effect-platform-Http-Body.cjs.prod.js +4 -4
  22. package/Http/Body/dist/effect-platform-Http-Body.esm.js +4 -4
  23. package/Http/Client/dist/effect-platform-Http-Client.cjs.dev.js +6 -6
  24. package/Http/Client/dist/effect-platform-Http-Client.cjs.prod.js +6 -6
  25. package/Http/Client/dist/effect-platform-Http-Client.esm.js +6 -6
  26. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.dev.js +5 -5
  27. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.prod.js +5 -5
  28. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js +5 -5
  29. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.dev.js +4 -4
  30. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.prod.js +4 -4
  31. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +4 -4
  32. package/Http/FormData/dist/effect-platform-Http-FormData.cjs.dev.js +3 -3
  33. package/Http/FormData/dist/effect-platform-Http-FormData.cjs.prod.js +3 -3
  34. package/Http/FormData/dist/effect-platform-Http-FormData.esm.js +3 -3
  35. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js +2 -2
  36. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.prod.js +2 -2
  37. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js +2 -2
  38. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.dev.js +11 -11
  39. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.mjs +0 -1
  40. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.prod.js +11 -11
  41. package/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +11 -10
  42. package/Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js +3 -3
  43. package/Http/Platform/dist/effect-platform-Http-Platform.cjs.prod.js +3 -3
  44. package/Http/Platform/dist/effect-platform-Http-Platform.esm.js +2 -2
  45. package/Http/Router/dist/effect-platform-Http-Router.cjs.dev.js +5 -5
  46. package/Http/Router/dist/effect-platform-Http-Router.cjs.prod.js +5 -5
  47. package/Http/Router/dist/effect-platform-Http-Router.esm.js +5 -5
  48. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.dev.js +4 -4
  49. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.prod.js +4 -4
  50. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +4 -4
  51. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.dev.js +4 -4
  52. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.prod.js +4 -4
  53. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +4 -4
  54. package/HttpClient/dist/effect-platform-HttpClient.cjs.dev.js +9 -9
  55. package/HttpClient/dist/effect-platform-HttpClient.cjs.prod.js +9 -9
  56. package/HttpClient/dist/effect-platform-HttpClient.esm.js +9 -9
  57. package/HttpServer/dist/effect-platform-HttpServer.cjs.dev.js +15 -15
  58. package/HttpServer/dist/effect-platform-HttpServer.cjs.prod.js +15 -15
  59. package/HttpServer/dist/effect-platform-HttpServer.esm.js +15 -15
  60. package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.dev.js +227 -18
  61. package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.prod.js +227 -18
  62. package/KeyValueStore/dist/effect-platform-KeyValueStore.esm.js +199 -10
  63. package/Path/dist/effect-platform-Path.cjs.dev.js +142 -9
  64. package/Path/dist/effect-platform-Path.cjs.prod.js +142 -9
  65. package/Path/dist/effect-platform-Path.esm.js +122 -7
  66. package/Runtime/dist/effect-platform-Runtime.cjs.dev.js +44 -4
  67. package/Runtime/dist/effect-platform-Runtime.cjs.prod.js +44 -4
  68. package/Runtime/dist/effect-platform-Runtime.esm.js +26 -3
  69. package/dist/App-18152f12.cjs.dev.js +93 -0
  70. package/dist/App-1ca51fa7.esm.js +65 -0
  71. package/dist/App-d8b904fa.cjs.prod.js +93 -0
  72. package/dist/{Body-ec1353f9.esm.js → Body-40ced606.esm.js} +1 -1
  73. package/dist/{Body-86ef2922.cjs.dev.js → Body-4a7ad057.cjs.dev.js} +1 -1
  74. package/dist/{Body-b77eac75.cjs.prod.js → Body-c26fa93f.cjs.prod.js} +1 -1
  75. package/dist/{Client-537f76ae.cjs.prod.js → Client-03fea3d9.cjs.prod.js} +3 -3
  76. package/dist/{Client-cdbd4ff7.esm.js → Client-55ef15d5.esm.js} +3 -3
  77. package/dist/{Client-0fbb38ab.cjs.dev.js → Client-c05eadcd.cjs.dev.js} +3 -3
  78. package/dist/{ClientRequest-fc429335.esm.js → ClientRequest-490c76cd.esm.js} +1 -1
  79. package/dist/{ClientRequest-750d8d59.cjs.prod.js → ClientRequest-a729f345.cjs.prod.js} +1 -1
  80. package/dist/{ClientRequest-00e89da8.cjs.dev.js → ClientRequest-c5336a28.cjs.dev.js} +1 -1
  81. package/dist/{ClientResponse-7e4fe7b5.esm.js → ClientResponse-6e84da40.esm.js} +1 -1
  82. package/dist/{ClientResponse-f9f19afb.cjs.prod.js → ClientResponse-c19fd519.cjs.prod.js} +1 -1
  83. package/dist/{ClientResponse-75423399.cjs.dev.js → ClientResponse-df62564e.cjs.dev.js} +1 -1
  84. package/dist/{FormData-ee0b1cf2.cjs.dev.js → FormData-6d030595.cjs.prod.js} +1 -1
  85. package/dist/{FormData-902afd18.cjs.prod.js → FormData-7ea13198.cjs.dev.js} +1 -1
  86. package/dist/{FormData-f54de878.esm.js → FormData-bd727d2f.esm.js} +1 -1
  87. package/dist/{Middleware-f9a073d7.cjs.prod.js → Middleware-6de1c21d.cjs.prod.js} +14 -20
  88. package/dist/{Middleware-e2edf820.cjs.dev.js → Middleware-b1d126b4.cjs.dev.js} +14 -20
  89. package/dist/{Middleware-240f91f6.esm.js → Middleware-d38ef616.esm.js} +15 -20
  90. package/dist/{Router-bf32317a.esm.js → Router-2ee665b4.esm.js} +2 -2
  91. package/dist/{Router-bd2b3014.cjs.dev.js → Router-43e62bd9.cjs.dev.js} +2 -2
  92. package/dist/{Router-6c80a4c9.cjs.prod.js → Router-53ec1aea.cjs.prod.js} +2 -2
  93. package/dist/{ServerRequest-03161edc.esm.js → ServerRequest-a641c507.esm.js} +1 -1
  94. package/dist/{ServerRequest-8d9c2c6b.cjs.dev.js → ServerRequest-cb289dae.cjs.dev.js} +1 -1
  95. package/dist/{ServerRequest-938f3ed0.cjs.prod.js → ServerRequest-ec4da01b.cjs.prod.js} +1 -1
  96. package/dist/{ServerResponse-93038062.esm.js → ServerResponse-03c252ea.esm.js} +2 -2
  97. package/dist/{ServerResponse-b63b7192.cjs.dev.js → ServerResponse-9af42ecb.cjs.dev.js} +2 -2
  98. package/dist/{ServerResponse-eae85b08.cjs.prod.js → ServerResponse-db87bde2.cjs.prod.js} +2 -2
  99. package/dist/{body-33521da5.cjs.prod.js → body-95276637.cjs.prod.js} +3 -3
  100. package/dist/{body-c7d7a944.cjs.dev.js → body-cea7c1c9.cjs.dev.js} +3 -3
  101. package/dist/{body-20d78ec1.esm.js → body-db8cfb3d.esm.js} +1 -1
  102. package/dist/{clientRequest-3e72ec54.cjs.prod.js → clientRequest-539df396.cjs.prod.js} +1 -1
  103. package/dist/{clientRequest-1e9e0b0d.esm.js → clientRequest-6121a7f6.esm.js} +1 -1
  104. package/dist/{clientRequest-423fd562.cjs.dev.js → clientRequest-dae0c34e.cjs.dev.js} +1 -1
  105. package/dist/declarations/src/Http/App.d.ts +28 -1
  106. package/dist/declarations/src/Http/App.d.ts.map +1 -1
  107. package/dist/declarations/src/Http/Middleware.d.ts +0 -5
  108. package/dist/declarations/src/Http/Middleware.d.ts.map +1 -1
  109. package/dist/declarations/src/index.d.ts.map +1 -1
  110. package/dist/effect-platform.cjs.dev.js +49 -68
  111. package/dist/effect-platform.cjs.prod.js +49 -68
  112. package/dist/effect-platform.esm.js +20 -58
  113. package/package.json +8 -5
  114. package/src/Http/App.ts +76 -3
  115. package/src/Http/Middleware.ts +0 -6
  116. package/src/index.ts +10 -10
  117. package/src/internal/http/middleware.ts +21 -19
  118. package/src/internal/http/router.ts +1 -1
  119. package/src/internal/http/serverResponse.ts +1 -1
  120. package/dist/App-0916639a.cjs.prod.js +0 -7
  121. package/dist/App-44aa3275.cjs.dev.js +0 -7
  122. package/dist/App-687366d8.esm.js +0 -5
  123. package/dist/Command-032c414c.cjs.dev.js +0 -446
  124. package/dist/Command-25ef5e94.cjs.prod.js +0 -446
  125. package/dist/Command-d8ab0c8d.esm.js +0 -403
  126. package/dist/CommandExecutor-158ea1d3.cjs.dev.js +0 -87
  127. package/dist/CommandExecutor-5807b66b.esm.js +0 -80
  128. package/dist/CommandExecutor-7fcae408.cjs.prod.js +0 -87
  129. package/dist/Effectify-2d8c3af9.cjs.dev.js +0 -66
  130. package/dist/Effectify-38757ba5.cjs.prod.js +0 -66
  131. package/dist/Effectify-e5a9d266.esm.js +0 -43
  132. package/dist/Error-09496a70.cjs.dev.js +0 -100
  133. package/dist/Error-2c4e6ce2.cjs.prod.js +0 -100
  134. package/dist/Error-3099667c.esm.js +0 -75
  135. package/dist/FileSystem-3d439a05.cjs.prod.js +0 -308
  136. package/dist/FileSystem-4c7daaf0.cjs.dev.js +0 -308
  137. package/dist/FileSystem-7e31dccd.esm.js +0 -271
  138. package/dist/HttpClient-44d9df26.cjs.prod.js +0 -26
  139. package/dist/HttpClient-5179b5b7.esm.js +0 -24
  140. package/dist/HttpClient-6782fcab.cjs.dev.js +0 -26
  141. package/dist/HttpServer-16159c3a.cjs.dev.js +0 -32
  142. package/dist/HttpServer-50f8df76.esm.js +0 -30
  143. package/dist/HttpServer-93c0fbb3.cjs.prod.js +0 -32
  144. package/dist/KeyValueStore-2f9a70bf.esm.js +0 -210
  145. package/dist/KeyValueStore-f6c5b981.cjs.prod.js +0 -244
  146. package/dist/KeyValueStore-f9c93610.cjs.dev.js +0 -244
  147. package/dist/Path-3574641f.cjs.prod.js +0 -154
  148. package/dist/Path-46f84ba7.esm.js +0 -128
  149. package/dist/Path-7ba7e370.cjs.dev.js +0 -154
  150. package/dist/Runtime-1edd577a.cjs.dev.js +0 -55
  151. package/dist/Runtime-515efccf.cjs.prod.js +0 -55
  152. package/dist/Runtime-7265fb98.esm.js +0 -31
  153. /package/dist/{clientResponse-47df36b8.esm.js → clientResponse-0ace0007.esm.js} +0 -0
  154. /package/dist/{clientResponse-2e4c45a9.cjs.dev.js → clientResponse-43bb73b9.cjs.dev.js} +0 -0
  155. /package/dist/{clientResponse-4d53f425.cjs.prod.js → clientResponse-82dae5d8.cjs.prod.js} +0 -0
@@ -2,10 +2,11 @@
2
2
 
3
3
  var Effect = require('effect/Effect');
4
4
  var Function = require('effect/Function');
5
+ var Http_App_dist_effectPlatformHttpApp = require('./App-18152f12.cjs.dev.js');
5
6
  var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-f56bc667.cjs.dev.js');
6
7
  var Http_IncomingMessage_dist_effectPlatformHttpIncomingMessage = require('../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js');
7
- var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-8d9c2c6b.cjs.dev.js');
8
- var Http_ServerResponse_dist_effectPlatformHttpServerResponse = require('./ServerResponse-b63b7192.cjs.dev.js');
8
+ var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-cb289dae.cjs.dev.js');
9
+ var Http_ServerResponse_dist_effectPlatformHttpServerResponse = require('./ServerResponse-9af42ecb.cjs.dev.js');
9
10
 
10
11
  function _interopNamespace(e) {
11
12
  if (e && e.__esModule) return e;
@@ -45,16 +46,17 @@ const logger$1 = /*#__PURE__*/make$1(httpApp => {
45
46
  });
46
47
 
47
48
  /** @internal */
48
- const tracer$1 = /*#__PURE__*/make$1(httpApp => Effect__namespace.flatMap(Http_ServerRequest_dist_effectPlatformHttpServerRequest.ServerRequest$1, request => Effect__namespace.flatMap(Effect__namespace.orElseSucceed(Http_IncomingMessage_dist_effectPlatformHttpIncomingMessage.schemaExternalSpan(request), () => undefined), parent => Effect__namespace.withSpan(Effect__namespace.tap(httpApp, response => Effect__namespace.annotateCurrentSpan("http.status", response.status)), `http ${request.method}`, {
49
- attributes: {
50
- "http.method": request.method,
51
- "http.url": request.url
52
- },
53
- parent
54
- }))));
55
-
56
- /** @internal */
57
- const b3Response$1 = /*#__PURE__*/make$1(httpApp => Effect__namespace.flatMap(Effect__namespace.currentSpan, span => span._tag === "Some" ? Effect__namespace.map(httpApp, res => Http_ServerResponse_dist_effectPlatformHttpServerResponse.setHeader(res, "b3", `${span.value.traceId}-${span.value.spanId}-1${span.value.parent._tag === "Some" ? `-${span.value.parent.value.spanId}` : ""}`)) : httpApp));
49
+ const tracer$1 = /*#__PURE__*/make$1(httpApp => {
50
+ const appWithStatus = Effect__namespace.tap(Effect__namespace.zipRight(Http_App_dist_effectPlatformHttpApp.appendPreResponseHandler(b3Response), httpApp), response => Effect__namespace.annotateCurrentSpan("http.status", response.status));
51
+ return Effect__namespace.flatMap(Http_ServerRequest_dist_effectPlatformHttpServerRequest.ServerRequest$1, request => Effect__namespace.flatMap(Effect__namespace.orElseSucceed(Http_IncomingMessage_dist_effectPlatformHttpIncomingMessage.schemaExternalSpan(request), () => undefined), parent => Effect__namespace.withSpan(appWithStatus, `http ${request.method}`, {
52
+ attributes: {
53
+ "http.method": request.method,
54
+ "http.url": request.url
55
+ },
56
+ parent
57
+ })));
58
+ });
59
+ const b3Response = (_request, response) => Effect__namespace.flatMap(Effect__namespace.currentSpan, span => span._tag === "Some" ? Http_ServerResponse_dist_effectPlatformHttpServerResponse.setHeader(response, "b3", `${span.value.traceId}-${span.value.spanId}-1${span.value.parent._tag === "Some" ? `-${span.value.parent.value.spanId}` : ""}`) : response);
58
60
 
59
61
  /** @internal */
60
62
  const xForwardedHeaders$1 = /*#__PURE__*/make$1(httpApp => Effect__namespace.updateService(httpApp, Http_ServerRequest_dist_effectPlatformHttpServerRequest.ServerRequest$1, request => request.headers["x-forwarded-host"] ? request.modify({
@@ -84,12 +86,6 @@ const loggerTracer$1 = /*#__PURE__*/Function.flow(tracer$1, logger$1);
84
86
  */
85
87
  const make = make$1;
86
88
 
87
- /**
88
- * @since 1.0.0
89
- * @category constructors
90
- */
91
- const b3Response = b3Response$1;
92
-
93
89
  /**
94
90
  * @since 1.0.0
95
91
  * @category constructors
@@ -117,7 +113,6 @@ const xForwardedHeaders = xForwardedHeaders$1;
117
113
  var Middleware = /*#__PURE__*/Object.freeze({
118
114
  __proto__: null,
119
115
  make: make,
120
- b3Response: b3Response,
121
116
  logger: logger,
122
117
  tracer: tracer,
123
118
  loggerTracer: loggerTracer,
@@ -125,7 +120,6 @@ var Middleware = /*#__PURE__*/Object.freeze({
125
120
  });
126
121
 
127
122
  exports.Middleware = Middleware;
128
- exports.b3Response = b3Response;
129
123
  exports.logger = logger;
130
124
  exports.loggerTracer = loggerTracer;
131
125
  exports.make = make;
@@ -1,9 +1,10 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { flow } from 'effect/Function';
3
+ import { a as appendPreResponseHandler } from './App-1ca51fa7.esm.js';
3
4
  import { s as set } from './Headers-58b56a08.esm.js';
4
5
  import { schemaExternalSpan } from '../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js';
5
- import { a as ServerRequest } from './ServerRequest-03161edc.esm.js';
6
- import { s as setHeader } from './ServerResponse-93038062.esm.js';
6
+ import { a as ServerRequest } from './ServerRequest-a641c507.esm.js';
7
+ import { s as setHeader } from './ServerResponse-03c252ea.esm.js';
7
8
 
8
9
  /** @internal */
9
10
  const make$1 = middleware => middleware;
@@ -23,16 +24,17 @@ const logger$1 = /*#__PURE__*/make$1(httpApp => {
23
24
  });
24
25
 
25
26
  /** @internal */
26
- const tracer$1 = /*#__PURE__*/make$1(httpApp => Effect.flatMap(ServerRequest, request => Effect.flatMap(Effect.orElseSucceed(schemaExternalSpan(request), () => undefined), parent => Effect.withSpan(Effect.tap(httpApp, response => Effect.annotateCurrentSpan("http.status", response.status)), `http ${request.method}`, {
27
- attributes: {
28
- "http.method": request.method,
29
- "http.url": request.url
30
- },
31
- parent
32
- }))));
33
-
34
- /** @internal */
35
- const b3Response$1 = /*#__PURE__*/make$1(httpApp => Effect.flatMap(Effect.currentSpan, span => span._tag === "Some" ? Effect.map(httpApp, res => setHeader(res, "b3", `${span.value.traceId}-${span.value.spanId}-1${span.value.parent._tag === "Some" ? `-${span.value.parent.value.spanId}` : ""}`)) : httpApp));
27
+ const tracer$1 = /*#__PURE__*/make$1(httpApp => {
28
+ const appWithStatus = Effect.tap(Effect.zipRight(appendPreResponseHandler(b3Response), httpApp), response => Effect.annotateCurrentSpan("http.status", response.status));
29
+ return Effect.flatMap(ServerRequest, request => Effect.flatMap(Effect.orElseSucceed(schemaExternalSpan(request), () => undefined), parent => Effect.withSpan(appWithStatus, `http ${request.method}`, {
30
+ attributes: {
31
+ "http.method": request.method,
32
+ "http.url": request.url
33
+ },
34
+ parent
35
+ })));
36
+ });
37
+ const b3Response = (_request, response) => Effect.flatMap(Effect.currentSpan, span => span._tag === "Some" ? setHeader(response, "b3", `${span.value.traceId}-${span.value.spanId}-1${span.value.parent._tag === "Some" ? `-${span.value.parent.value.spanId}` : ""}`) : response);
36
38
 
37
39
  /** @internal */
38
40
  const xForwardedHeaders$1 = /*#__PURE__*/make$1(httpApp => Effect.updateService(httpApp, ServerRequest, request => request.headers["x-forwarded-host"] ? request.modify({
@@ -62,12 +64,6 @@ const loggerTracer$1 = /*#__PURE__*/flow(tracer$1, logger$1);
62
64
  */
63
65
  const make = make$1;
64
66
 
65
- /**
66
- * @since 1.0.0
67
- * @category constructors
68
- */
69
- const b3Response = b3Response$1;
70
-
71
67
  /**
72
68
  * @since 1.0.0
73
69
  * @category constructors
@@ -95,11 +91,10 @@ const xForwardedHeaders = xForwardedHeaders$1;
95
91
  var Middleware = /*#__PURE__*/Object.freeze({
96
92
  __proto__: null,
97
93
  make: make,
98
- b3Response: b3Response,
99
94
  logger: logger,
100
95
  tracer: tracer,
101
96
  loggerTracer: loggerTracer,
102
97
  xForwardedHeaders: xForwardedHeaders
103
98
  });
104
99
 
105
- export { Middleware as M, loggerTracer as a, b3Response as b, logger as l, make as m, tracer as t, xForwardedHeaders as x };
100
+ export { Middleware as M, loggerTracer as a, logger as l, make as m, tracer as t, xForwardedHeaders as x };
@@ -8,7 +8,7 @@ import * as Inspectable from 'effect/Inspectable';
8
8
  import * as Option from 'effect/Option';
9
9
  import FindMyWay from 'find-my-way';
10
10
  import { R as RouteNotFound } from './ServerError-04ad5b57.esm.js';
11
- import { a as ServerRequest } from './ServerRequest-03161edc.esm.js';
11
+ import { a as ServerRequest } from './ServerRequest-a641c507.esm.js';
12
12
 
13
13
  /** @internal */
14
14
  const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/Router");
@@ -36,7 +36,7 @@ const schemaParams$1 = schema => {
36
36
  ..._.params
37
37
  }));
38
38
  };
39
- class RouterImpl extends Effectable.Effectable {
39
+ class RouterImpl extends Effectable.StructuralClass {
40
40
  constructor(routes, mounts) {
41
41
  super();
42
42
  this.routes = routes;
@@ -10,7 +10,7 @@ var Inspectable = require('effect/Inspectable');
10
10
  var Option = require('effect/Option');
11
11
  var FindMyWay = require('find-my-way');
12
12
  var Http_ServerError_dist_effectPlatformHttpServerError = require('./ServerError-55c5e24b.cjs.dev.js');
13
- var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-8d9c2c6b.cjs.dev.js');
13
+ var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-cb289dae.cjs.dev.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
16
16
 
@@ -67,7 +67,7 @@ const schemaParams$1 = schema => {
67
67
  ..._.params
68
68
  }));
69
69
  };
70
- class RouterImpl extends Effectable__namespace.Effectable {
70
+ class RouterImpl extends Effectable__namespace.StructuralClass {
71
71
  constructor(routes, mounts) {
72
72
  super();
73
73
  this.routes = routes;
@@ -10,7 +10,7 @@ var Inspectable = require('effect/Inspectable');
10
10
  var Option = require('effect/Option');
11
11
  var FindMyWay = require('find-my-way');
12
12
  var Http_ServerError_dist_effectPlatformHttpServerError = require('./ServerError-605b2fa2.cjs.prod.js');
13
- var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-938f3ed0.cjs.prod.js');
13
+ var Http_ServerRequest_dist_effectPlatformHttpServerRequest = require('./ServerRequest-ec4da01b.cjs.prod.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
16
16
 
@@ -67,7 +67,7 @@ const schemaParams$1 = schema => {
67
67
  ..._.params
68
68
  }));
69
69
  };
70
- class RouterImpl extends Effectable__namespace.Effectable {
70
+ class RouterImpl extends Effectable__namespace.StructuralClass {
71
71
  constructor(routes, mounts) {
72
72
  super();
73
73
  this.routes = routes;
@@ -1,6 +1,6 @@
1
1
  import * as Context from 'effect/Context';
2
2
  import * as Effect from 'effect/Effect';
3
- import { t as toRecord, s as schemaRecord, a as schemaJson } from './FormData-f54de878.esm.js';
3
+ import { t as toRecord, s as schemaRecord, a as schemaJson } from './FormData-bd727d2f.esm.js';
4
4
  import { schemaHeaders as schemaHeaders$2, schemaBodyJson as schemaBodyJson$2, schemaBodyUrlParams as schemaBodyUrlParams$2, maxBodySize } from '../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js';
5
5
  import { a as RequestError } from './ServerError-04ad5b57.esm.js';
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var Context = require('effect/Context');
4
4
  var Effect = require('effect/Effect');
5
- var Http_FormData_dist_effectPlatformHttpFormData = require('./FormData-ee0b1cf2.cjs.dev.js');
5
+ var Http_FormData_dist_effectPlatformHttpFormData = require('./FormData-7ea13198.cjs.dev.js');
6
6
  var Http_IncomingMessage_dist_effectPlatformHttpIncomingMessage = require('../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js');
7
7
  var Http_ServerError_dist_effectPlatformHttpServerError = require('./ServerError-55c5e24b.cjs.dev.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var Context = require('effect/Context');
4
4
  var Effect = require('effect/Effect');
5
- var Http_FormData_dist_effectPlatformHttpFormData = require('./FormData-902afd18.cjs.prod.js');
5
+ var Http_FormData_dist_effectPlatformHttpFormData = require('./FormData-6d030595.cjs.prod.js');
6
6
  var Http_IncomingMessage_dist_effectPlatformHttpIncomingMessage = require('../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.prod.js');
7
7
  var Http_ServerError_dist_effectPlatformHttpServerError = require('./ServerError-605b2fa2.cjs.prod.js');
8
8
 
@@ -4,11 +4,11 @@ import { dual } from 'effect/Function';
4
4
  import { e as empty$2, s as set, a as setAll, r as remove } from './Headers-58b56a08.esm.js';
5
5
  import { Platform } from '../Http/Platform/dist/effect-platform-Http-Platform.esm.js';
6
6
  import { t as toString, f as fromInput } from './UrlParams-1286c728.esm.js';
7
- import { e as empty$3, u as uint8Array$2, t as text$2, j as json$2, a as unsafeJson$2, b as jsonSchema, r as raw$2, f as formData$2, s as stream$2 } from './body-20d78ec1.esm.js';
7
+ import { e as empty$3, u as uint8Array$2, t as text$2, j as json$2, a as unsafeJson$2, b as jsonSchema, r as raw$2, f as formData$2, s as stream$2 } from './body-db8cfb3d.esm.js';
8
8
 
9
9
  /** @internal */
10
10
  const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
11
- class ServerResponseImpl extends Effectable.Effectable {
11
+ class ServerResponseImpl extends Effectable.StructuralClass {
12
12
  constructor(status, statusText, headers, body) {
13
13
  super();
14
14
  this.status = status;
@@ -6,7 +6,7 @@ var Function = require('effect/Function');
6
6
  var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-f56bc667.cjs.dev.js');
7
7
  var Http_Platform_dist_effectPlatformHttpPlatform = require('../Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js');
8
8
  var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-5e0910f1.cjs.dev.js');
9
- var body = require('./body-c7d7a944.cjs.dev.js');
9
+ var body = require('./body-cea7c1c9.cjs.dev.js');
10
10
 
11
11
  function _interopNamespace(e) {
12
12
  if (e && e.__esModule) return e;
@@ -31,7 +31,7 @@ var Effectable__namespace = /*#__PURE__*/_interopNamespace(Effectable);
31
31
 
32
32
  /** @internal */
33
33
  const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
34
- class ServerResponseImpl extends Effectable__namespace.Effectable {
34
+ class ServerResponseImpl extends Effectable__namespace.StructuralClass {
35
35
  constructor(status, statusText, headers, body) {
36
36
  super();
37
37
  this.status = status;
@@ -6,7 +6,7 @@ var Function = require('effect/Function');
6
6
  var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-122cb877.cjs.prod.js');
7
7
  var Http_Platform_dist_effectPlatformHttpPlatform = require('../Http/Platform/dist/effect-platform-Http-Platform.cjs.prod.js');
8
8
  var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-1228a686.cjs.prod.js');
9
- var body = require('./body-33521da5.cjs.prod.js');
9
+ var body = require('./body-95276637.cjs.prod.js');
10
10
 
11
11
  function _interopNamespace(e) {
12
12
  if (e && e.__esModule) return e;
@@ -31,7 +31,7 @@ var Effectable__namespace = /*#__PURE__*/_interopNamespace(Effectable);
31
31
 
32
32
  /** @internal */
33
33
  const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
34
- class ServerResponseImpl extends Effectable__namespace.Effectable {
34
+ class ServerResponseImpl extends Effectable__namespace.StructuralClass {
35
35
  constructor(status, statusText, headers, body) {
36
36
  super();
37
37
  this.status = status;
@@ -5,7 +5,7 @@ var Data = require('effect/Data');
5
5
  var Effect = require('effect/Effect');
6
6
  var Function = require('effect/Function');
7
7
  var Stream = require('effect/Stream');
8
- var FileSystem_dist_effectPlatformFileSystem = require('./FileSystem-3d439a05.cjs.prod.js');
8
+ var FileSystem_dist_effectPlatformFileSystem = require('../FileSystem/dist/effect-platform-FileSystem.cjs.prod.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -103,10 +103,10 @@ const jsonSchema = schema => {
103
103
  };
104
104
 
105
105
  /** @internal */
106
- const file = (path, options) => Effect__namespace.flatMap(FileSystem_dist_effectPlatformFileSystem.FileSystem$1, fs => Effect__namespace.map(fs.stat(path), info => stream(fs.stream(path, options), options?.contentType, Number(info.size))));
106
+ const file = (path, options) => Effect__namespace.flatMap(FileSystem_dist_effectPlatformFileSystem.FileSystem, fs => Effect__namespace.map(fs.stat(path), info => stream(fs.stream(path, options), options?.contentType, Number(info.size))));
107
107
 
108
108
  /** @internal */
109
- const fileInfo = (path, info, options) => Effect__namespace.map(FileSystem_dist_effectPlatformFileSystem.FileSystem$1, fs => stream(fs.stream(path, options), options?.contentType, Number(info.size)));
109
+ const fileInfo = (path, info, options) => Effect__namespace.map(FileSystem_dist_effectPlatformFileSystem.FileSystem, fs => stream(fs.stream(path, options), options?.contentType, Number(info.size)));
110
110
 
111
111
  /** @internal */
112
112
  const fileWeb = file => stream(Stream__namespace.fromReadableStream(() => file.stream(), Function.identity), file.type, file.size);
@@ -5,7 +5,7 @@ var Data = require('effect/Data');
5
5
  var Effect = require('effect/Effect');
6
6
  var Function = require('effect/Function');
7
7
  var Stream = require('effect/Stream');
8
- var FileSystem_dist_effectPlatformFileSystem = require('./FileSystem-4c7daaf0.cjs.dev.js');
8
+ var FileSystem_dist_effectPlatformFileSystem = require('../FileSystem/dist/effect-platform-FileSystem.cjs.dev.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -103,10 +103,10 @@ const jsonSchema = schema => {
103
103
  };
104
104
 
105
105
  /** @internal */
106
- const file = (path, options) => Effect__namespace.flatMap(FileSystem_dist_effectPlatformFileSystem.FileSystem$1, fs => Effect__namespace.map(fs.stat(path), info => stream(fs.stream(path, options), options?.contentType, Number(info.size))));
106
+ const file = (path, options) => Effect__namespace.flatMap(FileSystem_dist_effectPlatformFileSystem.FileSystem, fs => Effect__namespace.map(fs.stat(path), info => stream(fs.stream(path, options), options?.contentType, Number(info.size))));
107
107
 
108
108
  /** @internal */
109
- const fileInfo = (path, info, options) => Effect__namespace.map(FileSystem_dist_effectPlatformFileSystem.FileSystem$1, fs => stream(fs.stream(path, options), options?.contentType, Number(info.size)));
109
+ const fileInfo = (path, info, options) => Effect__namespace.map(FileSystem_dist_effectPlatformFileSystem.FileSystem, fs => stream(fs.stream(path, options), options?.contentType, Number(info.size)));
110
110
 
111
111
  /** @internal */
112
112
  const fileWeb = file => stream(Stream__namespace.fromReadableStream(() => file.stream(), Function.identity), file.type, file.size);
@@ -3,7 +3,7 @@ import * as Data from 'effect/Data';
3
3
  import * as Effect from 'effect/Effect';
4
4
  import { identity } from 'effect/Function';
5
5
  import * as Stream from 'effect/Stream';
6
- import { a as FileSystem } from './FileSystem-7e31dccd.esm.js';
6
+ import { FileSystem } from '../FileSystem/dist/effect-platform-FileSystem.esm.js';
7
7
 
8
8
  /** @internal */
9
9
  const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/Http/Body");
@@ -5,7 +5,7 @@ var Function = require('effect/Function');
5
5
  var Pipeable = require('effect/Pipeable');
6
6
  var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-122cb877.cjs.prod.js');
7
7
  var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-1228a686.cjs.prod.js');
8
- var body = require('./body-33521da5.cjs.prod.js');
8
+ var body = require('./body-95276637.cjs.prod.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -3,7 +3,7 @@ import { dual } from 'effect/Function';
3
3
  import { pipeArguments } from 'effect/Pipeable';
4
4
  import { s as set, a as setAll, r as remove, e as empty$2 } from './Headers-58b56a08.esm.js';
5
5
  import { a as append, b as appendAll, s as set$1, c as setAll$1, t as toString, f as fromInput, e as empty$1 } from './UrlParams-1286c728.esm.js';
6
- import { u as uint8Array, t as text, j as json, a as unsafeJson, c as file, g as fileWeb, b as jsonSchema, f as formData, s as stream, e as empty$3 } from './body-20d78ec1.esm.js';
6
+ import { u as uint8Array, t as text, j as json, a as unsafeJson, c as file, g as fileWeb, b as jsonSchema, f as formData, s as stream, e as empty$3 } from './body-db8cfb3d.esm.js';
7
7
 
8
8
  /** @internal */
9
9
  const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/Http/ClientRequest");
@@ -5,7 +5,7 @@ var Function = require('effect/Function');
5
5
  var Pipeable = require('effect/Pipeable');
6
6
  var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-f56bc667.cjs.dev.js');
7
7
  var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-5e0910f1.cjs.dev.js');
8
- var body = require('./body-c7d7a944.cjs.dev.js');
8
+ var body = require('./body-cea7c1c9.cjs.dev.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import type * as Effect from "effect/Effect";
4
+ import * as Effect from "effect/Effect";
5
+ import * as FiberRef from "effect/FiberRef";
6
+ import type * as ServerError from "./ServerError.js";
5
7
  import type * as ServerRequest from "./ServerRequest.js";
6
8
  import type * as ServerResponse from "./ServerResponse.js";
7
9
  /**
@@ -15,4 +17,29 @@ export interface HttpApp<R, E, A> extends Effect.Effect<R | ServerRequest.Server
15
17
  * @category models
16
18
  */
17
19
  export type Default<R, E> = HttpApp<R, E, ServerResponse.ServerResponse>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category models
23
+ */
24
+ export type PreResponseHandler = (request: ServerRequest.ServerRequest, response: ServerResponse.ServerResponse) => Effect.Effect<never, ServerError.ResponseError, ServerResponse.ServerResponse>;
25
+ /**
26
+ * @since 1.0.0
27
+ * @category fiber refs
28
+ */
29
+ export declare const currentPreResponseHandlers: FiberRef.FiberRef<ReadonlyArray<PreResponseHandler>>;
30
+ /**
31
+ * @since 1.0.0
32
+ * @category fiber refs
33
+ */
34
+ export declare const preResponseHandler: Effect.Effect<never, never, PreResponseHandler>;
35
+ /**
36
+ * @since 1.0.0
37
+ * @category fiber refs
38
+ */
39
+ export declare const appendPreResponseHandler: (handler: PreResponseHandler) => Effect.Effect<never, never, void>;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category fiber refs
43
+ */
44
+ export declare const withPreResponseHandler: ((handler: PreResponseHandler) => <R, E, A>(self: HttpApp<R, E, A>) => HttpApp<R, E, A>) & (<R_1, E_1, A_1>(self: HttpApp<R_1, E_1, A_1>, handler: PreResponseHandler) => HttpApp<R_1, E_1, A_1>);
18
45
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"../../../../src/Http","sources":["App.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,aAAa,2BAAuB;AACrD,OAAO,KAAK,KAAK,cAAc,4BAAwB;AAEvD;;;GAGG;AACH,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAE,SAAQ,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7F;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"../../../../src/Http","sources":["App.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAI3C,OAAO,KAAK,KAAK,WAAW,yBAAqB;AACjD,OAAO,KAAK,KAAK,aAAa,2BAAuB;AACrD,OAAO,KAAK,KAAK,cAAc,4BAAwB;AAEvD;;;GAGG;AACH,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAE,SAAQ,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAEjG;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;AAExE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,aAAa,CAAC,aAAa,EACpC,QAAQ,EAAE,cAAc,CAAC,cAAc,KACpC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;AAEnF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAG3F,CAAA;AAMD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,kBAAkB,CAe9E,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAMrG,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,aACvB,kBAAkB,sHACe,kBAAkB,4BAM3D,CAAA"}
@@ -22,11 +22,6 @@ export declare namespace Middleware {
22
22
  * @category constructors
23
23
  */
24
24
  export declare const make: <M extends Middleware>(middleware: M) => M;
25
- /**
26
- * @since 1.0.0
27
- * @category constructors
28
- */
29
- export declare const b3Response: <R, E>(httpApp: App.Default<R, E>) => App.Default<R, E>;
30
25
  /**
31
26
  * @since 1.0.0
32
27
  * @category constructors
@@ -1 +1 @@
1
- {"version":3,"file":"Middleware.d.ts","sourceRoot":"../../../../src/Http","sources":["Middleware.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,GAAG,iBAAa;AAEjC;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CACvD;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;QAC5D,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;KAC7B;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,KAAK,CAAiB,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAuB,CAAA;AAEtG;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAmB,CAAA;AAE9F;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAmB,CAAA;AAE9F;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAyB,CAAA;AAE1G;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAA8B,CAAA"}
1
+ {"version":3,"file":"Middleware.d.ts","sourceRoot":"../../../../src/Http","sources":["Middleware.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,GAAG,iBAAa;AAEjC;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CACvD;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;QAC5D,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;KAC7B;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,KAAK,CAAiB,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAmB,CAAA;AAE9F;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAmB,CAAA;AAE9F;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAyB,CAAA;AAE1G;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,qBAAiB;AAEpC;;GAEG;AACH,OAAO,KAAK,eAAe,6BAAyB;AAEpD;;GAEG;AACH,OAAO,KAAK,SAAS,uBAAmB;AAExC;;GAEG;AACH,OAAO,KAAK,KAAK,mBAAe;AAEhC;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAoB;AAE1C;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAoB;AAE1C;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAoB;AAE1C;;GAEG;AACH,OAAO,KAAK,aAAa,2BAAuB;AAEhD;;GAEG;AACH,OAAO,KAAK,IAAI,kBAAc;AAE9B;;GAEG;AACH,OAAO,KAAK,OAAO,qBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,qBAAgC;AAEnD;;GAEG;AACH,OAAO,KAAK,eAAe,6BAAwC;AAEnE;;GAEG;AACH,OAAO,KAAK,SAAS,uBAAkC;AAEvD;;GAEG;AACH,OAAO,KAAK,KAAK,mBAA8B;AAE/C;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAmC;AAEzD;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAmC;AAEzD;;GAEG;AACH,OAAO,KAAK,UAAU,wBAAmC;AAEzD;;GAEG;AACH,OAAO,KAAK,aAAa,2BAAsC;AAE/D;;GAEG;AACH,OAAO,KAAK,IAAI,kBAA6B;AAE7C;;GAEG;AACH,OAAO,KAAK,OAAO,qBAAgC"}
@@ -2,74 +2,55 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Command_dist_effectPlatformCommand = require('./Command-032c414c.cjs.dev.js');
6
- var CommandExecutor_dist_effectPlatformCommandExecutor = require('./CommandExecutor-158ea1d3.cjs.dev.js');
7
- var Effectify_dist_effectPlatformEffectify = require('./Effectify-2d8c3af9.cjs.dev.js');
8
- var Error_dist_effectPlatformError = require('./Error-09496a70.cjs.dev.js');
9
- var FileSystem_dist_effectPlatformFileSystem = require('./FileSystem-4c7daaf0.cjs.dev.js');
10
- var HttpClient_dist_effectPlatformHttpClient = require('./HttpClient-6782fcab.cjs.dev.js');
11
- var HttpServer_dist_effectPlatformHttpServer = require('./HttpServer-16159c3a.cjs.dev.js');
12
- var KeyValueStore_dist_effectPlatformKeyValueStore = require('./KeyValueStore-f9c93610.cjs.dev.js');
13
- var Path_dist_effectPlatformPath = require('./Path-7ba7e370.cjs.dev.js');
14
- var Runtime_dist_effectPlatformRuntime = require('./Runtime-1edd577a.cjs.dev.js');
15
- require('effect/Chunk');
16
- require('effect/Effect');
17
- require('effect/Function');
18
- require('effect/HashMap');
19
- require('effect/Option');
20
- require('effect/Pipeable');
21
- require('effect/Stream');
22
- require('./commandExecutor-fc92de95.cjs.dev.js');
23
- require('effect/Brand');
24
- require('effect/Context');
25
- require('effect/Sink');
26
- require('effect/Data');
27
- require('./Body-86ef2922.cjs.dev.js');
28
- require('./body-c7d7a944.cjs.dev.js');
29
- require('@effect/schema/Schema');
30
- require('./Client-0fbb38ab.cjs.dev.js');
31
- require('effect/Layer');
32
- require('../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js');
33
- require('@effect/schema/ParseResult');
34
- require('effect/FiberRef');
35
- require('effect/GlobalValue');
36
- require('../Http/Method/dist/effect-platform-Http-Method.cjs.dev.js');
37
- require('./UrlParams-5e0910f1.cjs.dev.js');
38
- require('./clientError-52d24cd8.cjs.dev.js');
39
- require('./clientRequest-423fd562.cjs.dev.js');
40
- require('./Headers-f56bc667.cjs.dev.js');
41
- require('effect/ReadonlyArray');
42
- require('effect/ReadonlyRecord');
43
- require('./clientResponse-2e4c45a9.cjs.dev.js');
44
- require('./ClientError-b7828377.cjs.dev.js');
45
- require('./ClientRequest-00e89da8.cjs.dev.js');
46
- require('./ClientResponse-75423399.cjs.dev.js');
47
- require('./App-44aa3275.cjs.dev.js');
48
- require('./FormData-ee0b1cf2.cjs.dev.js');
49
- require('effect/Predicate');
50
- require('./Middleware-e2edf820.cjs.dev.js');
51
- require('./ServerRequest-8d9c2c6b.cjs.dev.js');
52
- require('./ServerError-55c5e24b.cjs.dev.js');
53
- require('./ServerResponse-b63b7192.cjs.dev.js');
54
- require('effect/Effectable');
55
- require('../Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js');
56
- require('../Http/Etag/dist/effect-platform-Http-Etag.cjs.dev.js');
57
- require('./Router-bd2b3014.cjs.dev.js');
58
- require('effect/Inspectable');
59
- require('find-my-way');
60
- require('path-browserify');
61
- require('effect/Cause');
62
- require('effect/Exit');
5
+ var Command = require('@effect/platform/Command');
6
+ var CommandExecutor = require('@effect/platform/CommandExecutor');
7
+ var Effectify = require('@effect/platform/Effectify');
8
+ var Error = require('@effect/platform/Error');
9
+ var FileSystem = require('@effect/platform/FileSystem');
10
+ var HttpClient = require('@effect/platform/HttpClient');
11
+ var HttpServer = require('@effect/platform/HttpServer');
12
+ var KeyValueStore = require('@effect/platform/KeyValueStore');
13
+ var Path = require('@effect/platform/Path');
14
+ var Runtime = require('@effect/platform/Runtime');
63
15
 
16
+ function _interopNamespace(e) {
17
+ if (e && e.__esModule) return e;
18
+ var n = Object.create(null);
19
+ if (e) {
20
+ Object.keys(e).forEach(function (k) {
21
+ if (k !== 'default') {
22
+ var d = Object.getOwnPropertyDescriptor(e, k);
23
+ Object.defineProperty(n, k, d.get ? d : {
24
+ enumerable: true,
25
+ get: function () { return e[k]; }
26
+ });
27
+ }
28
+ });
29
+ }
30
+ n["default"] = e;
31
+ return Object.freeze(n);
32
+ }
64
33
 
34
+ var Command__namespace = /*#__PURE__*/_interopNamespace(Command);
35
+ var CommandExecutor__namespace = /*#__PURE__*/_interopNamespace(CommandExecutor);
36
+ var Effectify__namespace = /*#__PURE__*/_interopNamespace(Effectify);
37
+ var Error__namespace = /*#__PURE__*/_interopNamespace(Error);
38
+ var FileSystem__namespace = /*#__PURE__*/_interopNamespace(FileSystem);
39
+ var HttpClient__namespace = /*#__PURE__*/_interopNamespace(HttpClient);
40
+ var HttpServer__namespace = /*#__PURE__*/_interopNamespace(HttpServer);
41
+ var KeyValueStore__namespace = /*#__PURE__*/_interopNamespace(KeyValueStore);
42
+ var Path__namespace = /*#__PURE__*/_interopNamespace(Path);
43
+ var Runtime__namespace = /*#__PURE__*/_interopNamespace(Runtime);
65
44
 
66
- exports.Command = Command_dist_effectPlatformCommand.Command;
67
- exports.CommandExecutor = CommandExecutor_dist_effectPlatformCommandExecutor.CommandExecutor;
68
- exports.Effectify = Effectify_dist_effectPlatformEffectify.Effectify;
69
- exports.Error = Error_dist_effectPlatformError.Error;
70
- exports.FileSystem = FileSystem_dist_effectPlatformFileSystem.FileSystem;
71
- exports.HttpClient = HttpClient_dist_effectPlatformHttpClient.HttpClient;
72
- exports.HttpServer = HttpServer_dist_effectPlatformHttpServer.HttpServer;
73
- exports.KeyValueStore = KeyValueStore_dist_effectPlatformKeyValueStore.KeyValueStore;
74
- exports.Path = Path_dist_effectPlatformPath.Path;
75
- exports.Runtime = Runtime_dist_effectPlatformRuntime.Runtime;
45
+
46
+
47
+ exports.Command = Command__namespace;
48
+ exports.CommandExecutor = CommandExecutor__namespace;
49
+ exports.Effectify = Effectify__namespace;
50
+ exports.Error = Error__namespace;
51
+ exports.FileSystem = FileSystem__namespace;
52
+ exports.HttpClient = HttpClient__namespace;
53
+ exports.HttpServer = HttpServer__namespace;
54
+ exports.KeyValueStore = KeyValueStore__namespace;
55
+ exports.Path = Path__namespace;
56
+ exports.Runtime = Runtime__namespace;