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

@gemsorg/modules

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gemsorg/modules - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

4

package.json
{
"name": "@gemsorg/modules",
"version": "0.1.24",
"version": "0.1.25",
"description": "gems modules",

@@ -29,3 +29,3 @@ "main": "index.js",

},
"gitHead": "93425338e881cd35b054dbd9e72c3f0939029759"
"gitHead": "867ad3900f0183ccc6fa5d980994283e3c9e036b"
}

@@ -29,3 +29,3 @@ import React, { Component } from 'react';

inputType: 'text',
value: '',
value: undefined,
initial: null,

@@ -40,2 +40,25 @@ label: null,

componentDidMount() {
const { name, value, initial, onChange } = this.props;
if (initial && value === undefined) {
onChange(name, initial);
}
}
componentDidUpdate(prevProps) {
const { name, value, initial, onChange } = this.props;
const { touched } = this.state;
if (
!touched &&
value === undefined &&
prevProps.initial !== initial &&
initial
) {
onChange(name, initial);
}
}
handleChange = ({ target }) => {

@@ -42,0 +65,0 @@ const { name, onChange } = this.props;

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