Socket
Socket
Sign inDemoInstall

@conform-to/react

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conform-to/react - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

1

hooks.js

@@ -377,2 +377,3 @@ 'use strict';

case 'prepend':
case 'insert':
case 'replace':

@@ -379,0 +380,0 @@ return dom.updateList(list, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, intent.payload), {}, {

4

package.json

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "0.8.0",
"version": "0.8.1",
"main": "index.js",

@@ -34,3 +34,3 @@ "module": "index.mjs",

"dependencies": {
"@conform-to/dom": "0.8.0"
"@conform-to/dom": "0.8.1"
},

@@ -37,0 +37,0 @@ "peerDependencies": {

@@ -273,3 +273,3 @@ # @conform-to/react

{/* Setup a button that can append a new row with optional default value */}
<button {...list.append(items.name, { defaultValue: '' })}>add</button>
<button {...list.insert(items.name, { defaultValue: '' })}>add</button>
</fieldset>

@@ -506,8 +506,8 @@ );

<form>
{/* To append a new row with optional defaultValue */}
<button {...list.append('name', { defaultValue })}>Append</button>
{/*
To insert a new row with optional defaultValue at a given index.
If no index is given, then the element will be appended at the end of the list.
*/}
<button {...list.insert('name', { index, defaultValue })}>Insert</button>
{/* To prepend a new row with optional defaultValue */}
<button {...list.prepend('name', { defaultValue })}>Prepend</button>
{/* To remove a row by index */}

@@ -514,0 +514,0 @@ <button {...list.remove('name', { index })}>Remove</button>

Sorry, the diff of this file is not supported yet

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