@effect/platform-node 0.27.2 → 0.27.4
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.
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.dev.js +3 -1
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.prod.js +3 -1
- package/Http/Server/dist/effect-platform-node-Http-Server.esm.js +2 -1
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.d.mts +2 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.d.mts.map +1 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.d.ts +2 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.d.ts.map +1 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.dev.js +75 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.js +7 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.mjs +1 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.cjs.prod.js +75 -0
- package/Http/ServerRequest/dist/effect-platform-node-Http-ServerRequest.esm.js +65 -0
- package/Http/ServerRequest/package.json +4 -0
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.dev.js +6 -4
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.prod.js +6 -4
- package/HttpServer/dist/effect-platform-node-HttpServer.esm.js +5 -3
- package/WorkerRunner/dist/effect-platform-node-WorkerRunner.cjs.dev.js +9 -2
- package/WorkerRunner/dist/effect-platform-node-WorkerRunner.cjs.prod.js +9 -2
- package/WorkerRunner/dist/effect-platform-node-WorkerRunner.esm.js +9 -3
- package/dist/Server-1f2aa4ca.cjs.dev.js +83 -0
- package/dist/Server-96c17c96.cjs.prod.js +83 -0
- package/dist/Server-c315ddf2.esm.js +57 -0
- package/dist/declarations/src/Http/Server.d.ts +11 -0
- package/dist/declarations/src/Http/Server.d.ts.map +1 -1
- package/dist/declarations/src/Http/ServerRequest.d.ts +18 -0
- package/dist/declarations/src/Http/ServerRequest.d.ts.map +1 -0
- package/dist/declarations/src/HttpServer.d.ts +3 -3
- package/dist/declarations/src/HttpServer.d.ts.map +1 -1
- package/dist/declarations/src/WorkerRunner.d.ts +6 -0
- package/dist/declarations/src/WorkerRunner.d.ts.map +1 -1
- package/dist/{Server-9108df65.cjs.prod.js → server-42346e37.cjs.prod.js} +29 -69
- package/dist/{Server-c9262046.esm.js → server-442c5e69.esm.js} +29 -70
- package/dist/{Server-7a3dbcbe.cjs.dev.js → server-b13861a8.cjs.dev.js} +29 -69
- package/package.json +7 -1
- package/src/Http/Server.ts +25 -0
- package/src/Http/ServerRequest.ts +19 -0
- package/src/HttpServer.ts +3 -3
- package/src/WorkerRunner.ts +7 -0
- package/src/internal/http/server.ts +49 -24
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
require('../../../dist/server-b13861a8.cjs.dev.js');
|
|
6
6
|
var Server = require('@effect/platform/Http/Server');
|
|
7
|
+
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../../dist/Server-1f2aa4ca.cjs.dev.js');
|
|
7
8
|
require('@effect/platform/FileSystem');
|
|
8
9
|
require('@effect/platform/Http/App');
|
|
9
10
|
require('@effect/platform/Http/IncomingMessage');
|
|
@@ -59,6 +60,7 @@ require('@effect/platform/Http/Etag');
|
|
|
59
60
|
exports.layer = Http_Server_dist_effectPlatformNodeHttpServer.layer;
|
|
60
61
|
exports.layerConfig = Http_Server_dist_effectPlatformNodeHttpServer.layerConfig;
|
|
61
62
|
exports.make = Http_Server_dist_effectPlatformNodeHttpServer.make;
|
|
63
|
+
exports.makeHandler = Http_Server_dist_effectPlatformNodeHttpServer.makeHandler;
|
|
62
64
|
Object.keys(Server).forEach(function (k) {
|
|
63
65
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
64
66
|
enumerable: true,
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
require('../../../dist/server-42346e37.cjs.prod.js');
|
|
6
6
|
var Server = require('@effect/platform/Http/Server');
|
|
7
|
+
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../../dist/Server-96c17c96.cjs.prod.js');
|
|
7
8
|
require('@effect/platform/FileSystem');
|
|
8
9
|
require('@effect/platform/Http/App');
|
|
9
10
|
require('@effect/platform/Http/IncomingMessage');
|
|
@@ -59,6 +60,7 @@ require('@effect/platform/Http/Etag');
|
|
|
59
60
|
exports.layer = Http_Server_dist_effectPlatformNodeHttpServer.layer;
|
|
60
61
|
exports.layerConfig = Http_Server_dist_effectPlatformNodeHttpServer.layerConfig;
|
|
61
62
|
exports.make = Http_Server_dist_effectPlatformNodeHttpServer.make;
|
|
63
|
+
exports.makeHandler = Http_Server_dist_effectPlatformNodeHttpServer.makeHandler;
|
|
62
64
|
Object.keys(Server).forEach(function (k) {
|
|
63
65
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
64
66
|
enumerable: true,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../../dist/server-442c5e69.esm.js';
|
|
2
2
|
export * from '@effect/platform/Http/Server';
|
|
3
|
+
export { l as layer, b as layerConfig, m as make, a as makeHandler } from '../../../dist/Server-c315ddf2.esm.js';
|
|
3
4
|
import '@effect/platform/FileSystem';
|
|
4
5
|
import '@effect/platform/Http/App';
|
|
5
6
|
import '@effect/platform/Http/IncomingMessage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-platform-node-Http-ServerRequest.cjs.d.mts","sourceRoot":"","sources":["../../../dist/declarations/src/Http/ServerRequest.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-platform-node-Http-ServerRequest.cjs.d.ts","sourceRoot":"","sources":["../../../dist/declarations/src/Http/ServerRequest.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var server = require('../../../dist/server-b13861a8.cjs.dev.js');
|
|
6
|
+
var ServerRequest = require('@effect/platform/Http/ServerRequest');
|
|
7
|
+
require('@effect/platform/FileSystem');
|
|
8
|
+
require('@effect/platform/Http/App');
|
|
9
|
+
require('@effect/platform/Http/IncomingMessage');
|
|
10
|
+
require('@effect/platform/Http/Middleware');
|
|
11
|
+
require('@effect/platform/Http/Server');
|
|
12
|
+
require('@effect/platform/Http/ServerError');
|
|
13
|
+
require('effect/Config');
|
|
14
|
+
require('effect/Effect');
|
|
15
|
+
require('effect/Fiber');
|
|
16
|
+
require('effect/Layer');
|
|
17
|
+
require('effect/Option');
|
|
18
|
+
require('effect/Runtime');
|
|
19
|
+
require('effect/Stream');
|
|
20
|
+
require('node:stream');
|
|
21
|
+
require('node:stream/promises');
|
|
22
|
+
require('../../../Sink/dist/effect-platform-node-Sink.cjs.dev.js');
|
|
23
|
+
require('../../../dist/sink-690d6766.cjs.dev.js');
|
|
24
|
+
require('effect/Channel');
|
|
25
|
+
require('effect/Deferred');
|
|
26
|
+
require('effect/Sink');
|
|
27
|
+
require('../../../dist/stream-c6b8a234.cjs.dev.js');
|
|
28
|
+
require('effect/Chunk');
|
|
29
|
+
require('effect/Either');
|
|
30
|
+
require('effect/Exit');
|
|
31
|
+
require('effect/Function');
|
|
32
|
+
require('effect/Queue');
|
|
33
|
+
require('@effect/platform/Error');
|
|
34
|
+
require('../../../dist/formData-97304b4b.cjs.dev.js');
|
|
35
|
+
require('@effect/platform/Http/FormData');
|
|
36
|
+
require('@effect/platform/Path');
|
|
37
|
+
require('busboy');
|
|
38
|
+
require('effect/FiberRef');
|
|
39
|
+
require('node:fs');
|
|
40
|
+
require('../../../Stream/dist/effect-platform-node-Stream.cjs.dev.js');
|
|
41
|
+
require('../../../dist/incomingMessage-6b1026ca.cjs.dev.js');
|
|
42
|
+
require('@effect/platform/Http/Headers');
|
|
43
|
+
require('@effect/platform/Http/UrlParams');
|
|
44
|
+
require('../../../dist/platform-5b27475e.cjs.dev.js');
|
|
45
|
+
require('@effect/platform/Http/Platform');
|
|
46
|
+
require('@effect/platform/Http/ServerResponse');
|
|
47
|
+
require('mime');
|
|
48
|
+
require('../../../FileSystem/dist/effect-platform-node-FileSystem.cjs.dev.js');
|
|
49
|
+
require('@effect/platform/Effectify');
|
|
50
|
+
require('node:crypto');
|
|
51
|
+
require('node:os');
|
|
52
|
+
require('node:path');
|
|
53
|
+
require('../../../dist/error-e477c10b.cjs.dev.js');
|
|
54
|
+
require('../../../dist/Etag-b38be81c.cjs.dev.js');
|
|
55
|
+
require('@effect/platform/Http/Etag');
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @since 1.0.0
|
|
59
|
+
*
|
|
60
|
+
* Also includes exports from [`@effect/platform/Http/ServerRequest`](https://effect-ts.github.io/platform/platform/Http/ServerRequest.ts.html).
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @category conversions
|
|
65
|
+
* @since 1.0.0
|
|
66
|
+
*/
|
|
67
|
+
const toIncomingMessage = server.requestSource;
|
|
68
|
+
|
|
69
|
+
exports.toIncomingMessage = toIncomingMessage;
|
|
70
|
+
Object.keys(ServerRequest).forEach(function (k) {
|
|
71
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return ServerRequest[k]; }
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./effect-platform-node-Http-ServerRequest.cjs.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var server = require('../../../dist/server-42346e37.cjs.prod.js');
|
|
6
|
+
var ServerRequest = require('@effect/platform/Http/ServerRequest');
|
|
7
|
+
require('@effect/platform/FileSystem');
|
|
8
|
+
require('@effect/platform/Http/App');
|
|
9
|
+
require('@effect/platform/Http/IncomingMessage');
|
|
10
|
+
require('@effect/platform/Http/Middleware');
|
|
11
|
+
require('@effect/platform/Http/Server');
|
|
12
|
+
require('@effect/platform/Http/ServerError');
|
|
13
|
+
require('effect/Config');
|
|
14
|
+
require('effect/Effect');
|
|
15
|
+
require('effect/Fiber');
|
|
16
|
+
require('effect/Layer');
|
|
17
|
+
require('effect/Option');
|
|
18
|
+
require('effect/Runtime');
|
|
19
|
+
require('effect/Stream');
|
|
20
|
+
require('node:stream');
|
|
21
|
+
require('node:stream/promises');
|
|
22
|
+
require('../../../Sink/dist/effect-platform-node-Sink.cjs.prod.js');
|
|
23
|
+
require('../../../dist/sink-6f206f77.cjs.prod.js');
|
|
24
|
+
require('effect/Channel');
|
|
25
|
+
require('effect/Deferred');
|
|
26
|
+
require('effect/Sink');
|
|
27
|
+
require('../../../dist/stream-fbc7f160.cjs.prod.js');
|
|
28
|
+
require('effect/Chunk');
|
|
29
|
+
require('effect/Either');
|
|
30
|
+
require('effect/Exit');
|
|
31
|
+
require('effect/Function');
|
|
32
|
+
require('effect/Queue');
|
|
33
|
+
require('@effect/platform/Error');
|
|
34
|
+
require('../../../dist/formData-a7619a26.cjs.prod.js');
|
|
35
|
+
require('@effect/platform/Http/FormData');
|
|
36
|
+
require('@effect/platform/Path');
|
|
37
|
+
require('busboy');
|
|
38
|
+
require('effect/FiberRef');
|
|
39
|
+
require('node:fs');
|
|
40
|
+
require('../../../Stream/dist/effect-platform-node-Stream.cjs.prod.js');
|
|
41
|
+
require('../../../dist/incomingMessage-141c6cf1.cjs.prod.js');
|
|
42
|
+
require('@effect/platform/Http/Headers');
|
|
43
|
+
require('@effect/platform/Http/UrlParams');
|
|
44
|
+
require('../../../dist/platform-80b90f07.cjs.prod.js');
|
|
45
|
+
require('@effect/platform/Http/Platform');
|
|
46
|
+
require('@effect/platform/Http/ServerResponse');
|
|
47
|
+
require('mime');
|
|
48
|
+
require('../../../FileSystem/dist/effect-platform-node-FileSystem.cjs.prod.js');
|
|
49
|
+
require('@effect/platform/Effectify');
|
|
50
|
+
require('node:crypto');
|
|
51
|
+
require('node:os');
|
|
52
|
+
require('node:path');
|
|
53
|
+
require('../../../dist/error-4f074a3a.cjs.prod.js');
|
|
54
|
+
require('../../../dist/Etag-7a3db878.cjs.prod.js');
|
|
55
|
+
require('@effect/platform/Http/Etag');
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @since 1.0.0
|
|
59
|
+
*
|
|
60
|
+
* Also includes exports from [`@effect/platform/Http/ServerRequest`](https://effect-ts.github.io/platform/platform/Http/ServerRequest.ts.html).
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @category conversions
|
|
65
|
+
* @since 1.0.0
|
|
66
|
+
*/
|
|
67
|
+
const toIncomingMessage = server.requestSource;
|
|
68
|
+
|
|
69
|
+
exports.toIncomingMessage = toIncomingMessage;
|
|
70
|
+
Object.keys(ServerRequest).forEach(function (k) {
|
|
71
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return ServerRequest[k]; }
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { r as requestSource } from '../../../dist/server-442c5e69.esm.js';
|
|
2
|
+
export * from '@effect/platform/Http/ServerRequest';
|
|
3
|
+
import '@effect/platform/FileSystem';
|
|
4
|
+
import '@effect/platform/Http/App';
|
|
5
|
+
import '@effect/platform/Http/IncomingMessage';
|
|
6
|
+
import '@effect/platform/Http/Middleware';
|
|
7
|
+
import '@effect/platform/Http/Server';
|
|
8
|
+
import '@effect/platform/Http/ServerError';
|
|
9
|
+
import 'effect/Config';
|
|
10
|
+
import 'effect/Effect';
|
|
11
|
+
import 'effect/Fiber';
|
|
12
|
+
import 'effect/Layer';
|
|
13
|
+
import 'effect/Option';
|
|
14
|
+
import 'effect/Runtime';
|
|
15
|
+
import 'effect/Stream';
|
|
16
|
+
import 'node:stream';
|
|
17
|
+
import 'node:stream/promises';
|
|
18
|
+
import '../../../Sink/dist/effect-platform-node-Sink.esm.js';
|
|
19
|
+
import '../../../dist/sink-b7397dd4.esm.js';
|
|
20
|
+
import 'effect/Channel';
|
|
21
|
+
import 'effect/Deferred';
|
|
22
|
+
import 'effect/Sink';
|
|
23
|
+
import '../../../dist/stream-066054a0.esm.js';
|
|
24
|
+
import 'effect/Chunk';
|
|
25
|
+
import 'effect/Either';
|
|
26
|
+
import 'effect/Exit';
|
|
27
|
+
import 'effect/Function';
|
|
28
|
+
import 'effect/Queue';
|
|
29
|
+
import '@effect/platform/Error';
|
|
30
|
+
import '../../../dist/formData-a1c010f8.esm.js';
|
|
31
|
+
import '@effect/platform/Http/FormData';
|
|
32
|
+
import '@effect/platform/Path';
|
|
33
|
+
import 'busboy';
|
|
34
|
+
import 'effect/FiberRef';
|
|
35
|
+
import 'node:fs';
|
|
36
|
+
import '../../../Stream/dist/effect-platform-node-Stream.esm.js';
|
|
37
|
+
import '../../../dist/incomingMessage-5eb8c3fe.esm.js';
|
|
38
|
+
import '@effect/platform/Http/Headers';
|
|
39
|
+
import '@effect/platform/Http/UrlParams';
|
|
40
|
+
import '../../../dist/platform-2c00c2c5.esm.js';
|
|
41
|
+
import '@effect/platform/Http/Platform';
|
|
42
|
+
import '@effect/platform/Http/ServerResponse';
|
|
43
|
+
import 'mime';
|
|
44
|
+
import '../../../FileSystem/dist/effect-platform-node-FileSystem.esm.js';
|
|
45
|
+
import '@effect/platform/Effectify';
|
|
46
|
+
import 'node:crypto';
|
|
47
|
+
import 'node:os';
|
|
48
|
+
import 'node:path';
|
|
49
|
+
import '../../../dist/error-4865cb95.esm.js';
|
|
50
|
+
import '../../../dist/Etag-6f08d5ed.esm.js';
|
|
51
|
+
import '@effect/platform/Http/Etag';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @since 1.0.0
|
|
55
|
+
*
|
|
56
|
+
* Also includes exports from [`@effect/platform/Http/ServerRequest`](https://effect-ts.github.io/platform/platform/Http/ServerRequest.ts.html).
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @category conversions
|
|
61
|
+
* @since 1.0.0
|
|
62
|
+
*/
|
|
63
|
+
const toIncomingMessage = requestSource;
|
|
64
|
+
|
|
65
|
+
export { toIncomingMessage };
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var ServerRequest = require('@effect/platform-node/Http/ServerRequest');
|
|
5
6
|
var App = require('@effect/platform/Http/App');
|
|
6
7
|
var Body = require('@effect/platform/Http/Body');
|
|
7
8
|
var Headers = require('@effect/platform/Http/Headers');
|
|
8
9
|
var Middleware = require('@effect/platform/Http/Middleware');
|
|
9
10
|
var Router = require('@effect/platform/Http/Router');
|
|
10
11
|
var Error = require('@effect/platform/Http/ServerError');
|
|
11
|
-
var ServerRequest = require('@effect/platform/Http/ServerRequest');
|
|
12
12
|
var ServerResponse = require('@effect/platform/Http/ServerResponse');
|
|
13
13
|
var UrlParams = require('@effect/platform/Http/UrlParams');
|
|
14
14
|
var Http_Etag_dist_effectPlatformNodeHttpEtag = require('../../dist/Etag-b38be81c.cjs.dev.js');
|
|
15
15
|
var Http_FormData_dist_effectPlatformNodeHttpFormData = require('../../dist/FormData-a9f3a51f.cjs.dev.js');
|
|
16
|
-
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../dist/Server-
|
|
16
|
+
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../dist/Server-1f2aa4ca.cjs.dev.js');
|
|
17
17
|
require('@effect/platform/Http/Etag');
|
|
18
18
|
require('effect/Effect');
|
|
19
19
|
require('effect/Layer');
|
|
@@ -36,8 +36,10 @@ require('effect/Either');
|
|
|
36
36
|
require('effect/Exit');
|
|
37
37
|
require('effect/Queue');
|
|
38
38
|
require('@effect/platform/Error');
|
|
39
|
+
require('../../dist/server-b13861a8.cjs.dev.js');
|
|
39
40
|
require('@effect/platform/Http/IncomingMessage');
|
|
40
41
|
require('@effect/platform/Http/Server');
|
|
42
|
+
require('@effect/platform/Http/ServerRequest');
|
|
41
43
|
require('effect/Config');
|
|
42
44
|
require('effect/Fiber');
|
|
43
45
|
require('effect/Runtime');
|
|
@@ -75,25 +77,25 @@ function _interopNamespace(e) {
|
|
|
75
77
|
return Object.freeze(n);
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
var ServerRequest__namespace = /*#__PURE__*/_interopNamespace(ServerRequest);
|
|
78
81
|
var App__namespace = /*#__PURE__*/_interopNamespace(App);
|
|
79
82
|
var Body__namespace = /*#__PURE__*/_interopNamespace(Body);
|
|
80
83
|
var Headers__namespace = /*#__PURE__*/_interopNamespace(Headers);
|
|
81
84
|
var Middleware__namespace = /*#__PURE__*/_interopNamespace(Middleware);
|
|
82
85
|
var Router__namespace = /*#__PURE__*/_interopNamespace(Router);
|
|
83
86
|
var Error__namespace = /*#__PURE__*/_interopNamespace(Error);
|
|
84
|
-
var ServerRequest__namespace = /*#__PURE__*/_interopNamespace(ServerRequest);
|
|
85
87
|
var ServerResponse__namespace = /*#__PURE__*/_interopNamespace(ServerResponse);
|
|
86
88
|
var UrlParams__namespace = /*#__PURE__*/_interopNamespace(UrlParams);
|
|
87
89
|
|
|
88
90
|
|
|
89
91
|
|
|
92
|
+
exports.request = ServerRequest__namespace;
|
|
90
93
|
exports.app = App__namespace;
|
|
91
94
|
exports.body = Body__namespace;
|
|
92
95
|
exports.headers = Headers__namespace;
|
|
93
96
|
exports.middleware = Middleware__namespace;
|
|
94
97
|
exports.router = Router__namespace;
|
|
95
98
|
exports.error = Error__namespace;
|
|
96
|
-
exports.request = ServerRequest__namespace;
|
|
97
99
|
exports.response = ServerResponse__namespace;
|
|
98
100
|
exports.urlParams = UrlParams__namespace;
|
|
99
101
|
exports.etag = Http_Etag_dist_effectPlatformNodeHttpEtag.Etag;
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var ServerRequest = require('@effect/platform-node/Http/ServerRequest');
|
|
5
6
|
var App = require('@effect/platform/Http/App');
|
|
6
7
|
var Body = require('@effect/platform/Http/Body');
|
|
7
8
|
var Headers = require('@effect/platform/Http/Headers');
|
|
8
9
|
var Middleware = require('@effect/platform/Http/Middleware');
|
|
9
10
|
var Router = require('@effect/platform/Http/Router');
|
|
10
11
|
var Error = require('@effect/platform/Http/ServerError');
|
|
11
|
-
var ServerRequest = require('@effect/platform/Http/ServerRequest');
|
|
12
12
|
var ServerResponse = require('@effect/platform/Http/ServerResponse');
|
|
13
13
|
var UrlParams = require('@effect/platform/Http/UrlParams');
|
|
14
14
|
var Http_Etag_dist_effectPlatformNodeHttpEtag = require('../../dist/Etag-7a3db878.cjs.prod.js');
|
|
15
15
|
var Http_FormData_dist_effectPlatformNodeHttpFormData = require('../../dist/FormData-f22b08cf.cjs.prod.js');
|
|
16
|
-
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../dist/Server-
|
|
16
|
+
var Http_Server_dist_effectPlatformNodeHttpServer = require('../../dist/Server-96c17c96.cjs.prod.js');
|
|
17
17
|
require('@effect/platform/Http/Etag');
|
|
18
18
|
require('effect/Effect');
|
|
19
19
|
require('effect/Layer');
|
|
@@ -36,8 +36,10 @@ require('effect/Either');
|
|
|
36
36
|
require('effect/Exit');
|
|
37
37
|
require('effect/Queue');
|
|
38
38
|
require('@effect/platform/Error');
|
|
39
|
+
require('../../dist/server-42346e37.cjs.prod.js');
|
|
39
40
|
require('@effect/platform/Http/IncomingMessage');
|
|
40
41
|
require('@effect/platform/Http/Server');
|
|
42
|
+
require('@effect/platform/Http/ServerRequest');
|
|
41
43
|
require('effect/Config');
|
|
42
44
|
require('effect/Fiber');
|
|
43
45
|
require('effect/Runtime');
|
|
@@ -75,25 +77,25 @@ function _interopNamespace(e) {
|
|
|
75
77
|
return Object.freeze(n);
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
var ServerRequest__namespace = /*#__PURE__*/_interopNamespace(ServerRequest);
|
|
78
81
|
var App__namespace = /*#__PURE__*/_interopNamespace(App);
|
|
79
82
|
var Body__namespace = /*#__PURE__*/_interopNamespace(Body);
|
|
80
83
|
var Headers__namespace = /*#__PURE__*/_interopNamespace(Headers);
|
|
81
84
|
var Middleware__namespace = /*#__PURE__*/_interopNamespace(Middleware);
|
|
82
85
|
var Router__namespace = /*#__PURE__*/_interopNamespace(Router);
|
|
83
86
|
var Error__namespace = /*#__PURE__*/_interopNamespace(Error);
|
|
84
|
-
var ServerRequest__namespace = /*#__PURE__*/_interopNamespace(ServerRequest);
|
|
85
87
|
var ServerResponse__namespace = /*#__PURE__*/_interopNamespace(ServerResponse);
|
|
86
88
|
var UrlParams__namespace = /*#__PURE__*/_interopNamespace(UrlParams);
|
|
87
89
|
|
|
88
90
|
|
|
89
91
|
|
|
92
|
+
exports.request = ServerRequest__namespace;
|
|
90
93
|
exports.app = App__namespace;
|
|
91
94
|
exports.body = Body__namespace;
|
|
92
95
|
exports.headers = Headers__namespace;
|
|
93
96
|
exports.middleware = Middleware__namespace;
|
|
94
97
|
exports.router = Router__namespace;
|
|
95
98
|
exports.error = Error__namespace;
|
|
96
|
-
exports.request = ServerRequest__namespace;
|
|
97
99
|
exports.response = ServerResponse__namespace;
|
|
98
100
|
exports.urlParams = UrlParams__namespace;
|
|
99
101
|
exports.etag = Http_Etag_dist_effectPlatformNodeHttpEtag.Etag;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as ServerRequest from '@effect/platform-node/Http/ServerRequest';
|
|
2
|
+
export { ServerRequest as request };
|
|
1
3
|
import * as App from '@effect/platform/Http/App';
|
|
2
4
|
export { App as app };
|
|
3
5
|
import * as Body from '@effect/platform/Http/Body';
|
|
@@ -10,15 +12,13 @@ import * as Router from '@effect/platform/Http/Router';
|
|
|
10
12
|
export { Router as router };
|
|
11
13
|
import * as Error from '@effect/platform/Http/ServerError';
|
|
12
14
|
export { Error as error };
|
|
13
|
-
import * as ServerRequest from '@effect/platform/Http/ServerRequest';
|
|
14
|
-
export { ServerRequest as request };
|
|
15
15
|
import * as ServerResponse from '@effect/platform/Http/ServerResponse';
|
|
16
16
|
export { ServerResponse as response };
|
|
17
17
|
import * as UrlParams from '@effect/platform/Http/UrlParams';
|
|
18
18
|
export { UrlParams as urlParams };
|
|
19
19
|
export { E as etag } from '../../dist/Etag-6f08d5ed.esm.js';
|
|
20
20
|
export { F as formData } from '../../dist/FormData-bc3ac5a6.esm.js';
|
|
21
|
-
export { S as server } from '../../dist/Server-
|
|
21
|
+
export { S as server } from '../../dist/Server-c315ddf2.esm.js';
|
|
22
22
|
import '@effect/platform/Http/Etag';
|
|
23
23
|
import 'effect/Effect';
|
|
24
24
|
import 'effect/Layer';
|
|
@@ -41,8 +41,10 @@ import 'effect/Either';
|
|
|
41
41
|
import 'effect/Exit';
|
|
42
42
|
import 'effect/Queue';
|
|
43
43
|
import '@effect/platform/Error';
|
|
44
|
+
import '../../dist/server-442c5e69.esm.js';
|
|
44
45
|
import '@effect/platform/Http/IncomingMessage';
|
|
45
46
|
import '@effect/platform/Http/Server';
|
|
47
|
+
import '@effect/platform/Http/ServerRequest';
|
|
46
48
|
import 'effect/Config';
|
|
47
49
|
import 'effect/Fiber';
|
|
48
50
|
import 'effect/Runtime';
|
|
@@ -70,10 +70,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
/** @internal */
|
|
73
|
-
const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
|
|
73
|
+
const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
|
|
74
74
|
|
|
75
75
|
/** @internal */
|
|
76
|
-
const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
|
|
76
|
+
const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @since 1.0.0
|
|
@@ -87,6 +87,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
|
|
|
87
87
|
*/
|
|
88
88
|
const make = make$1;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* @since 1.0.0
|
|
92
|
+
* @category layers
|
|
93
|
+
*/
|
|
94
|
+
const layer = layer$1;
|
|
95
|
+
|
|
96
|
+
exports.layer = layer;
|
|
90
97
|
exports.make = make;
|
|
91
98
|
Object.keys(Runner).forEach(function (k) {
|
|
92
99
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
@@ -70,10 +70,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
/** @internal */
|
|
73
|
-
const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
|
|
73
|
+
const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
|
|
74
74
|
|
|
75
75
|
/** @internal */
|
|
76
|
-
const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
|
|
76
|
+
const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @since 1.0.0
|
|
@@ -87,6 +87,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
|
|
|
87
87
|
*/
|
|
88
88
|
const make = make$1;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* @since 1.0.0
|
|
92
|
+
* @category layers
|
|
93
|
+
*/
|
|
94
|
+
const layer = layer$1;
|
|
95
|
+
|
|
96
|
+
exports.layer = layer;
|
|
90
97
|
exports.make = make;
|
|
91
98
|
Object.keys(Runner).forEach(function (k) {
|
|
92
99
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
@@ -43,10 +43,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
|
-
const layer = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
|
|
46
|
+
const layer$1 = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
|
-
const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer);
|
|
49
|
+
const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer$1);
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @since 1.0.0
|
|
@@ -60,4 +60,10 @@ const make$1 = (process, options) => Effect.provide(Runner.make(process, options
|
|
|
60
60
|
*/
|
|
61
61
|
const make = make$1;
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
/**
|
|
64
|
+
* @since 1.0.0
|
|
65
|
+
* @category layers
|
|
66
|
+
*/
|
|
67
|
+
const layer = layer$1;
|
|
68
|
+
|
|
69
|
+
export { layer, make };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var server = require('./server-b13861a8.cjs.dev.js');
|
|
4
|
+
var Server$1 = require('@effect/platform/Http/Server');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n["default"] = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _mergeNamespaces(n, m) {
|
|
25
|
+
m.forEach(function (e) {
|
|
26
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
27
|
+
if (k !== 'default' && !(k in n)) {
|
|
28
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
29
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return e[k]; }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return Object.freeze(n);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var Server__namespace = /*#__PURE__*/_interopNamespace(Server$1);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @since 1.0.0
|
|
43
|
+
*
|
|
44
|
+
* Also includes exports from [`@effect/platform/Http/Server`](https://effect-ts.github.io/platform/platform/Http/Server.ts.html).
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @since 1.0.0
|
|
49
|
+
* @category constructors
|
|
50
|
+
*/
|
|
51
|
+
const make = server.make;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @since 1.0.0
|
|
55
|
+
* @category constructors
|
|
56
|
+
*/
|
|
57
|
+
const makeHandler = server.makeHandler;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @since 1.0.0
|
|
61
|
+
* @category layers
|
|
62
|
+
*/
|
|
63
|
+
const layer = server.layer;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @since 1.0.0
|
|
67
|
+
* @category layers
|
|
68
|
+
*/
|
|
69
|
+
const layerConfig = server.layerConfig;
|
|
70
|
+
|
|
71
|
+
var Server = /*#__PURE__*/_mergeNamespaces({
|
|
72
|
+
__proto__: null,
|
|
73
|
+
make: make,
|
|
74
|
+
makeHandler: makeHandler,
|
|
75
|
+
layer: layer,
|
|
76
|
+
layerConfig: layerConfig
|
|
77
|
+
}, [Server__namespace]);
|
|
78
|
+
|
|
79
|
+
exports.Server = Server;
|
|
80
|
+
exports.layer = layer;
|
|
81
|
+
exports.layerConfig = layerConfig;
|
|
82
|
+
exports.make = make;
|
|
83
|
+
exports.makeHandler = makeHandler;
|