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.2 to 1.2.3

8

CHANGELOG.md

@@ -9,2 +9,10 @@ # Changelog

## 1.2.3
* `FIX`: correctly set range on empty node
## 1.2.2
* `FIX`: correctly set range post paragraphs (IE 11)
## 1.2.1

@@ -11,0 +19,0 @@

12

index.js

@@ -309,6 +309,14 @@ 'use strict';

if (count <= start) {
range.setStartAfter(el.lastChild);
if (el.lastChild) {
range.setStartAfter(el.lastChild);
} else {
range.setStart(el, 0);
}
}
range.setEndAfter(el.lastChild);
if (el.lastChild) {
range.setEndAfter(el.lastChild);
} else {
range.setEnd(el, 0);
}

@@ -315,0 +323,0 @@ return range;

2

package.json
{
"name": "selection-ranges",
"version": "1.2.2",
"version": "1.2.3",
"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