laravel-precognition
Advanced tools
Comparing version 0.5.3 to 0.5.4
import { isAxiosError, isCancel, default as Axios } from 'axios'; | ||
import merge from 'lodash.merge'; | ||
import { merge } from 'lodash-es'; | ||
/** | ||
@@ -4,0 +4,0 @@ * The configured axios client. |
@@ -1,9 +0,4 @@ | ||
import debounce from 'lodash.debounce'; | ||
import isequal from 'lodash.isequal'; | ||
import get from 'lodash.get'; | ||
import set from 'lodash.set'; | ||
import { debounce, isEqual, get, set, omit, merge } from 'lodash-es'; | ||
import { client, isFile } from './client.js'; | ||
import { isAxiosError } from 'axios'; | ||
import omit from 'lodash.omit'; | ||
import merge from 'lodash.merge'; | ||
export const createValidator = (callback, initialData = {}) => { | ||
@@ -92,3 +87,3 @@ /** | ||
const prepared = toValidationErrors(value); | ||
if (!isequal(errors, prepared)) { | ||
if (!isEqual(errors, prepared)) { | ||
errors = prepared; | ||
@@ -188,3 +183,3 @@ return listeners.errorsChanged; | ||
const beforeValidationResult = (config.onBeforeValidation ?? ((previous, next) => { | ||
return !isequal(previous, next); | ||
return !isEqual(previous, next); | ||
}))({ data, touched }, { data: oldData, touched: oldTouched }); | ||
@@ -191,0 +186,0 @@ if (beforeValidationResult === false) { |
{ | ||
"name": "laravel-precognition", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Laravel Precognition.", | ||
@@ -32,16 +32,6 @@ "keywords": [ | ||
"axios": "^1.4.0", | ||
"lodash.debounce": "^4.0.8", | ||
"lodash.get": "^4.4.2", | ||
"lodash.isequal": "^4.0.8", | ||
"lodash.merge": "^4.6.2", | ||
"lodash.omit": "^4.5.0", | ||
"lodash.set": "^4.3.2" | ||
"lodash-es": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash.debounce": "^4.0.7", | ||
"@types/lodash.get": "^4.4.7", | ||
"@types/lodash.isequal": "^4.0.7", | ||
"@types/lodash.merge": "^4.0.7", | ||
"@types/lodash.omit": "^4.5.7", | ||
"@types/lodash.set": "^4.3.7", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/node": "^20.1.0", | ||
@@ -48,0 +38,0 @@ "typescript": "^5.0.0", |
2
4
27160
667
+ Addedlodash-es@^4.17.21
+ Addedlodash-es@4.17.21(transitive)
- Removedlodash.debounce@^4.0.8
- Removedlodash.get@^4.4.2
- Removedlodash.isequal@^4.0.8
- Removedlodash.merge@^4.6.2
- Removedlodash.omit@^4.5.0
- Removedlodash.set@^4.3.2
- Removedlodash.debounce@4.0.8(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedlodash.omit@4.5.0(transitive)
- Removedlodash.set@4.3.2(transitive)