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

selection-ranges

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selection-ranges - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

index.js

@@ -99,5 +99,7 @@ 'use strict';

var next = i.node;
var last;
var isClosing = false;
var selectionStart = 0;
var selectionStart;
var count = 0;

@@ -146,3 +148,3 @@

isBr(next) || (
next.previousSibling && (
last && (last.nextSibling == next) && (
isDiv(next) ||

@@ -187,2 +189,3 @@ isParagraph(next)

last = next;
next = i.next();

@@ -194,3 +197,3 @@ isClosing = i.closingTag;

return {
start: selectionStart,
start: typeof selectionStart === 'undefined' ? count : selectionStart,
end: count

@@ -197,0 +200,0 @@ };

{
"name": "selection-ranges",
"version": "1.2.1",
"version": "1.2.2",
"description": "Selection range manipulation for contenteditable elements",

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

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