@colisweb/rescript-toolkit 4.26.4 → 4.27.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/package.json
CHANGED
package/src/vendors/Browser.res
CHANGED
|
@@ -134,3 +134,18 @@ module History = {
|
|
|
134
134
|
@send
|
|
135
135
|
external pushStateWithURL: (t, Js.t<'a>, string, URL.t) => unit = "pushState"
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
module FormData = {
|
|
139
|
+
type t
|
|
140
|
+
|
|
141
|
+
module File = {
|
|
142
|
+
type t
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@new external create: unit => t = "FormData"
|
|
146
|
+
|
|
147
|
+
@send external append: (t, string, 'a) => unit = "append"
|
|
148
|
+
@send external get: (t, string) => Js.Nullable.t<'a> = "get"
|
|
149
|
+
@send external getAll: (t, string) => Js.Nullable.t<array<'a>> = "getAll"
|
|
150
|
+
@send external has: (t, string) => bool = "has"
|
|
151
|
+
}
|
package/src/vendors/Browser.resi
CHANGED
|
@@ -116,3 +116,18 @@ external screenWidth: int = "window.screen.width"
|
|
|
116
116
|
|
|
117
117
|
@val
|
|
118
118
|
external screenHeight: int = "window.screen.height"
|
|
119
|
+
|
|
120
|
+
module FormData: {
|
|
121
|
+
type t
|
|
122
|
+
|
|
123
|
+
module File: {
|
|
124
|
+
type t
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@new external create: unit => t = "FormData"
|
|
128
|
+
|
|
129
|
+
@send external append: (t, string, 'a) => unit = "append"
|
|
130
|
+
@send external get: (t, string) => Js.Nullable.t<'a> = "get"
|
|
131
|
+
@send external getAll: (t, string) => Js.Nullable.t<array<'a>> = "getAll"
|
|
132
|
+
@send external has: (t, string) => bool = "has"
|
|
133
|
+
}
|
|
@@ -5,20 +5,21 @@ module Sentry = {
|
|
|
5
5
|
@send external setExtra: (t, string, 'a) => unit = "setExtra"
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
@module("sentry-
|
|
8
|
+
@module("@sentry/react-native")
|
|
9
|
+
external init: 'a => unit = "init"
|
|
9
10
|
|
|
10
|
-
@module("sentry-
|
|
11
|
+
@module("@sentry/react-native")
|
|
11
12
|
external setTag: (string, string) => unit = "setTag"
|
|
12
13
|
|
|
13
|
-
@module("sentry-
|
|
14
|
+
@module("@sentry/react-native")
|
|
14
15
|
external setUser: 'a => unit = "setUser"
|
|
15
16
|
|
|
16
|
-
@module("sentry-
|
|
17
|
+
@module("@sentry/react-native")
|
|
17
18
|
external captureException: Js.Promise.error => unit = "captureException"
|
|
18
19
|
|
|
19
|
-
@module("sentry-
|
|
20
|
+
@module("@sentry/react-native")
|
|
20
21
|
external captureMessage: string => unit = "captureMessage"
|
|
21
22
|
|
|
22
|
-
@module("sentry-
|
|
23
|
+
@module("@sentry/react-native")
|
|
23
24
|
external withScope: (Scope.t => unit) => unit = "withScope"
|
|
24
25
|
}
|