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

text-field-edit

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-field-edit - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

index.js

@@ -41,3 +41,3 @@ function insertTextFirefox(field, text) {

var selection = getSelection(field);
insert(field, wrap + selection + ((wrapEnd !== null && wrapEnd !== void 0 ? wrapEnd : wrap)));
insert(field, wrap + selection + (wrapEnd !== null && wrapEnd !== void 0 ? wrapEnd : wrap));
// Restore the selection around the previously-selected text

@@ -44,0 +44,0 @@ field.selectionStart = selectionStart + wrap.length;

{
"name": "text-field-edit",
"version": "3.0.0",
"version": "3.0.1",
"description": "Insert text in a <textarea> and <input> (supports Firefox and Undo, where possible)",

@@ -22,2 +22,4 @@ "keywords": [

"license": "MIT",
"type": "module",
"module": "index.js",
"files": [

@@ -27,7 +29,5 @@ "index.js",

],
"type": "module",
"module": "index.js",
"scripts": {
"build": "tsc",
"prepublishOnly": "tsc --sourceMap false",
"prepack": "tsc --sourceMap false",
"test": "npm-run-all --silent build --parallel test:*",

@@ -43,25 +43,16 @@ "test:blink": "browserify -p esmify test.js | tape-run --browser chrome",

],
"extensions": [
"ts"
],
"overrides": [
{
"files": "**/*.ts",
"extends": "xo-typescript"
}
]
"rules": {
"@typescript-eslint/prefer-nullish-coalescing": "off"
}
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.3.0",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^2.6.1",
"browserify": "^16.2.2",
"eslint-config-xo-typescript": "^0.9.0",
"@sindresorhus/tsconfig": "^0.7.0",
"browserify": "^16.5.1",
"esmify": "^2.1.1",
"npm-run-all": "^4.1.3",
"tape": "^4.10.1",
"tape-run": "^5.0.0",
"typescript": "^3.3.3333",
"npm-run-all": "^4.1.5",
"tape": "^5.0.0",
"tape-run": "^7.0.0",
"typescript": "^3.8.3",
"xo": "*"
}
}
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