Socket
Socket
Sign inDemoInstall

formatic

Package Overview
Dependencies
Maintainers
3
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formatic - npm Package Compare versions

Comparing version 0.2.30 to 0.2.31

13

build/lib/components/fields/pretty-text2.js

@@ -78,5 +78,4 @@ 'use strict';

getInitialState: function getInitialState() {
var selectedChoices = this.props.config.fieldSelectedReplaceChoices(this.props.field);
var replaceChoices = this.props.config.fieldReplaceChoices(this.props.field);
var translator = TagTranslator(selectedChoices.concat(replaceChoices), this.props.config.humanize);
var translator = TagTranslator(replaceChoices, this.props.config.humanize);

@@ -93,9 +92,9 @@ return {

componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
var selectedChoices = this.props.config.fieldSelectedReplaceChoices(this.props.field);
var replaceChoices = this.props.config.fieldReplaceChoices(nextProps.field);
var nextState = {
replaceChoices: replaceChoices,
translator: TagTranslator(selectedChoices.concat(replaceChoices), this.props.config.humanize)
replaceChoices: replaceChoices
};
this.state.translator.addChoices(replaceChoices);
if (this.state.value !== nextProps.field.value && nextProps.field.value) {

@@ -181,6 +180,6 @@ nextState.value = nextProps.field.value;

if (this.state.codeMirrorMode) {
return React.createElement('div', { ref: 'textBox', 'class': 'internal-text-wrapper' });
return React.createElement('div', { ref: 'textBox', className: 'internal-text-wrapper' });
} else {
var html = this.state.translator.toHtml(this.state.value);
return React.createElement('div', { ref: 'textBox', 'class': 'internal-text-wrapper', dangerouslySetInnerHTML: { __html: html } });
return React.createElement('div', { ref: 'textBox', className: 'internal-text-wrapper', dangerouslySetInnerHTML: { __html: html } });
}

@@ -187,0 +186,0 @@ },

{
"name": "formatic",
"version": "0.2.30",
"version": "0.2.31",
"description": "Automatic, pluggable form generation",

@@ -5,0 +5,0 @@ "main": "./build/lib/formatic",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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