Skip to content

Commit

Permalink
Merge pull request #9327 from ckeditor/i/9315
Browse files Browse the repository at this point in the history
Fix (watchdog): Removed import from the ckeditor5 package. Closes #9315.
  • Loading branch information
ma2ciek committed Mar 23, 2021
2 parents 254a731 + ae541db commit c1fa757
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 c1fa757

Please sign in to comment.