@colisweb/rescript-toolkit 5.15.2 → 5.15.4

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.15.2",
3
+ "version": "5.15.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -252,7 +252,7 @@ module Make = (Lenses: Lenses) => {
252
252
  (
253
253
  Field(fields.field),
254
254
  switch (value, fields.login->Option.map(fn => fn(values))) {
255
- | ("", _) => Error(i18n.stringNonEmpty(~value=""))
255
+ | ("", _) => Valid
256
256
  | (password, _)
257
257
  if !Js.Re.test_(%re("/(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{10,}/"), password) =>
258
258
  Error(fields.error->Option.getWithDefault(i18n.passwordTooShort))
@@ -293,7 +293,7 @@ module Map = {
293
293
  external setZoom: (instance, int) => unit = "setZoom"
294
294
 
295
295
  @send
296
- external getObjects: (instance, unit) => array<objects> = "getObjects"
296
+ external getObjects: (instance, unit) => array<object> = "getObjects"
297
297
  @send
298
298
  external getViewPort: (instance, unit) => Viewport.t = "getViewPort"
299
299
  @send