New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

laravel-precognition-react-inertia

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-precognition-react-inertia - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

17

dist/index.js

@@ -133,12 +133,7 @@ import { toSimpleValidationErrors, resolveUrl, resolveMethod } from 'laravel-precognition';

submit(submitMethod = {}, submitUrl, submitOptions) {
const isPatchedCall = typeof submitMethod !== 'string';
submitOptions = isPatchedCall
? submitMethod
: submitOptions;
submitUrl = isPatchedCall
? resolveUrl(url)
: submitUrl;
submitMethod = isPatchedCall
? resolveMethod(method)
: submitMethod;
if (typeof submitMethod !== 'string') {
submitOptions = submitMethod;
submitUrl = resolveUrl(url);
submitMethod = resolveMethod(method);
}
inertiaSubmit(submitMethod, submitUrl, {

@@ -148,3 +143,3 @@ ...submitOptions,

precognitiveForm.validator().setErrors(errors);
if (submitOptions.onError) {
if (submitOptions?.onError) {
return submitOptions.onError(errors);

@@ -151,0 +146,0 @@ }

{
"name": "laravel-precognition-react-inertia",
"version": "0.5.10",
"version": "0.5.11",
"description": "Laravel Precognition (React w/ Inertia).",

@@ -35,4 +35,4 @@ "keywords": [

"dependencies": {
"laravel-precognition": "0.5.10",
"laravel-precognition-react": "0.5.10"
"laravel-precognition": "0.5.11",
"laravel-precognition-react": "0.5.11"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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