You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

formatic

Package Overview
Dependencies
Maintainers
6
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.63 to 0.3.64

2

build/lib/components/helpers/pretty-text-input.js

@@ -436,3 +436,3 @@ 'use strict';

var tokens = this.state.translator.tokenize(this.state.value);
var tokens = this.props.config.tokenize(this.state.value);
var self = this;

@@ -439,0 +439,0 @@ var nodes = tokens.map(function (part, i) {

@@ -34,27 +34,2 @@ 'use strict';

var tokenize = function tokenize(text) {
text = String(text);
if (text === '') {
return [];
}
var regexp = /(\{\{|\}\})/;
var parts = text.split(regexp);
var tokens = [];
var inTag = false;
parts.forEach(function (part) {
if (part === '{{') {
inTag = true;
} else if (part === '}}') {
inTag = false;
} else if (inTag) {
tokens.push({ type: 'tag', value: part });
} else {
tokens.push({ type: 'string', value: part });
}
});
return tokens;
};
/*

@@ -104,3 +79,2 @@ Given a CodeMirror document position like {line: 0, ch: 10}, return

getTagPositions: getTagPositions,
tokenize: tokenize,
getTrueTagPosition: getTrueTagPosition

@@ -107,0 +81,0 @@ };

@@ -996,2 +996,28 @@ // # default-config

tokenize: function tokenize(text) {
text = String(text);
if (text === '') {
return [];
}
var regexp = /(\{\{|\}\})/;
var parts = text.split(regexp);
var tokens = [];
var inTag = false;
parts.forEach(function (part) {
if (part === '{{') {
inTag = true;
} else if (part === '}}') {
inTag = false;
} else if (inTag) {
tokens.push({ type: 'tag', value: part });
} else {
tokens.push({ type: 'string', value: part });
}
});
return tokens;
},
// Normalize some choices for a drop-down.

@@ -998,0 +1024,0 @@ normalizeChoices: function normalizeChoices(choices) {

{
"name": "formatic",
"version": "0.3.63",
"version": "0.3.64",
"description": "Automatic, pluggable form generation",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc