Socket
Socket
Sign inDemoInstall

toggle-selection

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

10

index.js

@@ -9,8 +9,8 @@ var module = module || {};

var active = document.activeElement;
var ranges = Array.apply(Array, {
length: selection.rangeCount
}).map(function(range, index) {
return selection.getRangeAt(index);
});
var ranges = [];
for (var i = 0; i < selection.rangeCount; i++) {
ranges.push(selection.getRangeAt(i));
}
switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML

@@ -17,0 +17,0 @@ case 'INPUT':

{
"name": "toggle-selection",
"version": "1.0.3",
"version": "1.0.4",
"description": "Toggle current selected content in browser",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc