@effect/platform-bun 0.7.8 → 0.8.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.
- package/BunContext/dist/effect-platform-bun-BunContext.cjs.dev.js +39 -7
- package/BunContext/dist/effect-platform-bun-BunContext.cjs.prod.js +39 -7
- package/BunContext/dist/effect-platform-bun-BunContext.esm.js +22 -6
- package/Command/dist/effect-platform-bun-Command.cjs.dev.js +32 -32
- package/Command/dist/effect-platform-bun-Command.cjs.prod.js +32 -32
- package/CommandExecutor/dist/effect-platform-bun-CommandExecutor.cjs.dev.js +4 -4
- package/CommandExecutor/dist/effect-platform-bun-CommandExecutor.cjs.prod.js +4 -4
- package/Effectify/dist/effect-platform-bun-Effectify.cjs.dev.js +2 -2
- package/Effectify/dist/effect-platform-bun-Effectify.cjs.prod.js +2 -2
- package/Error/dist/effect-platform-bun-Error.cjs.dev.js +6 -14
- package/Error/dist/effect-platform-bun-Error.cjs.mjs +1 -3
- package/Error/dist/effect-platform-bun-Error.cjs.prod.js +6 -14
- package/Error/dist/effect-platform-bun-Error.esm.js +1 -1
- package/FileSystem/dist/effect-platform-bun-FileSystem.cjs.dev.js +6 -6
- package/FileSystem/dist/effect-platform-bun-FileSystem.cjs.prod.js +6 -6
- package/Http/Server/dist/effect-platform-bun-Http-Server.cjs.dev.js +2 -1
- package/Http/Server/dist/effect-platform-bun-Http-Server.cjs.prod.js +2 -1
- package/Http/Server/dist/effect-platform-bun-Http-Server.esm.js +2 -1
- package/HttpClient/dist/effect-platform-bun-HttpClient.cjs.dev.js +15 -15
- package/HttpClient/dist/effect-platform-bun-HttpClient.cjs.prod.js +15 -15
- package/HttpServer/dist/effect-platform-bun-HttpServer.cjs.dev.js +16 -16
- package/HttpServer/dist/effect-platform-bun-HttpServer.cjs.prod.js +16 -16
- package/HttpServer/dist/effect-platform-bun-HttpServer.esm.js +1 -1
- package/KeyValueStore/dist/effect-platform-bun-KeyValueStore.cjs.dev.js +6 -6
- package/KeyValueStore/dist/effect-platform-bun-KeyValueStore.cjs.prod.js +6 -6
- package/Path/dist/effect-platform-bun-Path.cjs.dev.js +8 -8
- package/Path/dist/effect-platform-bun-Path.cjs.prod.js +8 -8
- package/Runtime/dist/effect-platform-bun-Runtime.cjs.dev.js +4 -4
- package/Runtime/dist/effect-platform-bun-Runtime.cjs.prod.js +4 -4
- package/Sink/dist/effect-platform-bun-Sink.cjs.dev.js +2 -2
- package/Sink/dist/effect-platform-bun-Sink.cjs.prod.js +2 -2
- package/Stream/dist/effect-platform-bun-Stream.cjs.dev.js +6 -6
- package/Stream/dist/effect-platform-bun-Stream.cjs.prod.js +6 -6
- package/dist/{Server-4fe393ab.cjs.prod.js → Server-569bf4fe.cjs.prod.js} +4 -2
- package/dist/{Server-c2ad8a41.esm.js → Server-bb2be0ce.esm.js} +3 -2
- package/dist/{Server-3766cdb3.cjs.dev.js → Server-db27f98f.cjs.dev.js} +4 -2
- package/dist/declarations/src/Error.d.ts +7 -6
- package/dist/declarations/src/Error.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/effect-platform-bun.cjs.dev.js +58 -66
- package/dist/effect-platform-bun.cjs.prod.js +58 -66
- package/dist/effect-platform-bun.esm.js +26 -53
- package/package.json +9 -6
- package/src/Error.ts +9 -6
- package/src/index.ts +13 -13
- package/src/internal/http/server.ts +17 -13
- package/dist/BunContext-3aacfc41.cjs.dev.js +0 -50
- package/dist/BunContext-af359ac7.cjs.prod.js +0 -50
- package/dist/BunContext-d221b77e.esm.js +0 -27
- package/dist/Command-073352c2.cjs.dev.js +0 -29
- package/dist/Command-86aff121.cjs.prod.js +0 -29
- package/dist/Command-9e5827f0.esm.js +0 -27
- package/dist/CommandExecutor-0d9edb3d.esm.js +0 -13
- package/dist/CommandExecutor-79029a6f.cjs.prod.js +0 -15
- package/dist/CommandExecutor-9fdee39f.cjs.dev.js +0 -15
- package/dist/Effectify-1e2cf960.cjs.dev.js +0 -14
- package/dist/Effectify-583bea25.cjs.prod.js +0 -14
- package/dist/Effectify-d2cee621.esm.js +0 -12
- package/dist/Error-06928f75.cjs.dev.js +0 -18
- package/dist/Error-1ebee51c.esm.js +0 -16
- package/dist/Error-77b41701.cjs.prod.js +0 -18
- package/dist/FileSystem-0f2d7096.cjs.prod.js +0 -16
- package/dist/FileSystem-3eb9e057.cjs.dev.js +0 -16
- package/dist/FileSystem-baa29214.esm.js +0 -14
- package/dist/HttpClient-91ed29d7.cjs.dev.js +0 -52
- package/dist/HttpClient-a34271de.cjs.prod.js +0 -52
- package/dist/HttpClient-ac0d4f82.esm.js +0 -24
- package/dist/HttpServer-4116a022.esm.js +0 -34
- package/dist/HttpServer-93d1b5e2.cjs.prod.js +0 -66
- package/dist/HttpServer-ae717a37.cjs.dev.js +0 -66
- package/dist/KeyValueStore-151c0d10.esm.js +0 -30
- package/dist/KeyValueStore-9e969cb3.cjs.dev.js +0 -52
- package/dist/KeyValueStore-ddd3d960.cjs.prod.js +0 -52
- package/dist/Path-42c3fda2.esm.js +0 -15
- package/dist/Path-49561a01.cjs.dev.js +0 -17
- package/dist/Path-9c4bff86.cjs.prod.js +0 -17
- package/dist/Runtime-399be72e.cjs.prod.js +0 -15
- package/dist/Runtime-ad8dde5f.cjs.dev.js +0 -15
- package/dist/Runtime-e0c4ce6d.esm.js +0 -13
- package/dist/Sink-0100d655.cjs.prod.js +0 -14
- package/dist/Sink-3c75e467.esm.js +0 -12
- package/dist/Sink-59df5de5.cjs.dev.js +0 -14
- package/dist/Stream-997a923c.esm.js +0 -14
- package/dist/Stream-a7a516a8.cjs.dev.js +0 -16
- package/dist/Stream-d0a08460.cjs.prod.js +0 -16
|
@@ -2,72 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
require('effect/Function');
|
|
19
|
-
require('effect/Layer');
|
|
20
|
-
require('@effect/platform-node/FileSystem');
|
|
21
|
-
require('@effect/platform-node/Path');
|
|
22
|
-
require('@effect/platform-node/CommandExecutor');
|
|
23
|
-
require('@effect/platform/Command');
|
|
24
|
-
require('@effect/platform/Effectify');
|
|
25
|
-
require('@effect/platform/Error');
|
|
26
|
-
require('@effect/platform/Http/Body');
|
|
27
|
-
require('@effect/platform/Http/Client');
|
|
28
|
-
require('@effect/platform/Http/ClientError');
|
|
29
|
-
require('@effect/platform/Http/ClientRequest');
|
|
30
|
-
require('@effect/platform/Http/ClientResponse');
|
|
31
|
-
require('@effect/platform/Http/Headers');
|
|
32
|
-
require('@effect/platform/Http/UrlParams');
|
|
33
|
-
require('@effect/platform-node/Http/Etag');
|
|
34
|
-
require('@effect/platform-node/Http/FormData');
|
|
35
|
-
require('@effect/platform/Http/App');
|
|
36
|
-
require('@effect/platform/Http/Middleware');
|
|
37
|
-
require('@effect/platform/Http/Router');
|
|
38
|
-
require('@effect/platform/Http/ServerError');
|
|
39
|
-
require('@effect/platform/Http/ServerRequest');
|
|
40
|
-
require('@effect/platform/Http/ServerResponse');
|
|
41
|
-
require('./Server-4fe393ab.cjs.prod.js');
|
|
42
|
-
require('@effect/platform/Http/IncomingMessage');
|
|
43
|
-
require('@effect/platform/Http/Server');
|
|
44
|
-
require('effect/Cause');
|
|
45
|
-
require('effect/Config');
|
|
46
|
-
require('effect/Effect');
|
|
47
|
-
require('effect/Option');
|
|
48
|
-
require('effect/Runtime');
|
|
49
|
-
require('effect/Stream');
|
|
50
|
-
require('node:stream');
|
|
51
|
-
require('../Http/Platform/dist/effect-platform-bun-Http-Platform.cjs.prod.js');
|
|
52
|
-
require('@effect/platform/Http/Platform');
|
|
53
|
-
require('@effect/platform/KeyValueStore');
|
|
54
|
-
require('@effect/platform-node/KeyValueStore');
|
|
55
|
-
require('@effect/platform-node/Runtime');
|
|
56
|
-
require('@effect/platform-node/Sink');
|
|
57
|
-
require('@effect/platform-node/Stream');
|
|
5
|
+
var BunContext = require('@effect/platform-bun/BunContext');
|
|
6
|
+
var Command = require('@effect/platform-bun/Command');
|
|
7
|
+
var CommandExecutor = require('@effect/platform-bun/CommandExecutor');
|
|
8
|
+
var Effectify = require('@effect/platform-bun/Effectify');
|
|
9
|
+
var Error = require('@effect/platform-bun/Error');
|
|
10
|
+
var FileSystem = require('@effect/platform-bun/FileSystem');
|
|
11
|
+
var HttpClient = require('@effect/platform-bun/HttpClient');
|
|
12
|
+
var HttpServer = require('@effect/platform-bun/HttpServer');
|
|
13
|
+
var KeyValueStore = require('@effect/platform-bun/KeyValueStore');
|
|
14
|
+
var Path = require('@effect/platform-bun/Path');
|
|
15
|
+
var Runtime = require('@effect/platform-bun/Runtime');
|
|
16
|
+
var Sink = require('@effect/platform-bun/Sink');
|
|
17
|
+
var Stream = require('@effect/platform-bun/Stream');
|
|
58
18
|
|
|
19
|
+
function _interopNamespace(e) {
|
|
20
|
+
if (e && e.__esModule) return e;
|
|
21
|
+
var n = Object.create(null);
|
|
22
|
+
if (e) {
|
|
23
|
+
Object.keys(e).forEach(function (k) {
|
|
24
|
+
if (k !== 'default') {
|
|
25
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
26
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return e[k]; }
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
n["default"] = e;
|
|
34
|
+
return Object.freeze(n);
|
|
35
|
+
}
|
|
59
36
|
|
|
37
|
+
var BunContext__namespace = /*#__PURE__*/_interopNamespace(BunContext);
|
|
38
|
+
var Command__namespace = /*#__PURE__*/_interopNamespace(Command);
|
|
39
|
+
var CommandExecutor__namespace = /*#__PURE__*/_interopNamespace(CommandExecutor);
|
|
40
|
+
var Effectify__namespace = /*#__PURE__*/_interopNamespace(Effectify);
|
|
41
|
+
var Error__namespace = /*#__PURE__*/_interopNamespace(Error);
|
|
42
|
+
var FileSystem__namespace = /*#__PURE__*/_interopNamespace(FileSystem);
|
|
43
|
+
var HttpClient__namespace = /*#__PURE__*/_interopNamespace(HttpClient);
|
|
44
|
+
var HttpServer__namespace = /*#__PURE__*/_interopNamespace(HttpServer);
|
|
45
|
+
var KeyValueStore__namespace = /*#__PURE__*/_interopNamespace(KeyValueStore);
|
|
46
|
+
var Path__namespace = /*#__PURE__*/_interopNamespace(Path);
|
|
47
|
+
var Runtime__namespace = /*#__PURE__*/_interopNamespace(Runtime);
|
|
48
|
+
var Sink__namespace = /*#__PURE__*/_interopNamespace(Sink);
|
|
49
|
+
var Stream__namespace = /*#__PURE__*/_interopNamespace(Stream);
|
|
60
50
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
exports.BunContext = BunContext__namespace;
|
|
54
|
+
exports.Command = Command__namespace;
|
|
55
|
+
exports.CommandExecutor = CommandExecutor__namespace;
|
|
56
|
+
exports.Effectify = Effectify__namespace;
|
|
57
|
+
exports.Error = Error__namespace;
|
|
58
|
+
exports.FileSystem = FileSystem__namespace;
|
|
59
|
+
exports.HttpClient = HttpClient__namespace;
|
|
60
|
+
exports.HttpServer = HttpServer__namespace;
|
|
61
|
+
exports.KeyValueStore = KeyValueStore__namespace;
|
|
62
|
+
exports.Path = Path__namespace;
|
|
63
|
+
exports.Runtime = Runtime__namespace;
|
|
64
|
+
exports.Sink = Sink__namespace;
|
|
65
|
+
exports.Stream = Stream__namespace;
|
|
@@ -1,53 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import 'effect/
|
|
16
|
-
|
|
17
|
-
import '@effect/platform-
|
|
18
|
-
|
|
19
|
-
import '@effect/platform/
|
|
20
|
-
|
|
21
|
-
import '@effect/platform/
|
|
22
|
-
|
|
23
|
-
import '@effect/platform/
|
|
24
|
-
|
|
25
|
-
import '@effect/platform/
|
|
26
|
-
|
|
27
|
-
import '@effect/platform/Http/Headers';
|
|
28
|
-
import '@effect/platform/Http/UrlParams';
|
|
29
|
-
import '@effect/platform-node/Http/Etag';
|
|
30
|
-
import '@effect/platform-node/Http/FormData';
|
|
31
|
-
import '@effect/platform/Http/App';
|
|
32
|
-
import '@effect/platform/Http/Middleware';
|
|
33
|
-
import '@effect/platform/Http/Router';
|
|
34
|
-
import '@effect/platform/Http/ServerError';
|
|
35
|
-
import '@effect/platform/Http/ServerRequest';
|
|
36
|
-
import '@effect/platform/Http/ServerResponse';
|
|
37
|
-
import './Server-c2ad8a41.esm.js';
|
|
38
|
-
import '@effect/platform/Http/IncomingMessage';
|
|
39
|
-
import '@effect/platform/Http/Server';
|
|
40
|
-
import 'effect/Cause';
|
|
41
|
-
import 'effect/Config';
|
|
42
|
-
import 'effect/Effect';
|
|
43
|
-
import 'effect/Option';
|
|
44
|
-
import 'effect/Runtime';
|
|
45
|
-
import 'effect/Stream';
|
|
46
|
-
import 'node:stream';
|
|
47
|
-
import '../Http/Platform/dist/effect-platform-bun-Http-Platform.esm.js';
|
|
48
|
-
import '@effect/platform/Http/Platform';
|
|
49
|
-
import '@effect/platform/KeyValueStore';
|
|
50
|
-
import '@effect/platform-node/KeyValueStore';
|
|
51
|
-
import '@effect/platform-node/Runtime';
|
|
52
|
-
import '@effect/platform-node/Sink';
|
|
53
|
-
import '@effect/platform-node/Stream';
|
|
1
|
+
import * as BunContext from '@effect/platform-bun/BunContext';
|
|
2
|
+
export { BunContext };
|
|
3
|
+
import * as Command from '@effect/platform-bun/Command';
|
|
4
|
+
export { Command };
|
|
5
|
+
import * as CommandExecutor from '@effect/platform-bun/CommandExecutor';
|
|
6
|
+
export { CommandExecutor };
|
|
7
|
+
import * as Effectify from '@effect/platform-bun/Effectify';
|
|
8
|
+
export { Effectify };
|
|
9
|
+
import * as Error from '@effect/platform-bun/Error';
|
|
10
|
+
export { Error };
|
|
11
|
+
import * as FileSystem from '@effect/platform-bun/FileSystem';
|
|
12
|
+
export { FileSystem };
|
|
13
|
+
import * as HttpClient from '@effect/platform-bun/HttpClient';
|
|
14
|
+
export { HttpClient };
|
|
15
|
+
import * as HttpServer from '@effect/platform-bun/HttpServer';
|
|
16
|
+
export { HttpServer };
|
|
17
|
+
import * as KeyValueStore from '@effect/platform-bun/KeyValueStore';
|
|
18
|
+
export { KeyValueStore };
|
|
19
|
+
import * as Path from '@effect/platform-bun/Path';
|
|
20
|
+
export { Path };
|
|
21
|
+
import * as Runtime from '@effect/platform-bun/Runtime';
|
|
22
|
+
export { Runtime };
|
|
23
|
+
import * as Sink from '@effect/platform-bun/Sink';
|
|
24
|
+
export { Sink };
|
|
25
|
+
import * as Stream from '@effect/platform-bun/Stream';
|
|
26
|
+
export { Stream };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform-bun",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Unified interfaces for common platform-specific services",
|
|
5
5
|
"main": "dist/effect-platform-bun.cjs.js",
|
|
6
6
|
"module": "dist/effect-platform-bun.esm.js",
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"importConditionDefaultExport": "default"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
"effect": {
|
|
18
|
+
"generateIndex": true
|
|
19
|
+
},
|
|
17
20
|
"publishConfig": {
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|
|
@@ -27,16 +30,16 @@
|
|
|
27
30
|
"license": "MIT",
|
|
28
31
|
"sideEffects": false,
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"@effect/platform": "^0.
|
|
31
|
-
"@effect/platform-node": "^0.
|
|
33
|
+
"@effect/platform": "^0.19.0",
|
|
34
|
+
"@effect/platform-node": "^0.20.0"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@effect/schema": "^0.
|
|
37
|
+
"@effect/schema": "^0.40.0",
|
|
35
38
|
"bun-types": "^1.0.3",
|
|
36
|
-
"effect": "2.0.0-next.
|
|
39
|
+
"effect": "2.0.0-next.45"
|
|
37
40
|
},
|
|
38
41
|
"peerDependencies": {
|
|
39
|
-
"effect": "^2.0.0-next.
|
|
42
|
+
"effect": "^2.0.0-next.45"
|
|
40
43
|
},
|
|
41
44
|
"files": [
|
|
42
45
|
"src",
|
package/src/Error.ts
CHANGED
|
@@ -8,11 +8,6 @@ export {
|
|
|
8
8
|
* @category error
|
|
9
9
|
*/
|
|
10
10
|
BadArgument,
|
|
11
|
-
/**
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
* @category error
|
|
14
|
-
*/
|
|
15
|
-
PlatformError,
|
|
16
11
|
/**
|
|
17
12
|
* @since 1.0.0
|
|
18
13
|
* @category type id
|
|
@@ -22,7 +17,15 @@ export {
|
|
|
22
17
|
* @since 1.0.0
|
|
23
18
|
* @category error
|
|
24
19
|
*/
|
|
25
|
-
SystemError
|
|
20
|
+
SystemError
|
|
21
|
+
} from "@effect/platform/Error"
|
|
22
|
+
|
|
23
|
+
export type {
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category model
|
|
27
|
+
*/
|
|
28
|
+
PlatformError,
|
|
26
29
|
/**
|
|
27
30
|
* @since 1.0.0
|
|
28
31
|
* @category model
|
package/src/index.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
export * as BunContext from "
|
|
4
|
+
export * as BunContext from "@effect/platform-bun/BunContext"
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @since 1.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * as Command from "
|
|
9
|
+
export * as Command from "@effect/platform-bun/Command"
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @since 1.0.0
|
|
13
13
|
*/
|
|
14
|
-
export * as CommandExecutor from "
|
|
14
|
+
export * as CommandExecutor from "@effect/platform-bun/CommandExecutor"
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|
|
18
18
|
*/
|
|
19
|
-
export * as Effectify from "
|
|
19
|
+
export * as Effectify from "@effect/platform-bun/Effectify"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @since 1.0.0
|
|
23
23
|
*/
|
|
24
|
-
export * as Error from "
|
|
24
|
+
export * as Error from "@effect/platform-bun/Error"
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @since 1.0.0
|
|
28
28
|
*/
|
|
29
|
-
export * as FileSystem from "
|
|
29
|
+
export * as FileSystem from "@effect/platform-bun/FileSystem"
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* @since 1.0.0
|
|
33
33
|
*/
|
|
34
|
-
export * as HttpClient from "
|
|
34
|
+
export * as HttpClient from "@effect/platform-bun/HttpClient"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @since 1.0.0
|
|
38
38
|
*/
|
|
39
|
-
export * as HttpServer from "
|
|
39
|
+
export * as HttpServer from "@effect/platform-bun/HttpServer"
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @since 1.0.0
|
|
43
43
|
*
|
|
44
44
|
* Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
|
|
45
45
|
*/
|
|
46
|
-
export * as KeyValueStore from "
|
|
46
|
+
export * as KeyValueStore from "@effect/platform-bun/KeyValueStore"
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @since 1.0.0
|
|
50
50
|
*/
|
|
51
|
-
export * as Path from "
|
|
51
|
+
export * as Path from "@effect/platform-bun/Path"
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* @since 1.0.0
|
|
55
55
|
*/
|
|
56
|
-
export * as Runtime from "
|
|
56
|
+
export * as Runtime from "@effect/platform-bun/Runtime"
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* @since 1.0.0
|
|
60
60
|
*/
|
|
61
|
-
export * as Sink from "
|
|
61
|
+
export * as Sink from "@effect/platform-bun/Sink"
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @since 1.0.0
|
|
65
65
|
*/
|
|
66
|
-
export * as Stream from "
|
|
66
|
+
export * as Stream from "@effect/platform-bun/Stream"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as FormData from "@effect/platform-node/Http/FormData"
|
|
2
2
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
3
|
-
import
|
|
3
|
+
import * as App from "@effect/platform/Http/App"
|
|
4
4
|
import * as Headers from "@effect/platform/Http/Headers"
|
|
5
5
|
import * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
|
|
6
6
|
import type { Method } from "@effect/platform/Http/Method"
|
|
@@ -130,18 +130,22 @@ const makeResponse = (request: ServerRequest.ServerRequest, response: ServerResp
|
|
|
130
130
|
|
|
131
131
|
const respond = Middleware.make((httpApp) =>
|
|
132
132
|
Effect.flatMap(
|
|
133
|
-
|
|
134
|
-
(
|
|
135
|
-
Effect.
|
|
136
|
-
|
|
137
|
-
(
|
|
138
|
-
Effect.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
133
|
+
App.preResponseHandler,
|
|
134
|
+
(preResponseHandler) =>
|
|
135
|
+
Effect.flatMap(
|
|
136
|
+
ServerRequest.ServerRequest,
|
|
137
|
+
(request) =>
|
|
138
|
+
Effect.onExit(
|
|
139
|
+
Effect.flatMap(httpApp, (response) => preResponseHandler(request, response)),
|
|
140
|
+
(exit) =>
|
|
141
|
+
Effect.sync(() => {
|
|
142
|
+
if (exit._tag === "Success") {
|
|
143
|
+
;(request as ServerRequestImpl).resolve(makeResponse(request, exit.value))
|
|
144
|
+
} else {
|
|
145
|
+
;(request as ServerRequestImpl).reject(Cause.pretty(exit.cause))
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
)
|
|
145
149
|
)
|
|
146
150
|
)
|
|
147
151
|
)
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Function = require('effect/Function');
|
|
4
|
-
var Layer = require('effect/Layer');
|
|
5
|
-
var FileSystem = require('@effect/platform-node/FileSystem');
|
|
6
|
-
var Path = require('@effect/platform-node/Path');
|
|
7
|
-
var CommandExecutor = require('@effect/platform-node/CommandExecutor');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var Layer__namespace = /*#__PURE__*/_interopNamespace(Layer);
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @since 1.0.0
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category models
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category layer
|
|
41
|
-
*/
|
|
42
|
-
const layer = /*#__PURE__*/Function.pipe(FileSystem.layer, /*#__PURE__*/Layer__namespace.merge(Path.layer), /*#__PURE__*/Layer__namespace.merge( /*#__PURE__*/Layer__namespace.provideMerge(FileSystem.layer, CommandExecutor.layer)));
|
|
43
|
-
|
|
44
|
-
var BunContext = /*#__PURE__*/Object.freeze({
|
|
45
|
-
__proto__: null,
|
|
46
|
-
layer: layer
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
exports.BunContext = BunContext;
|
|
50
|
-
exports.layer = layer;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Function = require('effect/Function');
|
|
4
|
-
var Layer = require('effect/Layer');
|
|
5
|
-
var FileSystem = require('@effect/platform-node/FileSystem');
|
|
6
|
-
var Path = require('@effect/platform-node/Path');
|
|
7
|
-
var CommandExecutor = require('@effect/platform-node/CommandExecutor');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var Layer__namespace = /*#__PURE__*/_interopNamespace(Layer);
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @since 1.0.0
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category models
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category layer
|
|
41
|
-
*/
|
|
42
|
-
const layer = /*#__PURE__*/Function.pipe(FileSystem.layer, /*#__PURE__*/Layer__namespace.merge(Path.layer), /*#__PURE__*/Layer__namespace.merge( /*#__PURE__*/Layer__namespace.provideMerge(FileSystem.layer, CommandExecutor.layer)));
|
|
43
|
-
|
|
44
|
-
var BunContext = /*#__PURE__*/Object.freeze({
|
|
45
|
-
__proto__: null,
|
|
46
|
-
layer: layer
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
exports.BunContext = BunContext;
|
|
50
|
-
exports.layer = layer;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { pipe } from 'effect/Function';
|
|
2
|
-
import * as Layer from 'effect/Layer';
|
|
3
|
-
import { layer as layer$1 } from '@effect/platform-node/FileSystem';
|
|
4
|
-
import { layer as layer$2 } from '@effect/platform-node/Path';
|
|
5
|
-
import { layer as layer$3 } from '@effect/platform-node/CommandExecutor';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
* @category models
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
* @category layer
|
|
19
|
-
*/
|
|
20
|
-
const layer = /*#__PURE__*/pipe(layer$1, /*#__PURE__*/Layer.merge(layer$2), /*#__PURE__*/Layer.merge( /*#__PURE__*/Layer.provideMerge(layer$1, layer$3)));
|
|
21
|
-
|
|
22
|
-
var BunContext = /*#__PURE__*/Object.freeze({
|
|
23
|
-
__proto__: null,
|
|
24
|
-
layer: layer
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export { BunContext as B, layer as l };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Command$1 = require('@effect/platform/Command');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
var Command = /*#__PURE__*/Object.freeze({
|
|
10
|
-
__proto__: null,
|
|
11
|
-
env: Command$1.env,
|
|
12
|
-
exitCode: Command$1.exitCode,
|
|
13
|
-
feed: Command$1.feed,
|
|
14
|
-
flatten: Command$1.flatten,
|
|
15
|
-
isCommand: Command$1.isCommand,
|
|
16
|
-
lines: Command$1.lines,
|
|
17
|
-
make: Command$1.make,
|
|
18
|
-
pipeTo: Command$1.pipeTo,
|
|
19
|
-
start: Command$1.start,
|
|
20
|
-
stderr: Command$1.stderr,
|
|
21
|
-
stdin: Command$1.stdin,
|
|
22
|
-
stdout: Command$1.stdout,
|
|
23
|
-
stream: Command$1.stream,
|
|
24
|
-
streamLines: Command$1.streamLines,
|
|
25
|
-
string: Command$1.string,
|
|
26
|
-
workingDirectory: Command$1.workingDirectory
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
exports.Command = Command;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Command$1 = require('@effect/platform/Command');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
var Command = /*#__PURE__*/Object.freeze({
|
|
10
|
-
__proto__: null,
|
|
11
|
-
env: Command$1.env,
|
|
12
|
-
exitCode: Command$1.exitCode,
|
|
13
|
-
feed: Command$1.feed,
|
|
14
|
-
flatten: Command$1.flatten,
|
|
15
|
-
isCommand: Command$1.isCommand,
|
|
16
|
-
lines: Command$1.lines,
|
|
17
|
-
make: Command$1.make,
|
|
18
|
-
pipeTo: Command$1.pipeTo,
|
|
19
|
-
start: Command$1.start,
|
|
20
|
-
stderr: Command$1.stderr,
|
|
21
|
-
stdin: Command$1.stdin,
|
|
22
|
-
stdout: Command$1.stdout,
|
|
23
|
-
stream: Command$1.stream,
|
|
24
|
-
streamLines: Command$1.streamLines,
|
|
25
|
-
string: Command$1.string,
|
|
26
|
-
workingDirectory: Command$1.workingDirectory
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
exports.Command = Command;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { env, exitCode, feed, flatten, isCommand, lines, make, pipeTo, start, stderr, stdin, stdout, stream, streamLines, string, workingDirectory } from '@effect/platform/Command';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @since 1.0.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var Command = /*#__PURE__*/Object.freeze({
|
|
8
|
-
__proto__: null,
|
|
9
|
-
env: env,
|
|
10
|
-
exitCode: exitCode,
|
|
11
|
-
feed: feed,
|
|
12
|
-
flatten: flatten,
|
|
13
|
-
isCommand: isCommand,
|
|
14
|
-
lines: lines,
|
|
15
|
-
make: make,
|
|
16
|
-
pipeTo: pipeTo,
|
|
17
|
-
start: start,
|
|
18
|
-
stderr: stderr,
|
|
19
|
-
stdin: stdin,
|
|
20
|
-
stdout: stdout,
|
|
21
|
-
stream: stream,
|
|
22
|
-
streamLines: streamLines,
|
|
23
|
-
string: string,
|
|
24
|
-
workingDirectory: workingDirectory
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export { Command as C };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CommandExecutor as CommandExecutor$1, layer } from '@effect/platform-node/CommandExecutor';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @since 1.0.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var CommandExecutor = /*#__PURE__*/Object.freeze({
|
|
8
|
-
__proto__: null,
|
|
9
|
-
CommandExecutor: CommandExecutor$1,
|
|
10
|
-
layer: layer
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export { CommandExecutor as C };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CommandExecutor$1 = require('@effect/platform-node/CommandExecutor');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
var CommandExecutor = /*#__PURE__*/Object.freeze({
|
|
10
|
-
__proto__: null,
|
|
11
|
-
CommandExecutor: CommandExecutor$1.CommandExecutor,
|
|
12
|
-
layer: CommandExecutor$1.layer
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
exports.CommandExecutor = CommandExecutor;
|