@effect/platform-browser 0.7.7 → 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.
Files changed (47) hide show
  1. package/Clipboard/dist/effect-platform-browser-Clipboard.cjs.dev.js +111 -8
  2. package/Clipboard/dist/effect-platform-browser-Clipboard.cjs.prod.js +111 -8
  3. package/Clipboard/dist/effect-platform-browser-Clipboard.esm.js +90 -5
  4. package/Effectify/dist/effect-platform-browser-Effectify.cjs.dev.js +2 -2
  5. package/Effectify/dist/effect-platform-browser-Effectify.cjs.prod.js +2 -2
  6. package/Error/dist/effect-platform-browser-Error.cjs.dev.js +6 -14
  7. package/Error/dist/effect-platform-browser-Error.cjs.mjs +1 -3
  8. package/Error/dist/effect-platform-browser-Error.cjs.prod.js +6 -14
  9. package/Error/dist/effect-platform-browser-Error.esm.js +1 -1
  10. package/HttpClient/dist/effect-platform-browser-HttpClient.cjs.dev.js +15 -15
  11. package/HttpClient/dist/effect-platform-browser-HttpClient.cjs.prod.js +15 -15
  12. package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.cjs.dev.js +148 -11
  13. package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.cjs.prod.js +148 -11
  14. package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.esm.js +123 -5
  15. package/Runtime/dist/effect-platform-browser-Runtime.cjs.dev.js +44 -4
  16. package/Runtime/dist/effect-platform-browser-Runtime.cjs.prod.js +44 -4
  17. package/Runtime/dist/effect-platform-browser-Runtime.esm.js +26 -3
  18. package/dist/declarations/src/Error.d.ts +7 -6
  19. package/dist/declarations/src/Error.d.ts.map +1 -1
  20. package/dist/declarations/src/index.d.ts.map +1 -1
  21. package/dist/effect-platform-browser.cjs.dev.js +40 -30
  22. package/dist/effect-platform-browser.cjs.prod.js +40 -30
  23. package/dist/effect-platform-browser.esm.js +14 -23
  24. package/package.json +7 -4
  25. package/src/Error.ts +9 -6
  26. package/src/index.ts +7 -7
  27. package/dist/Clipboard-13e91d33.cjs.dev.js +0 -124
  28. package/dist/Clipboard-d7d71495.cjs.prod.js +0 -124
  29. package/dist/Clipboard-f4a0489a.esm.js +0 -97
  30. package/dist/Effectify-632740e0.esm.js +0 -12
  31. package/dist/Effectify-835ab94e.cjs.prod.js +0 -14
  32. package/dist/Effectify-bb2be397.cjs.dev.js +0 -14
  33. package/dist/Error-0d1e7da7.cjs.dev.js +0 -18
  34. package/dist/Error-0fa4dba0.esm.js +0 -16
  35. package/dist/Error-104397ab.cjs.prod.js +0 -18
  36. package/dist/HttpClient-00aa1aaf.cjs.prod.js +0 -52
  37. package/dist/HttpClient-55040ca2.cjs.dev.js +0 -52
  38. package/dist/HttpClient-654b6b51.esm.js +0 -24
  39. package/dist/KeyValueStore-02197867.cjs.dev.js +0 -172
  40. package/dist/KeyValueStore-4b4d9a2f.cjs.prod.js +0 -172
  41. package/dist/KeyValueStore-db2cee39.esm.js +0 -144
  42. package/dist/Path-61602feb.esm.js +0 -28
  43. package/dist/Path-a9ecae35.cjs.dev.js +0 -50
  44. package/dist/Path-b3260065.cjs.prod.js +0 -50
  45. package/dist/Runtime-800a5cc3.cjs.dev.js +0 -55
  46. package/dist/Runtime-95b50d4a.esm.js +0 -31
  47. package/dist/Runtime-a845fde1.cjs.prod.js +0 -55
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/platform-browser",
3
- "version": "0.7.7",
3
+ "version": "0.8.0",
4
4
  "description": "Unified interfaces for common platform-specific services",
5
5
  "main": "dist/effect-platform-browser.cjs.js",
6
6
  "module": "dist/effect-platform-browser.esm.js",
@@ -13,6 +13,9 @@
13
13
  "importConditionDefaultExport": "default"
14
14
  }
15
15
  },
16
+ "effect": {
17
+ "generateIndex": true
18
+ },
16
19
  "publishConfig": {
17
20
  "access": "public"
18
21
  },
@@ -26,14 +29,14 @@
26
29
  "license": "MIT",
27
30
  "sideEffects": false,
28
31
  "dependencies": {
29
- "@effect/platform": "^0.18.7"
32
+ "@effect/platform": "^0.19.0"
30
33
  },
31
34
  "devDependencies": {
32
- "effect": "2.0.0-next.42",
35
+ "effect": "2.0.0-next.45",
33
36
  "vitest-localstorage-mock": "^0.0.1"
34
37
  },
35
38
  "peerDependencies": {
36
- "effect": "^2.0.0-next.42"
39
+ "effect": "^2.0.0-next.45"
37
40
  },
38
41
  "files": [
39
42
  "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,38 +1,38 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- export * as Clipboard from "./Clipboard"
4
+ export * as Clipboard from "@effect/platform-browser/Clipboard"
5
5
 
6
6
  /**
7
7
  * @since 1.0.0
8
8
  */
9
- export * as Effectify from "./Effectify"
9
+ export * as Effectify from "@effect/platform-browser/Effectify"
10
10
 
11
11
  /**
12
12
  * @since 1.0.0
13
13
  */
14
- export * as Error from "./Error"
14
+ export * as Error from "@effect/platform-browser/Error"
15
15
 
16
16
  /**
17
17
  * @since 1.0.0
18
18
  */
19
- export * as HttpClient from "./HttpClient"
19
+ export * as HttpClient from "@effect/platform-browser/HttpClient"
20
20
 
21
21
  /**
22
22
  * @since 1.0.0
23
23
  *
24
24
  * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
25
25
  */
26
- export * as KeyValueStore from "./KeyValueStore"
26
+ export * as KeyValueStore from "@effect/platform-browser/KeyValueStore"
27
27
 
28
28
  /**
29
29
  * @since 1.0.0
30
30
  *
31
31
  * Also includes exports from [`@effect/platform/Path`](https://effect-ts.github.io/platform/platform/Path.ts.html).
32
32
  */
33
- export * as Path from "./Path"
33
+ export * as Path from "@effect/platform-browser/Path"
34
34
 
35
35
  /**
36
36
  * @since 1.0.0
37
37
  */
38
- export * as Runtime from "./Runtime"
38
+ export * as Runtime from "@effect/platform-browser/Runtime"
@@ -1,124 +0,0 @@
1
- 'use strict';
2
-
3
- var PlatformError = require('@effect/platform/Error');
4
- var Context = require('effect/Context');
5
- var Effect = require('effect/Effect');
6
- var Layer = require('effect/Layer');
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n["default"] = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var PlatformError__namespace = /*#__PURE__*/_interopNamespace(PlatformError);
27
- var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
28
- var Layer__namespace = /*#__PURE__*/_interopNamespace(Layer);
29
-
30
- /** @internal */
31
- const tag = /*#__PURE__*/Context.Tag("@effect/platform-browser/Clipboard");
32
-
33
- /** @internal */
34
- const make$1 = impl => tag.of({
35
- ...impl,
36
- clear: impl.writeString(""),
37
- writeBlob: blob => impl.write([new ClipboardItem({
38
- [blob.type]: blob
39
- })])
40
- });
41
-
42
- /** @internal */
43
- const clipboardError = props => PlatformError__namespace.SystemError({
44
- reason: "PermissionDenied",
45
- module: "Clipboard",
46
- ...props
47
- });
48
-
49
- /** @internal */
50
- const layer$1 = /*#__PURE__*/Layer__namespace.succeed(tag, /*#__PURE__*/make$1({
51
- read: /*#__PURE__*/Effect__namespace.tryPromise({
52
- try: navigator.clipboard.read,
53
- catch: () => clipboardError({
54
- "message": "Unable to read from clipboard",
55
- "method": "read",
56
- "pathOrDescriptor": "layer"
57
- })
58
- }),
59
- write: s => Effect__namespace.tryPromise({
60
- try: () => navigator.clipboard.write(s),
61
- catch: () => clipboardError({
62
- "message": "Unable to write to clipboard",
63
- "method": "write",
64
- "pathOrDescriptor": "layer"
65
- })
66
- }),
67
- readString: /*#__PURE__*/Effect__namespace.tryPromise({
68
- try: navigator.clipboard.readText,
69
- catch: () => clipboardError({
70
- "message": "Unable to read a string from clipboard",
71
- "method": "readString",
72
- "pathOrDescriptor": "layer"
73
- })
74
- }),
75
- writeString: text => Effect__namespace.tryPromise({
76
- try: () => navigator.clipboard.writeText(text),
77
- catch: () => clipboardError({
78
- "message": "Unable to write a string to clipboard",
79
- "method": "writeString",
80
- "pathOrDescriptor": "layer"
81
- })
82
- })
83
- }));
84
-
85
- /**
86
- * @since 1.0.0
87
- */
88
-
89
- /**
90
- * @since 1.0.0
91
- * @category interface
92
- */
93
-
94
- /**
95
- * @since 1.0.0
96
- * @category constructor
97
- */
98
- const make = make$1;
99
-
100
- /**
101
- * @since 1.0.0
102
- * @category tag
103
- */
104
- const Clipboard = tag;
105
-
106
- /**
107
- * A layer that directly interfaces with the navigator.clipboard api
108
- *
109
- * @since 1.0.0
110
- * @category layers
111
- */
112
- const layer = layer$1;
113
-
114
- var Clipboard$1 = /*#__PURE__*/Object.freeze({
115
- __proto__: null,
116
- make: make,
117
- Clipboard: Clipboard,
118
- layer: layer
119
- });
120
-
121
- exports.Clipboard = Clipboard$1;
122
- exports.Clipboard$1 = Clipboard;
123
- exports.layer = layer;
124
- exports.make = make;
@@ -1,124 +0,0 @@
1
- 'use strict';
2
-
3
- var PlatformError = require('@effect/platform/Error');
4
- var Context = require('effect/Context');
5
- var Effect = require('effect/Effect');
6
- var Layer = require('effect/Layer');
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n["default"] = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var PlatformError__namespace = /*#__PURE__*/_interopNamespace(PlatformError);
27
- var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
28
- var Layer__namespace = /*#__PURE__*/_interopNamespace(Layer);
29
-
30
- /** @internal */
31
- const tag = /*#__PURE__*/Context.Tag("@effect/platform-browser/Clipboard");
32
-
33
- /** @internal */
34
- const make$1 = impl => tag.of({
35
- ...impl,
36
- clear: impl.writeString(""),
37
- writeBlob: blob => impl.write([new ClipboardItem({
38
- [blob.type]: blob
39
- })])
40
- });
41
-
42
- /** @internal */
43
- const clipboardError = props => PlatformError__namespace.SystemError({
44
- reason: "PermissionDenied",
45
- module: "Clipboard",
46
- ...props
47
- });
48
-
49
- /** @internal */
50
- const layer$1 = /*#__PURE__*/Layer__namespace.succeed(tag, /*#__PURE__*/make$1({
51
- read: /*#__PURE__*/Effect__namespace.tryPromise({
52
- try: navigator.clipboard.read,
53
- catch: () => clipboardError({
54
- "message": "Unable to read from clipboard",
55
- "method": "read",
56
- "pathOrDescriptor": "layer"
57
- })
58
- }),
59
- write: s => Effect__namespace.tryPromise({
60
- try: () => navigator.clipboard.write(s),
61
- catch: () => clipboardError({
62
- "message": "Unable to write to clipboard",
63
- "method": "write",
64
- "pathOrDescriptor": "layer"
65
- })
66
- }),
67
- readString: /*#__PURE__*/Effect__namespace.tryPromise({
68
- try: navigator.clipboard.readText,
69
- catch: () => clipboardError({
70
- "message": "Unable to read a string from clipboard",
71
- "method": "readString",
72
- "pathOrDescriptor": "layer"
73
- })
74
- }),
75
- writeString: text => Effect__namespace.tryPromise({
76
- try: () => navigator.clipboard.writeText(text),
77
- catch: () => clipboardError({
78
- "message": "Unable to write a string to clipboard",
79
- "method": "writeString",
80
- "pathOrDescriptor": "layer"
81
- })
82
- })
83
- }));
84
-
85
- /**
86
- * @since 1.0.0
87
- */
88
-
89
- /**
90
- * @since 1.0.0
91
- * @category interface
92
- */
93
-
94
- /**
95
- * @since 1.0.0
96
- * @category constructor
97
- */
98
- const make = make$1;
99
-
100
- /**
101
- * @since 1.0.0
102
- * @category tag
103
- */
104
- const Clipboard = tag;
105
-
106
- /**
107
- * A layer that directly interfaces with the navigator.clipboard api
108
- *
109
- * @since 1.0.0
110
- * @category layers
111
- */
112
- const layer = layer$1;
113
-
114
- var Clipboard$1 = /*#__PURE__*/Object.freeze({
115
- __proto__: null,
116
- make: make,
117
- Clipboard: Clipboard,
118
- layer: layer
119
- });
120
-
121
- exports.Clipboard = Clipboard$1;
122
- exports.Clipboard$1 = Clipboard;
123
- exports.layer = layer;
124
- exports.make = make;
@@ -1,97 +0,0 @@
1
- import * as PlatformError from '@effect/platform/Error';
2
- import { Tag } from 'effect/Context';
3
- import * as Effect from 'effect/Effect';
4
- import * as Layer from 'effect/Layer';
5
-
6
- /** @internal */
7
- const tag = /*#__PURE__*/Tag("@effect/platform-browser/Clipboard");
8
-
9
- /** @internal */
10
- const make$1 = impl => tag.of({
11
- ...impl,
12
- clear: impl.writeString(""),
13
- writeBlob: blob => impl.write([new ClipboardItem({
14
- [blob.type]: blob
15
- })])
16
- });
17
-
18
- /** @internal */
19
- const clipboardError = props => PlatformError.SystemError({
20
- reason: "PermissionDenied",
21
- module: "Clipboard",
22
- ...props
23
- });
24
-
25
- /** @internal */
26
- const layer$1 = /*#__PURE__*/Layer.succeed(tag, /*#__PURE__*/make$1({
27
- read: /*#__PURE__*/Effect.tryPromise({
28
- try: navigator.clipboard.read,
29
- catch: () => clipboardError({
30
- "message": "Unable to read from clipboard",
31
- "method": "read",
32
- "pathOrDescriptor": "layer"
33
- })
34
- }),
35
- write: s => Effect.tryPromise({
36
- try: () => navigator.clipboard.write(s),
37
- catch: () => clipboardError({
38
- "message": "Unable to write to clipboard",
39
- "method": "write",
40
- "pathOrDescriptor": "layer"
41
- })
42
- }),
43
- readString: /*#__PURE__*/Effect.tryPromise({
44
- try: navigator.clipboard.readText,
45
- catch: () => clipboardError({
46
- "message": "Unable to read a string from clipboard",
47
- "method": "readString",
48
- "pathOrDescriptor": "layer"
49
- })
50
- }),
51
- writeString: text => Effect.tryPromise({
52
- try: () => navigator.clipboard.writeText(text),
53
- catch: () => clipboardError({
54
- "message": "Unable to write a string to clipboard",
55
- "method": "writeString",
56
- "pathOrDescriptor": "layer"
57
- })
58
- })
59
- }));
60
-
61
- /**
62
- * @since 1.0.0
63
- */
64
-
65
- /**
66
- * @since 1.0.0
67
- * @category interface
68
- */
69
-
70
- /**
71
- * @since 1.0.0
72
- * @category constructor
73
- */
74
- const make = make$1;
75
-
76
- /**
77
- * @since 1.0.0
78
- * @category tag
79
- */
80
- const Clipboard = tag;
81
-
82
- /**
83
- * A layer that directly interfaces with the navigator.clipboard api
84
- *
85
- * @since 1.0.0
86
- * @category layers
87
- */
88
- const layer = layer$1;
89
-
90
- var Clipboard$1 = /*#__PURE__*/Object.freeze({
91
- __proto__: null,
92
- make: make,
93
- Clipboard: Clipboard,
94
- layer: layer
95
- });
96
-
97
- export { Clipboard$1 as C, Clipboard as a, layer as l, make as m };
@@ -1,12 +0,0 @@
1
- import { effectify } from '@effect/platform/Effectify';
2
-
3
- /**
4
- * @since 1.0.0
5
- */
6
-
7
- var Effectify = /*#__PURE__*/Object.freeze({
8
- __proto__: null,
9
- effectify: effectify
10
- });
11
-
12
- export { Effectify as E };
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var Effectify$1 = require('@effect/platform/Effectify');
4
-
5
- /**
6
- * @since 1.0.0
7
- */
8
-
9
- var Effectify = /*#__PURE__*/Object.freeze({
10
- __proto__: null,
11
- effectify: Effectify$1.effectify
12
- });
13
-
14
- exports.Effectify = Effectify;
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var Effectify$1 = require('@effect/platform/Effectify');
4
-
5
- /**
6
- * @since 1.0.0
7
- */
8
-
9
- var Effectify = /*#__PURE__*/Object.freeze({
10
- __proto__: null,
11
- effectify: Effectify$1.effectify
12
- });
13
-
14
- exports.Effectify = Effectify;
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var PlatformError = require('@effect/platform/Error');
4
-
5
- /**
6
- * @since 1.0.0
7
- */
8
-
9
- var Error = /*#__PURE__*/Object.freeze({
10
- __proto__: null,
11
- BadArgument: PlatformError.BadArgument,
12
- PlatformError: PlatformError.PlatformError,
13
- PlatformErrorTypeId: PlatformError.PlatformErrorTypeId,
14
- SystemError: PlatformError.SystemError,
15
- SystemErrorReason: PlatformError.SystemErrorReason
16
- });
17
-
18
- exports.Error = Error;
@@ -1,16 +0,0 @@
1
- import { BadArgument, PlatformError, PlatformErrorTypeId, SystemError, SystemErrorReason } from '@effect/platform/Error';
2
-
3
- /**
4
- * @since 1.0.0
5
- */
6
-
7
- var Error = /*#__PURE__*/Object.freeze({
8
- __proto__: null,
9
- BadArgument: BadArgument,
10
- PlatformError: PlatformError,
11
- PlatformErrorTypeId: PlatformErrorTypeId,
12
- SystemError: SystemError,
13
- SystemErrorReason: SystemErrorReason
14
- });
15
-
16
- export { Error as E };
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var PlatformError = require('@effect/platform/Error');
4
-
5
- /**
6
- * @since 1.0.0
7
- */
8
-
9
- var Error = /*#__PURE__*/Object.freeze({
10
- __proto__: null,
11
- BadArgument: PlatformError.BadArgument,
12
- PlatformError: PlatformError.PlatformError,
13
- PlatformErrorTypeId: PlatformError.PlatformErrorTypeId,
14
- SystemError: PlatformError.SystemError,
15
- SystemErrorReason: PlatformError.SystemErrorReason
16
- });
17
-
18
- exports.Error = Error;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- var Body = require('@effect/platform/Http/Body');
4
- var Client = require('@effect/platform/Http/Client');
5
- var ClientError = require('@effect/platform/Http/ClientError');
6
- var ClientRequest = require('@effect/platform/Http/ClientRequest');
7
- var ClientResponse = require('@effect/platform/Http/ClientResponse');
8
- var Headers = require('@effect/platform/Http/Headers');
9
- var UrlParams = require('@effect/platform/Http/UrlParams');
10
-
11
- function _interopNamespace(e) {
12
- if (e && e.__esModule) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n["default"] = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var Body__namespace = /*#__PURE__*/_interopNamespace(Body);
30
- var Client__namespace = /*#__PURE__*/_interopNamespace(Client);
31
- var ClientError__namespace = /*#__PURE__*/_interopNamespace(ClientError);
32
- var ClientRequest__namespace = /*#__PURE__*/_interopNamespace(ClientRequest);
33
- var ClientResponse__namespace = /*#__PURE__*/_interopNamespace(ClientResponse);
34
- var Headers__namespace = /*#__PURE__*/_interopNamespace(Headers);
35
- var UrlParams__namespace = /*#__PURE__*/_interopNamespace(UrlParams);
36
-
37
- /**
38
- * @since 1.0.0
39
- */
40
-
41
- var HttpClient = /*#__PURE__*/Object.freeze({
42
- __proto__: null,
43
- body: Body__namespace,
44
- client: Client__namespace,
45
- error: ClientError__namespace,
46
- headers: Headers__namespace,
47
- request: ClientRequest__namespace,
48
- response: ClientResponse__namespace,
49
- urlParams: UrlParams__namespace
50
- });
51
-
52
- exports.HttpClient = HttpClient;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- var Body = require('@effect/platform/Http/Body');
4
- var Client = require('@effect/platform/Http/Client');
5
- var ClientError = require('@effect/platform/Http/ClientError');
6
- var ClientRequest = require('@effect/platform/Http/ClientRequest');
7
- var ClientResponse = require('@effect/platform/Http/ClientResponse');
8
- var Headers = require('@effect/platform/Http/Headers');
9
- var UrlParams = require('@effect/platform/Http/UrlParams');
10
-
11
- function _interopNamespace(e) {
12
- if (e && e.__esModule) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n["default"] = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var Body__namespace = /*#__PURE__*/_interopNamespace(Body);
30
- var Client__namespace = /*#__PURE__*/_interopNamespace(Client);
31
- var ClientError__namespace = /*#__PURE__*/_interopNamespace(ClientError);
32
- var ClientRequest__namespace = /*#__PURE__*/_interopNamespace(ClientRequest);
33
- var ClientResponse__namespace = /*#__PURE__*/_interopNamespace(ClientResponse);
34
- var Headers__namespace = /*#__PURE__*/_interopNamespace(Headers);
35
- var UrlParams__namespace = /*#__PURE__*/_interopNamespace(UrlParams);
36
-
37
- /**
38
- * @since 1.0.0
39
- */
40
-
41
- var HttpClient = /*#__PURE__*/Object.freeze({
42
- __proto__: null,
43
- body: Body__namespace,
44
- client: Client__namespace,
45
- error: ClientError__namespace,
46
- headers: Headers__namespace,
47
- request: ClientRequest__namespace,
48
- response: ClientResponse__namespace,
49
- urlParams: UrlParams__namespace
50
- });
51
-
52
- exports.HttpClient = HttpClient;
@@ -1,24 +0,0 @@
1
- import * as Body from '@effect/platform/Http/Body';
2
- import * as Client from '@effect/platform/Http/Client';
3
- import * as ClientError from '@effect/platform/Http/ClientError';
4
- import * as ClientRequest from '@effect/platform/Http/ClientRequest';
5
- import * as ClientResponse from '@effect/platform/Http/ClientResponse';
6
- import * as Headers from '@effect/platform/Http/Headers';
7
- import * as UrlParams from '@effect/platform/Http/UrlParams';
8
-
9
- /**
10
- * @since 1.0.0
11
- */
12
-
13
- var HttpClient = /*#__PURE__*/Object.freeze({
14
- __proto__: null,
15
- body: Body,
16
- client: Client,
17
- error: ClientError,
18
- headers: Headers,
19
- request: ClientRequest,
20
- response: ClientResponse,
21
- urlParams: UrlParams
22
- });
23
-
24
- export { HttpClient as H };