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

@remirror/core-utils

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/core-utils - npm Package Compare versions

Comparing version 1.0.0-next.58 to 1.0.0-next.59

14

CHANGELOG.md
# @remirror/core-utils
## 1.0.0-next.59
> 2020-12-12
### Patch Changes
- [`e69115f1`](https://github.com/remirror/remirror/commit/e69115f141c12c7dd21bd89c716b12b279414364) [#825](https://github.com/remirror/remirror/pull/825) Thanks [@tommoor](https://github.com/tommoor)! - Fix `getMarkRange` not returning the entire mark length, instead stopping at the first change in mark. This fix also resolves the infinite loop described in #823.
- Updated dependencies []:
- @remirror/core-constants@1.0.0-next.59
- @remirror/core-helpers@1.0.0-next.59
- @remirror/core-types@1.0.0-next.59
- @remirror/pm@1.0.0-next.59
## 1.0.0-next.58

@@ -4,0 +18,0 @@

11

dist/core-utils.cjs.prod.js

@@ -139,9 +139,10 @@ "use strict";

if (mark) {
for (var startIndex = $pos.index(), startPos = $pos.start() + start.offset; startIndex > 0 && mark.isInSet($pos.parent.child(startIndex - 1).marks); ) startIndex -= 1,
for (var startIndex = $pos.index(), startPos = $pos.start() + start.offset, endIndex = startIndex + 1, endPos = startPos + start.node.nodeSize; startIndex > 0 && mark.isInSet($pos.parent.child(startIndex - 1).marks); ) startIndex -= 1,
startPos -= $pos.parent.child(startIndex).nodeSize;
var from = startPos, to = startPos + start.node.nodeSize;
for (;endIndex < $pos.parent.childCount && mark.isInSet($pos.parent.child(endIndex).marks); ) endPos += $pos.parent.child(endIndex).nodeSize,
endIndex += 1;
return {
from: from,
to: to,
text: $pos.doc.textBetween(from, to, coreConstants.LEAF_NODE_REPLACING_CHARACTER, "\n\n"),
from: startPos,
to: endPos,
text: $pos.doc.textBetween(startPos, endPos, coreConstants.LEAF_NODE_REPLACING_CHARACTER, "\n\n"),
mark: mark

@@ -148,0 +149,0 @@ };

{
"name": "@remirror/core-utils",
"version": "1.0.0-next.58",
"version": "1.0.0-next.59",
"description": "Core utilities for dealing with the dom and prosemirror within remirror",

@@ -24,5 +24,5 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core-utils",

"@babel/runtime": "^7.12.0",
"@remirror/core-constants": "1.0.0-next.58",
"@remirror/core-helpers": "1.0.0-next.58",
"@remirror/core-types": "1.0.0-next.58",
"@remirror/core-constants": "1.0.0-next.59",
"@remirror/core-helpers": "1.0.0-next.59",
"@remirror/core-types": "1.0.0-next.59",
"@types/min-document": "^2.19.0",

@@ -33,3 +33,3 @@ "min-document": "^2.19.0",

"devDependencies": {
"@remirror/pm": "1.0.0-next.58",
"@remirror/pm": "1.0.0-next.59",
"@types/node": "^14.14.3",

@@ -39,3 +39,3 @@ "domino": "^2.1.6"

"peerDependencies": {
"@remirror/pm": "1.0.0-next.58",
"@remirror/pm": "1.0.0-next.59",
"@types/node": "*"

@@ -42,0 +42,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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