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

avtryck-ui-for-p-red

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avtryck-ui-for-p-red - npm Package Compare versions

Comparing version 1.0.30 to 1.0.31

10

components/form.js

@@ -45,8 +45,8 @@ module.exports = {

const id = component.properties.id.value || 'a_ui_form_' + Date.now()
if (!component.properties.id.value) {
component.properties.id.value = '"' + id + '"'
const id = component.properties.id?.value || 'a_ui_form_' + Date.now()
if (!component.properties.id?.value) {
component.properties.id = { value: '"' + id + '"' }
}
if (component.eventHandlers.submit.value) {
if (component.eventHandlers.submit?.value) {
// add Renew icon while loading after validation check

@@ -96,3 +96,3 @@ context.imports.add('import Button from "' + pathes.carbonComponents + '/Button/Button.svelte"')

// add preventDefault to submit (this will be triggered after validating the form)
if (component.eventHandlers.submit.value && component.eventHandlers.submit.type !== 'custom') {
if (component.eventHandlers.submit?.value && component.eventHandlers.submit.type !== 'custom') {
component.eventHandlers.submit.before = 'event.preventDefault(); ' + id + '_submitting = true;'

@@ -99,0 +99,0 @@ component.eventHandlers.submit.after = 'setTimeout(() => ' + id + '_submitting = false, 500);'

{
"name": "avtryck-ui-for-p-red",
"version": "1.0.30",
"version": "1.0.31",
"description": "A plugin to add carbon design components to p-red.",

@@ -5,0 +5,0 @@ "author": "Christian Geiger",

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