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

@alifd/field

Package Overview
Dependencies
Maintainers
8
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alifd/field - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

25

lib/index.js

@@ -46,20 +46,4 @@ "use strict";

this.values = options.values || {};
/**
* processErrorMessage
* Implement when extending Field
* Takes in a React-like element, clones and adds 'error' as key
* @param {ReactElement | String} element
* @returns {ReactElement | String}
*/
/*
processErrorMessage(element) {
if (element && isValidElement(element)) {
return cloneElement(element, { key: 'error' });
}
return element;
}
*/
this.processErrorMessage = options.processErrorMessage;
this.afterValidateRerender = options.afterValidateRerender;
this.options = Object.assign({

@@ -661,7 +645,6 @@ parseName: false,

_this8._reRender(); // NOTE: Implement `afterValidate` when extending Field to have post validate logic
_this8._reRender();
if (typeof _this8.afterValidate === 'function') {
_this8.afterValidate({
if (typeof _this8.afterValidateRerender === 'function') {
_this8.afterValidateRerender({
errorsGroup: errorsGroup,

@@ -668,0 +651,0 @@ options: _this8.options,

4

package.json
{
"name": "@alifd/field",
"version": "1.0.0",
"version": "1.0.1",
"description": "Fields can be used to manage data when it comes to form data manipulation and validation. After being associated with a component, the form data can be automatically written back, read, and verified.",

@@ -81,3 +81,3 @@ "files": [

},
"homepage": "https://unpkg.com/@alifd/field@1.0.0/build/index.html",
"homepage": "https://unpkg.com/@alifd/field@1.0.1/build/index.html",
"bugs": "https://github.com/alibaba-fusion/field/issues",

@@ -84,0 +84,0 @@ "publishConfig": {

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