Comparing version 3.0.3 to 3.0.4
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
declare type ObjectRecord = Record<string, any>; | ||
@@ -65,3 +65,3 @@ export declare type FormSubmitPayload = { | ||
export declare const useField: (props: FieldProps) => FieldPayload; | ||
export declare const turnIntoField: (Component: any, defaultErrorMessages?: DefaultErrorMessages) => (props: FieldProps) => JSX.Element; | ||
export declare const turnIntoField: <ComponentProps extends object>(Component: React.ComponentType<ComponentProps>, defaultErrorMessages?: DefaultErrorMessages) => React.FC<ComponentProps & FieldProps>; | ||
declare type Children = (JSX.Element | null)[] | (JSX.Element | null); | ||
@@ -68,0 +68,0 @@ export declare type FormProps = { |
@@ -200,3 +200,3 @@ "use strict"; | ||
exports.useForm = useForm; | ||
const REQUIRED_VALIDATION = (errorMessage = 'Required field.') => (value) => (!value ? errorMessage : ''); | ||
const REQUIRED_VALIDATION = (errorMessage = 'Required field.') => (value) => !value ? errorMessage : ''; | ||
/* eslint-disable */ | ||
@@ -203,0 +203,0 @@ exports.EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
{ | ||
"name": "formact", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Context for React form components with validation", | ||
"scripts": { | ||
"build": "tsc", | ||
"start": "nodemon --config nodemon.json src/test.ts", | ||
"flow:install": "flow-typed install --ignoreDeps=dev", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
@@ -32,5 +30,4 @@ "ship": "npm run build && npm version patch && npm publish --access public && git push" | ||
"@types/react": "^17.0.19", | ||
"nodemon": "^2.0.12", | ||
"typescript": "^4.4.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3
4
1
3
14327
- Removednodemon@^2.0.12
- Removedanymatch@3.1.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedignore-by-default@1.0.1(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.1.3(transitive)
- Removednodemon@2.0.22(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpstree.remy@1.1.8(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedsemver@5.7.27.0.0(transitive)
- Removedsimple-update-notifier@1.1.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtouch@3.1.1(transitive)
- Removedundefsafe@2.0.5(transitive)