text-field-edit
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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": "*" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
9665