@colisweb/rescript-toolkit 5.9.4 → 5.9.6

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": "@colisweb/rescript-toolkit",
3
- "version": "5.9.4",
3
+ "version": "5.9.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -1,5 +1,3 @@
1
1
  // From https://github.com/jquense/yup/blob/92668947dafc2bb60bb7565c53b39091a6213167/src/string.ts#L22
2
2
 
3
- let email = %re(
4
- "/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/"
5
- )
3
+ let email = %re("/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/")
@@ -214,6 +214,8 @@ module Map = {
214
214
 
215
215
  @send
216
216
  external addMarker: (t, Marker.t) => unit = "addObject"
217
+ @send
218
+ external getBoundingBox: (t, unit) => Geo.Rect.t = "getBoundingBox"
217
219
 
218
220
  external toObject: t => object = "%identity"
219
221
  }