@effect/platform-bun 0.1.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 (126) hide show
  1. package/BunContext.d.ts +15 -0
  2. package/BunContext.d.ts.map +1 -0
  3. package/BunContext.js +23 -0
  4. package/BunContext.js.map +1 -0
  5. package/Command.d.ts +111 -0
  6. package/Command.d.ts.map +1 -0
  7. package/Command.js +103 -0
  8. package/Command.js.map +1 -0
  9. package/CommandExecutor.d.ts +41 -0
  10. package/CommandExecutor.d.ts.map +1 -0
  11. package/CommandExecutor.js +19 -0
  12. package/CommandExecutor.js.map +1 -0
  13. package/Effectify.d.ts +19 -0
  14. package/Effectify.d.ts.map +1 -0
  15. package/Effectify.js +13 -0
  16. package/Effectify.js.map +1 -0
  17. package/Error.d.ts +30 -0
  18. package/Error.d.ts.map +1 -0
  19. package/Error.js +25 -0
  20. package/Error.js.map +1 -0
  21. package/FileSystem.d.ts +71 -0
  22. package/FileSystem.d.ts.map +1 -0
  23. package/FileSystem.js +25 -0
  24. package/FileSystem.js.map +1 -0
  25. package/Http/Server.d.ts +34 -0
  26. package/Http/Server.d.ts.map +1 -0
  27. package/Http/Server.js +49 -0
  28. package/Http/Server.js.map +1 -0
  29. package/Http/ServerResponse.d.ts +23 -0
  30. package/Http/ServerResponse.d.ts.map +1 -0
  31. package/Http/ServerResponse.js +38 -0
  32. package/Http/ServerResponse.js.map +1 -0
  33. package/HttpClient.d.ts +61 -0
  34. package/HttpClient.d.ts.map +1 -0
  35. package/HttpClient.js +23 -0
  36. package/HttpClient.js.map +1 -0
  37. package/HttpServer.d.ts +101 -0
  38. package/HttpServer.d.ts.map +1 -0
  39. package/HttpServer.js +33 -0
  40. package/HttpServer.js.map +1 -0
  41. package/KeyValueStore.d.ts +13 -0
  42. package/KeyValueStore.d.ts.map +1 -0
  43. package/KeyValueStore.js +28 -0
  44. package/KeyValueStore.js.map +1 -0
  45. package/LICENSE +21 -0
  46. package/Path.d.ts +25 -0
  47. package/Path.d.ts.map +1 -0
  48. package/Path.js +31 -0
  49. package/Path.js.map +1 -0
  50. package/README.md +3 -0
  51. package/Runtime.d.ts +26 -0
  52. package/Runtime.d.ts.map +1 -0
  53. package/Runtime.js +19 -0
  54. package/Runtime.js.map +1 -0
  55. package/Sink.d.ts +16 -0
  56. package/Sink.d.ts.map +1 -0
  57. package/Sink.js +13 -0
  58. package/Sink.js.map +1 -0
  59. package/Stream.d.ts +26 -0
  60. package/Stream.d.ts.map +1 -0
  61. package/Stream.js +25 -0
  62. package/Stream.js.map +1 -0
  63. package/internal/http/server.d.ts +2 -0
  64. package/internal/http/server.d.ts.map +1 -0
  65. package/internal/http/server.js +203 -0
  66. package/internal/http/server.js.map +1 -0
  67. package/internal/http/serverResponse.d.ts +2 -0
  68. package/internal/http/serverResponse.d.ts.map +1 -0
  69. package/internal/http/serverResponse.js +52 -0
  70. package/internal/http/serverResponse.js.map +1 -0
  71. package/mjs/BunContext.mjs +14 -0
  72. package/mjs/BunContext.mjs.map +1 -0
  73. package/mjs/Command.mjs +85 -0
  74. package/mjs/Command.mjs.map +1 -0
  75. package/mjs/CommandExecutor.mjs +15 -0
  76. package/mjs/CommandExecutor.mjs.map +1 -0
  77. package/mjs/Effectify.mjs +10 -0
  78. package/mjs/Effectify.mjs.map +1 -0
  79. package/mjs/Error.mjs +20 -0
  80. package/mjs/Error.mjs.map +1 -0
  81. package/mjs/FileSystem.mjs +20 -0
  82. package/mjs/FileSystem.mjs.map +1 -0
  83. package/mjs/Http/Server.mjs +21 -0
  84. package/mjs/Http/Server.mjs.map +1 -0
  85. package/mjs/Http/ServerResponse.mjs +13 -0
  86. package/mjs/Http/ServerResponse.mjs.map +1 -0
  87. package/mjs/HttpClient.mjs +61 -0
  88. package/mjs/HttpClient.mjs.map +1 -0
  89. package/mjs/HttpServer.mjs +101 -0
  90. package/mjs/HttpServer.mjs.map +1 -0
  91. package/mjs/KeyValueStore.mjs +13 -0
  92. package/mjs/KeyValueStore.mjs.map +1 -0
  93. package/mjs/Path.mjs +25 -0
  94. package/mjs/Path.mjs.map +1 -0
  95. package/mjs/Runtime.mjs +15 -0
  96. package/mjs/Runtime.mjs.map +1 -0
  97. package/mjs/Sink.mjs +10 -0
  98. package/mjs/Sink.mjs.map +1 -0
  99. package/mjs/Stream.mjs +20 -0
  100. package/mjs/Stream.mjs.map +1 -0
  101. package/mjs/internal/http/server.mjs +192 -0
  102. package/mjs/internal/http/server.mjs.map +1 -0
  103. package/mjs/internal/http/serverResponse.mjs +42 -0
  104. package/mjs/internal/http/serverResponse.mjs.map +1 -0
  105. package/package.json +33 -0
  106. package/src/BunContext.ts +24 -0
  107. package/src/Command.ts +114 -0
  108. package/src/CommandExecutor.ts +44 -0
  109. package/src/Effectify.ts +22 -0
  110. package/src/Error.ts +31 -0
  111. package/src/FileSystem.ts +74 -0
  112. package/src/Http/Server.ts +43 -0
  113. package/src/Http/ServerResponse.ts +33 -0
  114. package/src/HttpClient.ts +62 -0
  115. package/src/HttpServer.ts +102 -0
  116. package/src/KeyValueStore.ts +15 -0
  117. package/src/Path.ts +26 -0
  118. package/src/Runtime.ts +29 -0
  119. package/src/Sink.ts +19 -0
  120. package/src/Stream.ts +29 -0
  121. package/src/internal/http/server.ts +263 -0
  122. package/src/internal/http/serverResponse.ts +52 -0
  123. package/tsconfig.build.json +12 -0
  124. package/tsconfig.examples.json +12 -0
  125. package/tsconfig.json +11 -0
  126. package/tsconfig.test.json +17 -0
@@ -0,0 +1,15 @@
1
+ import * as Layer from "@effect/io/Layer";
2
+ import * as CommandExecutor from "@effect/platform-bun/CommandExecutor";
3
+ import * as FileSystem from "@effect/platform-bun/FileSystem";
4
+ import * as Path from "@effect/platform-bun/Path";
5
+ /**
6
+ * @since 1.0.0
7
+ * @category models
8
+ */
9
+ export type BunContext = CommandExecutor.CommandExecutor | FileSystem.FileSystem | Path.Path;
10
+ /**
11
+ * @since 1.0.0
12
+ * @category layer
13
+ */
14
+ export declare const layer: Layer.Layer<never, never, BunContext>;
15
+ //# sourceMappingURL=BunContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BunContext.d.ts","sourceRoot":"","sources":["./src/BunContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,eAAe,MAAM,sCAAsC,CAAA;AACvE,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAA;AAEjD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC,eAAe,GAAG,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAA;AAE5F;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAIvD,CAAA"}
package/BunContext.js ADDED
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.layer = void 0;
7
+ var Layer = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/Layer"));
8
+ var CommandExecutor = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-bun/CommandExecutor"));
9
+ var FileSystem = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-bun/FileSystem"));
10
+ var Path = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-bun/Path"));
11
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+
17
+ /**
18
+ * @since 1.0.0
19
+ * @category layer
20
+ */
21
+ const layer = /*#__PURE__*/Layer.merge(Layer.provideMerge(FileSystem.layer, CommandExecutor.layer))( /*#__PURE__*/Layer.merge(Path.layer)(FileSystem.layer));
22
+ exports.layer = layer;
23
+ //# sourceMappingURL=BunContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BunContext.js","names":["Layer","_interopRequireWildcard","require","CommandExecutor","FileSystem","Path","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","layer","merge","provideMerge","exports"],"sources":["./src/BunContext.ts"],"sourcesContent":[null],"mappings":";;;;;;AAIA,IAAAA,KAAA,gBAAAC,uBAAA,eAAAC,OAAA;AACA,IAAAC,eAAA,gBAAAF,uBAAA,eAAAC,OAAA;AACA,IAAAE,UAAA,gBAAAH,uBAAA,eAAAC,OAAA;AACA,IAAAG,IAAA,gBAAAJ,uBAAA,eAAAC,OAAA;AAAiD,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KA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ADDED
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export type {
5
+ /**
6
+ * @since 1.0.0
7
+ * @category model
8
+ */
9
+ Command,
10
+ /**
11
+ * @since 1.0.0
12
+ * @category model
13
+ */
14
+ CommandInput,
15
+ /**
16
+ * @since 1.0.0
17
+ * @category model
18
+ */
19
+ CommandOutput,
20
+ /**
21
+ * @since 1.0.0
22
+ * @category model
23
+ */
24
+ PipedCommand,
25
+ /**
26
+ * @since 1.0.0
27
+ * @category model
28
+ */
29
+ StandardCommand } from "@effect/platform/Command";
30
+ export {
31
+ /**
32
+ * @since 1.0.0
33
+ * @category combinators
34
+ */
35
+ env,
36
+ /**
37
+ * @since 1.0.0
38
+ * @category execution
39
+ */
40
+ exitCode,
41
+ /**
42
+ * @since 1.0.0
43
+ * @category combinators
44
+ */
45
+ feed,
46
+ /**
47
+ * @since 1.0.0
48
+ * @category combinators
49
+ */
50
+ flatten,
51
+ /**
52
+ * @since 1.0.0
53
+ * @category refinements
54
+ */
55
+ isCommand,
56
+ /**
57
+ * @since 1.0.0
58
+ * @category execution
59
+ */
60
+ lines,
61
+ /**
62
+ * @since 1.0.0
63
+ * @category constructors
64
+ */
65
+ make,
66
+ /**
67
+ * @since 1.0.0
68
+ * @category combinators
69
+ */
70
+ pipeTo,
71
+ /**
72
+ * @since 1.0.0
73
+ * @category execution
74
+ */
75
+ start,
76
+ /**
77
+ * @since 1.0.0
78
+ * @category combinators
79
+ */
80
+ stderr,
81
+ /**
82
+ * @since 1.0.0
83
+ * @category combinators
84
+ */
85
+ stdin,
86
+ /**
87
+ * @since 1.0.0
88
+ * @category combinators
89
+ */
90
+ stdout,
91
+ /**
92
+ * @since 1.0.0
93
+ * @category execution
94
+ */
95
+ stream,
96
+ /**
97
+ * @since 1.0.0
98
+ * @category execution
99
+ */
100
+ streamLines,
101
+ /**
102
+ * @since 1.0.0
103
+ * @category execution
104
+ */
105
+ string,
106
+ /**
107
+ * @since 1.0.0
108
+ * @category combinators
109
+ */
110
+ workingDirectory } from "@effect/platform/Command";
111
+ //# sourceMappingURL=Command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["./src/Command.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY;AACV;;;GAGG;AACH,OAAO;AACP;;;GAGG;AACH,YAAY;AACZ;;;GAGG;AACH,aAAa;AACb;;;GAGG;AACH,YAAY;AACZ;;;GAGG;AACH,eAAe,EAChB,MAAM,0BAA0B,CAAA;AAEjC,OAAO;AACL;;;GAGG;AACH,GAAG;AACH;;;GAGG;AACH,QAAQ;AACR;;;GAGG;AACH,IAAI;AACJ;;;GAGG;AACH,OAAO;AACP;;;GAGG;AACH,SAAS;AACT;;;GAGG;AACH,KAAK;AACL;;;GAGG;AACH,IAAI;AACJ;;;GAGG;AACH,MAAM;AACN;;;GAGG;AACH,KAAK;AACL;;;GAGG;AACH,MAAM;AACN;;;GAGG;AACH,KAAK;AACL;;;GAGG;AACH,MAAM;AACN;;;GAGG;AACH,MAAM;AACN;;;GAGG;AACH,WAAW;AACX;;;GAGG;AACH,MAAM;AACN;;;GAGG;AACH,gBAAgB,EACjB,MAAM,0BAA0B,CAAA"}
package/Command.js ADDED
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "env", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Command.env;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "exitCode", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Command.exitCode;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "feed", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _Command.feed;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "flatten", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _Command.flatten;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "isCommand", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _Command.isCommand;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "lines", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _Command.lines;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "make", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _Command.make;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "pipeTo", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _Command.pipeTo;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "start", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _Command.start;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "stderr", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _Command.stderr;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "stdin", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _Command.stdin;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "stdout", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _Command.stdout;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "stream", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _Command.stream;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "streamLines", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _Command.streamLines;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "string", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _Command.string;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "workingDirectory", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _Command.workingDirectory;
100
+ }
101
+ });
102
+ var _Command = /*#__PURE__*/require("@effect/platform/Command");
103
+ //# sourceMappingURL=Command.js.map
package/Command.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Command.js","names":["_Command","require"],"sources":["./src/Command.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAAA,QAAA,gBAAAC,OAAA"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export type {
5
+ /**
6
+ * @since 1.0.0
7
+ * @category models
8
+ */
9
+ ExitCode,
10
+ /**
11
+ * @since 1.0.0
12
+ * @category models
13
+ */
14
+ Process,
15
+ /**
16
+ * @since 1.0.0
17
+ * @category models
18
+ */
19
+ ProcessId,
20
+ /**
21
+ * @since 1.0.0
22
+ * @category symbols
23
+ */
24
+ ProcessTypeId,
25
+ /**
26
+ * @since 1.0.0
27
+ * @category models
28
+ */
29
+ Signal } from "@effect/platform/CommandExecutor";
30
+ export {
31
+ /**
32
+ * @since 1.0.0
33
+ * @category tag
34
+ */
35
+ CommandExecutor,
36
+ /**
37
+ * @since 1.0.0
38
+ * @category layer
39
+ */
40
+ layer } from "@effect/platform-node/CommandExecutor";
41
+ //# sourceMappingURL=CommandExecutor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandExecutor.d.ts","sourceRoot":"","sources":["./src/CommandExecutor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY;AACV;;;GAGG;AACH,QAAQ;AACR;;;GAGG;AACH,OAAO;AACP;;;GAGG;AACH,SAAS;AACT;;;GAGG;AACH,aAAa;AACb;;;GAGG;AACH,MAAM,EACP,MAAM,kCAAkC,CAAA;AAEzC,OAAO;AACL;;;GAGG;AACH,eAAe;AACf;;;GAGG;AACH,KAAK,EACN,MAAM,uCAAuC,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "CommandExecutor", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _CommandExecutor.CommandExecutor;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "layer", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _CommandExecutor.layer;
16
+ }
17
+ });
18
+ var _CommandExecutor = /*#__PURE__*/require("@effect/platform-node/CommandExecutor");
19
+ //# sourceMappingURL=CommandExecutor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandExecutor.js","names":["_CommandExecutor","require"],"sources":["./src/CommandExecutor.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;AAgCA,IAAAA,gBAAA,gBAAAC,OAAA"}
package/Effectify.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export type {
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ Effectify,
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ EffectifyError } from "@effect/platform/Effectify";
13
+ export {
14
+ /**
15
+ * @since 1.0.0
16
+ * @category constructor
17
+ */
18
+ effectify } from "@effect/platform/Effectify";
19
+ //# sourceMappingURL=Effectify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Effectify.d.ts","sourceRoot":"","sources":["./src/Effectify.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY;AACV;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,cAAc,EACf,MAAM,4BAA4B,CAAA;AAEnC,OAAO;AACL;;;GAGG;AACH,SAAS,EACV,MAAM,4BAA4B,CAAA"}
package/Effectify.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "effectify", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Effectify.effectify;
10
+ }
11
+ });
12
+ var _Effectify = /*#__PURE__*/require("@effect/platform/Effectify");
13
+ //# sourceMappingURL=Effectify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Effectify.js","names":["_Effectify","require"],"sources":["./src/Effectify.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;AAeA,IAAAA,UAAA,gBAAAC,OAAA"}
package/Error.d.ts ADDED
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export {
5
+ /**
6
+ * @since 1.0.0
7
+ * @category error
8
+ */
9
+ BadArgument,
10
+ /**
11
+ * @since 1.0.0
12
+ * @category error
13
+ */
14
+ PlatformError,
15
+ /**
16
+ * @since 1.0.0
17
+ * @category type id
18
+ */
19
+ PlatformErrorTypeId,
20
+ /**
21
+ * @since 1.0.0
22
+ * @category error
23
+ */
24
+ SystemError,
25
+ /**
26
+ * @since 1.0.0
27
+ * @category model
28
+ */
29
+ SystemErrorReason } from "@effect/platform/Error";
30
+ //# sourceMappingURL=Error.d.ts.map
package/Error.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["./src/Error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO;AACL;;;GAGG;AACH,WAAW;AACX;;;GAGG;AACH,aAAa;AACb;;;GAGG;AACH,mBAAmB;AACnB;;;GAGG;AACH,WAAW;AACX;;;GAGG;AACH,iBAAiB,EAClB,MAAM,wBAAwB,CAAA"}
package/Error.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BadArgument", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Error.BadArgument;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "PlatformErrorTypeId", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Error.PlatformErrorTypeId;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "SystemError", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _Error.SystemError;
22
+ }
23
+ });
24
+ var _Error = /*#__PURE__*/require("@effect/platform/Error");
25
+ //# sourceMappingURL=Error.js.map
package/Error.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.js","names":["_Error","require"],"sources":["./src/Error.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAAA,MAAA,gBAAAC,OAAA"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export type {
5
+ /**
6
+ * @since 1.0.0
7
+ * @category model
8
+ */
9
+ MakeDirectoryOptions,
10
+ /**
11
+ * @since 1.0.0
12
+ * @category model
13
+ */
14
+ MakeTempDirectoryOptions,
15
+ /**
16
+ * @since 1.0.0
17
+ * @category model
18
+ */
19
+ MakeTempFileOptions,
20
+ /**
21
+ * @since 1.0.0
22
+ * @category model
23
+ */
24
+ OpenFileOptions,
25
+ /**
26
+ * @since 1.0.0
27
+ * @category model
28
+ */
29
+ ReadDirectoryOptions,
30
+ /**
31
+ * @since 1.0.0
32
+ * @category model
33
+ */
34
+ RemoveOptions,
35
+ /**
36
+ * @since 1.0.0
37
+ * @category model
38
+ */
39
+ SeekMode,
40
+ /**
41
+ * @since 1.0.0
42
+ * @category model
43
+ */
44
+ SinkOptions,
45
+ /**
46
+ * @since 1.0.0
47
+ * @category model
48
+ */
49
+ StreamOptions,
50
+ /**
51
+ * @since 1.0.0
52
+ * @category model
53
+ */
54
+ WriteFileOptions } from "@effect/platform/FileSystem";
55
+ export {
56
+ /**
57
+ * @since 1.0.0
58
+ * @category tag
59
+ */
60
+ FileSystem,
61
+ /**
62
+ * @since 1.0.0
63
+ * @category layer
64
+ */
65
+ layer,
66
+ /**
67
+ * @since 1.0.0
68
+ * @category constructor
69
+ */
70
+ Size } from "@effect/platform-node/FileSystem";
71
+ //# sourceMappingURL=FileSystem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["./src/FileSystem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY;AACV;;;GAGG;AACH,oBAAoB;AACpB;;;GAGG;AACH,wBAAwB;AACxB;;;GAGG;AACH,mBAAmB;AACnB;;;GAGG;AACH,eAAe;AACf;;;GAGG;AACH,oBAAoB;AACpB;;;GAGG;AACH,aAAa;AACb;;;GAGG;AACH,QAAQ;AACR;;;GAGG;AACH,WAAW;AACX;;;GAGG;AACH,aAAa;AACb;;;GAGG;AACH,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,OAAO;AACL;;;GAGG;AACH,UAAU;AACV;;;GAGG;AACH,KAAK;AACL;;;GAGG;AACH,IAAI,EACL,MAAM,kCAAkC,CAAA"}
package/FileSystem.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FileSystem", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _FileSystem.FileSystem;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Size", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _FileSystem.Size;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "layer", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _FileSystem.layer;
22
+ }
23
+ });
24
+ var _FileSystem = /*#__PURE__*/require("@effect/platform-node/FileSystem");
25
+ //# sourceMappingURL=FileSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSystem.js","names":["_FileSystem","require"],"sources":["./src/FileSystem.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyDA,IAAAA,WAAA,gBAAAC,OAAA"}
@@ -0,0 +1,34 @@
1
+ /// <reference types="bun-types" />
2
+ /**
3
+ * @since 1.0.0
4
+ *
5
+ * Also includes exports from [`@effect/platform/Http/Server`](https://effect-ts.github.io/platform/platform/Http/Server.ts.html).
6
+ */
7
+ import type * as Config from "@effect/io/Config";
8
+ import type * as ConfigError from "@effect/io/Config/Error";
9
+ import type * as Effect from "@effect/io/Effect";
10
+ import type * as Layer from "@effect/io/Layer";
11
+ import type * as Scope from "@effect/io/Scope";
12
+ import type * as Etag from "@effect/platform/Http/Etag";
13
+ import type * as Server from "@effect/platform/Http/Server";
14
+ import type { ServeOptions } from "bun";
15
+ /**
16
+ * @since 1.0.0
17
+ */
18
+ export * from "@effect/platform/Http/Server";
19
+ /**
20
+ * @since 1.0.0
21
+ * @category constructors
22
+ */
23
+ export declare const make: (options: Omit<ServeOptions, "fetch" | "error">) => Effect.Effect<Scope.Scope, never, Server.Server>;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category layers
27
+ */
28
+ export declare const layer: (options: Omit<ServeOptions, "fetch" | "error">) => Layer.Layer<never, never, Server.Server | Etag.Generator>;
29
+ /**
30
+ * @since 1.0.0
31
+ * @category layers
32
+ */
33
+ export declare const layerConfig: (options: Config.Config.Wrap<Omit<ServeOptions, "fetch" | "error">>) => Layer.Layer<never, ConfigError.ConfigError, Server.Server | Etag.Generator>;
34
+ //# sourceMappingURL=Server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../src/Http/Server.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,WAAW,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,KAAK,IAAI,MAAM,4BAA4B,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC;;GAEG;AACH,cAAc,8BAA8B,CAAA;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CACjB,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,KAC3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAiB,CAAA;AAErE;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,CAClB,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,KAC3C,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAkB,CAAA;AAE/E;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,CACxB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,KAC/D,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAwB,CAAA"}
package/Http/Server.js ADDED
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ make: true,
8
+ layer: true,
9
+ layerConfig: true
10
+ };
11
+ exports.make = exports.layerConfig = exports.layer = void 0;
12
+ var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-bun/internal/http/server"));
13
+ var _Server = /*#__PURE__*/require("@effect/platform/Http/Server");
14
+ Object.keys(_Server).forEach(function (key) {
15
+ if (key === "default" || key === "__esModule") return;
16
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
17
+ if (key in exports && exports[key] === _Server[key]) return;
18
+ Object.defineProperty(exports, key, {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _Server[key];
22
+ }
23
+ });
24
+ });
25
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+
31
+ /**
32
+ * @since 1.0.0
33
+ * @category constructors
34
+ */
35
+ const make = internal.make;
36
+ /**
37
+ * @since 1.0.0
38
+ * @category layers
39
+ */
40
+ exports.make = make;
41
+ const layer = internal.layer;
42
+ /**
43
+ * @since 1.0.0
44
+ * @category layers
45
+ */
46
+ exports.layer = layer;
47
+ const layerConfig = internal.layerConfig;
48
+ exports.layerConfig = layerConfig;
49
+ //# sourceMappingURL=Server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Server.js","names":["internal","_interopRequireWildcard","require","_Server","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","make","layer","layerConfig"],"sources":["../src/Http/Server.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;AAUA,IAAAA,QAAA,gBAAAC,uBAAA,eAAAC,OAAA;AAQA,IAAAC,OAAA,gBAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GA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AAAS,cAAA,CAAAa,MAAA,EAAAnB,GAAA,EAAAsB,IAAA,YAAAH,MAAA,CAAAnB,GAAA,IAAAc,GAAA,CAAAd,GAAA,SAAAmB,MAAA,CAAAH,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAM,GAAA,CAAAT,GAAA,EAAAK,MAAA,YAAAA,MAAA;AAH5C;;;;AAKA;;;;AAIO,MAAMK,IAAI,GAEuC/B,QAAQ,CAAC+B,IAAI;AAErE;;;;AAAAnB,OAAA,CAAAmB,IAAA,GAAAA,IAAA;AAIO,MAAMC,KAAK,GAE+ChC,QAAQ,CAACgC,KAAK;AAE/E;;;;AAAApB,OAAA,CAAAoB,KAAA,GAAAA,KAAA;AAIO,MAAMC,WAAW,GAE2DjC,QAAQ,CAACiC,WAAW;AAAArB,OAAA,CAAAqB,WAAA,GAAAA,WAAA"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 1.0.0
3
+ *
4
+ * Also includes exports from [`@effect/platform/Http/ServerResponse`](https://effect-ts.github.io/platform/platform/Http/ServerResponse.ts.html).
5
+ */
6
+ import type * as Effect from "@effect/io/Effect";
7
+ import type * as PlatformError from "@effect/platform/Error";
8
+ import type * as FileSystem from "@effect/platform/FileSystem";
9
+ import type * as Body from "@effect/platform/Http/Body";
10
+ import type * as Etag from "@effect/platform/Http/Etag";
11
+ import type * as ServerResponse from "@effect/platform/Http/ServerResponse";
12
+ export * from "@effect/platform/Http/ServerResponse";
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const file: (path: string, options?: ServerResponse.Options.WithContentType & FileSystem.StreamOptions) => Effect.Effect<FileSystem.FileSystem | Etag.Generator, PlatformError.PlatformError, ServerResponse.ServerResponse>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category constructors
21
+ */
22
+ export declare const fileWeb: (file: Body.Body.FileLike, options?: ServerResponse.Options.WithContent) => Effect.Effect<Etag.Generator, never, ServerResponse.ServerResponse>;
23
+ //# sourceMappingURL=ServerResponse.d.ts.map