πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

ai-text-processor

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-text-processor - npm Package Compare versions

Comparing version

to
1.0.10

8

dist/components/AITextProcessor.js

@@ -345,11 +345,13 @@ "use strict";

const currValueOptionElements = currVarOpts.map((varValue, j) => (react_1.default.createElement("option", { key: `var-${i}-opt-${j}`, value: varValue }, varValue)));
const canAddVariableOption = !!currVarValue && !currVarOpts.includes(currVarValue);
const canDeleteVariableOption = !!currVarValue;
return (react_1.default.createElement("div", { key: `variable-${i}`, className: "d-flex gap-1 mb-1" },
react_1.default.createElement(react_bootstrap_1.Form.Control, { size: "sm", type: "text", disabled: true, value: currVarName, style: { width: 150 } }),
react_1.default.createElement(react_bootstrap_1.Form.Control, { type: "text", size: "sm", placeholder: "Value", value: currVarValue, onChange: (e) => handleSetVariableValue(variable, e.target.value), style: { width: 150 } }),
react_1.default.createElement(react_bootstrap_1.Form.Select, { size: "sm", value: currVarValue, onChange: (e) => handleSetVariableValue(variable, e.target.value), style: { width: 0 } },
react_1.default.createElement(react_bootstrap_1.Form.Select, { size: "sm", value: currVarValue, onChange: (e) => handleSetVariableValue(variable, e.target.value), style: { width: 20 } },
react_1.default.createElement("option", { value: "" }),
currValueOptionElements),
react_1.default.createElement(react_bootstrap_1.Button, { variant: "outline-primary", size: "sm", onClick: () => handleAddVariableOption(variable, currVarValue) },
react_1.default.createElement(react_bootstrap_1.Button, { variant: "outline-primary", size: "sm", onClick: () => handleAddVariableOption(variable, currVarValue), disabled: !canAddVariableOption },
react_1.default.createElement(fa_1.FaPlus, { className: "mb-1" })),
react_1.default.createElement(react_bootstrap_1.Button, { variant: "outline-danger", size: "sm", onClick: () => handleDeleteVariableOption(variable, currVarValue) },
react_1.default.createElement(react_bootstrap_1.Button, { variant: "outline-danger", size: "sm", onClick: () => handleDeleteVariableOption(variable, currVarValue), disabled: !canDeleteVariableOption },
react_1.default.createElement(fa_1.FaTrashAlt, { className: "mb-1" }))));

@@ -356,0 +358,0 @@ });

{
"name": "ai-text-processor",
"version": "1.0.9",
"version": "1.0.10",
"author": "Justin Mahar <contact@justinmahar.com>",

@@ -5,0 +5,0 @@ "description": "Utility for processing text using AI. Summarize, analyze, extract, translate, format, and more! ✨",

@@ -36,3 +36,3 @@ <h2 align="center">

- **πŸ“’ Presets**
- Speed up your workflow by saving presets that let you reuse your prompts.
- Speed up your workflow by saving presets that let you reuse your prompts. Includes support for prompt variables.
- **βœ‚οΈ Chunking**

@@ -39,0 +39,0 @@ - Automatically split long inputs into chunks that leave token headroom for your desired output.