use-mask-input 3.3.2 → 3.3.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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import Inputmask from 'inputmask';
1
2
  import * as react_hook_form from 'react-hook-form';
2
3
  import { UseFormRegisterReturn, FieldValues, RegisterOptions, UseFormRegister, Path } from 'react-hook-form';
3
4
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -3817,7 +3817,7 @@ function useHookFormMask(registerFn) {
3817
3817
  return (fieldName, mask, options) => {
3818
3818
  if (!registerFn)
3819
3819
  throw new Error("registerFn is required");
3820
- const _a = registerFn(fieldName), { ref } = _a, restRegister = __objRest(_a, ["ref"]);
3820
+ const _a = registerFn(fieldName, options), { ref } = _a, restRegister = __objRest(_a, ["ref"]);
3821
3821
  const maskInput = inputmask(getMaskOptions(mask, options));
3822
3822
  const newRef = flow((_ref) => {
3823
3823
  if (_ref)