Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravel-precognition

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-precognition - npm Package Compare versions

Comparing version 0.5.12 to 0.5.13

7

dist/validator.js

@@ -208,6 +208,3 @@ import { debounce, isEqual, get, set, omit, merge } from 'lodash-es';

onBefore: () => {
const beforeValidationHandler = config.onBeforeValidation ?? ((newRequest, oldRequest) => {
return newRequest.touched.length > 0 && !isEqual(newRequest, oldRequest);
});
if (beforeValidationHandler({ data, touched }, { data: oldData, touched: oldTouched }) === false) {
if (config.onBeforeValidation && config.onBeforeValidation({ data, touched }, { data: oldData, touched: oldTouched }) === false) {
return false;

@@ -251,4 +248,4 @@ }

setTouched([name, ...touched]).forEach((listener) => listener());
validator(config ?? {});
}
validator(config ?? {});
};

@@ -255,0 +252,0 @@ /**

{
"name": "laravel-precognition",
"version": "0.5.12",
"version": "0.5.13",
"description": "Laravel Precognition.",

@@ -23,3 +23,3 @@ "keywords": [

"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",

@@ -26,0 +26,0 @@ "typeCheck": "tsc --noEmit",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc