Socket
Socket
Sign inDemoInstall

@udecode/slate-utils

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/slate-utils - npm Package Compare versions

Comparing version 24.3.1 to 24.3.2

16

dist/index.js

@@ -480,5 +480,5 @@ "use strict";

var import_slate18 = require("@udecode/slate");
var import_lodash = require("lodash");
var import_last = __toESM(require("lodash/last"));
var getPreviousSiblingNode = (editor, path) => {
const index = (0, import_lodash.last)(path);
const index = (0, import_last.default)(path);
if (index > 0) {

@@ -751,3 +751,3 @@ const previousSiblingIndex = index - 1;

var import_slate40 = require("@udecode/slate");
var import_lodash2 = require("lodash");
var import_castArray3 = __toESM(require("lodash/castArray"));
var import_slate41 = require("slate");

@@ -758,3 +758,3 @@ var removeMark = (editor, _a) => {

const selection = at != null ? at : editor.selection;
key = (0, import_lodash2.castArray)(key);
key = (0, import_castArray3.default)(key);
if (selection) {

@@ -835,3 +835,3 @@ if (import_slate41.Range.isRange(selection) && import_slate41.Range.isExpanded(selection)) {

var import_slate47 = require("@udecode/slate");
var import_castArray3 = __toESM(require("lodash/castArray"));
var import_castArray4 = __toESM(require("lodash/castArray"));
var setMarks = (editor, marks, clear = []) => {

@@ -841,3 +841,3 @@ if (!editor.selection)

(0, import_slate47.withoutNormalizing)(editor, () => {
const clears = (0, import_castArray3.default)(clear);
const clears = (0, import_castArray4.default)(clear);
removeMark(editor, { key: clears });

@@ -853,3 +853,3 @@ removeMark(editor, { key: Object.keys(marks) });

var import_slate48 = require("@udecode/slate");
var import_castArray4 = __toESM(require("lodash/castArray"));
var import_castArray5 = __toESM(require("lodash/castArray"));
var toggleMark = (editor, { key, clear }) => {

@@ -865,3 +865,3 @@ if (!editor.selection)

if (clear) {
const clears = (0, import_castArray4.default)(clear);
const clears = (0, import_castArray5.default)(clear);
removeMark(editor, { key: clears });

@@ -868,0 +868,0 @@ }

{
"name": "@udecode/slate-utils",
"version": "24.3.1",
"version": "24.3.2",
"description": "Slate utils",

@@ -42,3 +42,3 @@ "license": "MIT",

"dependencies": {
"@udecode/slate": "24.3.1",
"@udecode/slate": "24.3.2",
"@udecode/utils": "24.3.0",

@@ -45,0 +45,0 @@ "lodash": "^4.17.21"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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