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/CHANGELOG.md +14 -0
- package/README.md +7 -5
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +18 -20
- package/src/types.ts +2 -0
- package/src/useHookFormMask.ts +1 -1
- package/scripts.sh +0 -73
package/dist/index.d.ts
CHANGED
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)
|