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

laravel-precognition-alpine

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-precognition-alpine - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

9

dist/index.js

@@ -8,3 +8,2 @@ import { client, createValidator, resolveName, toSimpleValidationErrors, resolveUrl, resolveMethod } from 'laravel-precognition';

Alpine.magic('form', (el) => (method, url, inputs, config = {}) => {
syncWithDom(el, resolveMethod(method), resolveUrl(url));
/**

@@ -138,2 +137,3 @@ * The original data.

const form = Alpine.reactive(createForm());
syncWithDom(el, resolveMethod(method), resolveUrl(url), form);
return form;

@@ -145,3 +145,3 @@ });

*/
const syncWithDom = (el, method, url) => {
const syncWithDom = (el, method, url, form) => {
if (!(el instanceof Element && el.nodeName === 'FORM')) {

@@ -153,2 +153,3 @@ return;

syncActionAttribute(el, url);
addProcessingListener(el, form);
};

@@ -190,1 +191,5 @@ /**

};
/**
* Add processing listener.
*/
const addProcessingListener = (el, form) => el.addEventListener('submit', () => (form.processing = true));
{
"name": "laravel-precognition-alpine",
"version": "0.5.0",
"version": "0.5.1",
"description": "Laravel Precognition (Alpine).",

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

"dependencies": {
"laravel-precognition": "0.5.0",
"laravel-precognition": "0.5.1",
"lodash.clonedeep": "^4.5.0",

@@ -37,0 +37,0 @@ "lodash.get": "^4.4.2",

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