Skip to content

Commit

Permalink
Removed the ckeditor5 from package dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Mar 22, 2021
1 parent 254a731 commit ae541db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-watchdog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
],
"main": "src/index.js",
"dependencies": {
"ckeditor5": "^26.0.0",
"lodash-es": "^4.17.15"
},
"devDependencies": {
Expand All @@ -20,6 +19,7 @@
"@ckeditor/ckeditor5-paragraph": "^26.0.0",
"@ckeditor/ckeditor5-theme-lark": "^26.0.0",
"@ckeditor/ckeditor5-utils": "^26.0.0",
"ckeditor5": "^26.0.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
Expand Down
9 changes: 8 additions & 1 deletion packages/ckeditor5-watchdog/src/contextwatchdog.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/* globals console */

import { toArray } from 'ckeditor5/src/utils';
import Watchdog from './watchdog';
import EditorWatchdog from './editorwatchdog';
import areConnectedThroughProperties from './utils/areconnectedthroughproperties';
Expand Down Expand Up @@ -516,6 +515,14 @@ class ActionQueue {
}
}

// Transforms any value to an array. If the provided value is already an array, it is returned unchanged.
//
// @param {*} data The value to transform to an array.
// @returns {Array} An array created from data.
function toArray( data ) {
return Array.isArray( data ) ? data : [ data ];
}

/**
* The watchdog item configuration interface.
*
Expand Down

0 comments on commit ae541db

Please sign in to comment.