@effect/platform-browser 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/Clipboard/dist/effect-platform-browser-Clipboard.cjs.dev.js +111 -8
- package/Clipboard/dist/effect-platform-browser-Clipboard.cjs.prod.js +111 -8
- package/Clipboard/dist/effect-platform-browser-Clipboard.esm.js +90 -5
- package/Effectify/dist/effect-platform-browser-Effectify.cjs.dev.js +2 -2
- package/Effectify/dist/effect-platform-browser-Effectify.cjs.prod.js +2 -2
- package/Error/dist/effect-platform-browser-Error.cjs.dev.js +6 -6
- package/Error/dist/effect-platform-browser-Error.cjs.prod.js +6 -6
- package/HttpClient/dist/effect-platform-browser-HttpClient.cjs.dev.js +15 -15
- package/HttpClient/dist/effect-platform-browser-HttpClient.cjs.prod.js +15 -15
- package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.cjs.dev.js +148 -11
- package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.cjs.prod.js +148 -11
- package/KeyValueStore/dist/effect-platform-browser-KeyValueStore.esm.js +123 -5
- package/Runtime/dist/effect-platform-browser-Runtime.cjs.dev.js +44 -4
- package/Runtime/dist/effect-platform-browser-Runtime.cjs.prod.js +44 -4
- package/Runtime/dist/effect-platform-browser-Runtime.esm.js +26 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/effect-platform-browser.cjs.dev.js +40 -30
- package/dist/effect-platform-browser.cjs.prod.js +40 -30
- package/dist/effect-platform-browser.esm.js +14 -23
- package/package.json +7 -4
- package/src/index.ts +7 -7
- package/dist/Clipboard-13e91d33.cjs.dev.js +0 -124
- package/dist/Clipboard-d7d71495.cjs.prod.js +0 -124
- package/dist/Clipboard-f4a0489a.esm.js +0 -97
- package/dist/Effectify-632740e0.esm.js +0 -12
- package/dist/Effectify-835ab94e.cjs.prod.js +0 -14
- package/dist/Effectify-bb2be397.cjs.dev.js +0 -14
- package/dist/Error-494eda6c.cjs.dev.js +0 -16
- package/dist/Error-5a45d87b.esm.js +0 -14
- package/dist/Error-8409e00b.cjs.prod.js +0 -16
- package/dist/HttpClient-00aa1aaf.cjs.prod.js +0 -52
- package/dist/HttpClient-55040ca2.cjs.dev.js +0 -52
- package/dist/HttpClient-654b6b51.esm.js +0 -24
- package/dist/KeyValueStore-02197867.cjs.dev.js +0 -172
- package/dist/KeyValueStore-4b4d9a2f.cjs.prod.js +0 -172
- package/dist/KeyValueStore-db2cee39.esm.js +0 -144
- package/dist/Path-61602feb.esm.js +0 -28
- package/dist/Path-a9ecae35.cjs.dev.js +0 -50
- package/dist/Path-b3260065.cjs.prod.js +0 -50
- package/dist/Runtime-800a5cc3.cjs.dev.js +0 -55
- package/dist/Runtime-95b50d4a.esm.js +0 -31
- package/dist/Runtime-a845fde1.cjs.prod.js +0 -55
package/src/index.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
export * as Clipboard from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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,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,16 +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
|
-
PlatformErrorTypeId: PlatformError.PlatformErrorTypeId,
|
|
13
|
-
SystemError: PlatformError.SystemError
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
exports.Error = Error;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BadArgument, PlatformErrorTypeId, SystemError } 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
|
-
PlatformErrorTypeId: PlatformErrorTypeId,
|
|
11
|
-
SystemError: SystemError
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export { Error as E };
|
|
@@ -1,16 +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
|
-
PlatformErrorTypeId: PlatformError.PlatformErrorTypeId,
|
|
13
|
-
SystemError: PlatformError.SystemError
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
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 };
|