@rescript/webapi 0.1.0-experimental-b899c6b → 0.1.0-experimental-f038eef
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescript/webapi",
|
|
3
|
-
"version": "0.1.0-experimental-
|
|
3
|
+
"version": "0.1.0-experimental-f038eef",
|
|
4
4
|
"description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
|
|
5
5
|
"homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
|
|
6
6
|
"bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
|
|
@@ -18,7 +18,7 @@ external append: (formData, ~name: string, ~value: string) => unit = "append"
|
|
|
18
18
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/append)
|
|
19
19
|
*/
|
|
20
20
|
@send
|
|
21
|
-
external
|
|
21
|
+
external appendBlob: (formData, ~name: string, ~blobValue: blob, ~filename: string=?) => unit =
|
|
22
22
|
"append"
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -31,13 +31,13 @@ external delete: (formData, string) => unit = "delete"
|
|
|
31
31
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
32
32
|
*/
|
|
33
33
|
@send
|
|
34
|
-
external get: (formData, string) =>
|
|
34
|
+
external get: (formData, string) => string = "get"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
38
38
|
*/
|
|
39
39
|
@send
|
|
40
|
-
external
|
|
40
|
+
external getFile: (formData, string) => file = "get"
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
|
|
@@ -61,4 +61,4 @@ external set: (formData, ~name: string, ~value: string) => unit = "set"
|
|
|
61
61
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/set)
|
|
62
62
|
*/
|
|
63
63
|
@send
|
|
64
|
-
external
|
|
64
|
+
external setBlob: (formData, ~name: string, ~blobValue: blob, ~filename: string=?) => unit = "set"
|