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

@ckeditor/ckeditor5-typing

Package Overview
Dependencies
Maintainers
1
Versions
712
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-typing - npm Package Compare versions

Comparing version 38.0.1 to 38.1.0

34

package.json
{
"name": "@ckeditor/ckeditor5-typing",
"version": "38.0.1",
"version": "38.1.0",
"description": "Typing feature for CKEditor 5.",

@@ -15,29 +15,7 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^38.0.1",
"@ckeditor/ckeditor5-engine": "^38.0.1",
"@ckeditor/ckeditor5-utils": "^38.0.1",
"@ckeditor/ckeditor5-core": "38.1.0",
"@ckeditor/ckeditor5-engine": "38.1.0",
"@ckeditor/ckeditor5-utils": "38.1.0",
"lodash-es": "^4.17.15"
},
"devDependencies": {
"@ckeditor/ckeditor5-autoformat": "^38.0.1",
"@ckeditor/ckeditor5-basic-styles": "^38.0.1",
"@ckeditor/ckeditor5-block-quote": "^38.0.1",
"@ckeditor/ckeditor5-code-block": "^38.0.1",
"@ckeditor/ckeditor5-editor-classic": "^38.0.1",
"@ckeditor/ckeditor5-enter": "^38.0.1",
"@ckeditor/ckeditor5-essentials": "^38.0.1",
"@ckeditor/ckeditor5-heading": "^38.0.1",
"@ckeditor/ckeditor5-image": "^38.0.1",
"@ckeditor/ckeditor5-indent": "^38.0.1",
"@ckeditor/ckeditor5-link": "^38.0.1",
"@ckeditor/ckeditor5-list": "^38.0.1",
"@ckeditor/ckeditor5-media-embed": "^38.0.1",
"@ckeditor/ckeditor5-mention": "^38.0.1",
"@ckeditor/ckeditor5-paragraph": "^38.0.1",
"@ckeditor/ckeditor5-table": "^38.0.1",
"@ckeditor/ckeditor5-undo": "^38.0.1",
"typescript": "^4.8.4",
"webpack": "^5.58.1",
"webpack-cli": "^4.9.0"
},
"engines": {

@@ -64,7 +42,3 @@ "node": ">=16.0.0",

],
"scripts": {
"build": "tsc -p ./tsconfig.json",
"postversion": "npm run build"
},
"types": "src/index.d.ts"
}

2

src/delete.d.ts

@@ -21,3 +21,3 @@ /**

*/
static get pluginName(): 'Delete';
static get pluginName(): "Delete";
/**

@@ -24,0 +24,0 @@ * @inheritDoc

@@ -16,3 +16,3 @@ /**

*/
static get pluginName(): 'Input';
static get pluginName(): "Input";
/**

@@ -19,0 +19,0 @@ * @inheritDoc

@@ -20,3 +20,3 @@ /**

*/
static get pluginName(): 'TextTransformation';
static get pluginName(): "TextTransformation";
/**

@@ -23,0 +23,0 @@ * @inheritDoc

@@ -151,3 +151,3 @@ /**

*/
static get pluginName(): 'TwoStepCaretMovement';
static get pluginName(): "TwoStepCaretMovement";
/**

@@ -154,0 +154,0 @@ * @inheritDoc

@@ -22,3 +22,3 @@ /**

*/
static get pluginName(): 'Typing';
static get pluginName(): "Typing";
}

@@ -34,11 +34,11 @@ /**

let start = range.start;
const text = Array.from(range.getItems()).reduce((rangeText, node) => {
const text = Array.from(range.getWalker({ ignoreElementEnd: false })).reduce((rangeText, { item }) => {
// Trim text to a last occurrence of an inline element and update range start.
if (!(node.is('$text') || node.is('$textProxy'))) {
start = model.createPositionAfter(node);
if (!(item.is('$text') || item.is('$textProxy'))) {
start = model.createPositionAfter(item);
return '';
}
return rangeText + node.data;
return rangeText + item.data;
}, '');
return { text, range: model.createRange(start, range.end) };
}
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