Skip to content

Commit a3badd6

Browse files
committed
Updated dependencies; fixed lint error
1 parent 7a81e6c commit a3badd6

File tree

4 files changed

+812
-656
lines changed

4 files changed

+812
-656
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## Unreleased
88
### Fixed
99
- Updated CI library to latest
10+
- Updated dependencies
1011

1112
## 2.0.1 - 2022-07-27
1213
### Fixed

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@
2323
"author": "Tiny Technologies",
2424
"license": "MIT",
2525
"devDependencies": {
26-
"@ephox/agar": "^7.1.1",
26+
"@ephox/agar": "^7.3.1",
2727
"@ephox/bedrock-client": "^13.0.0",
28-
"@ephox/bedrock-server": "^13.2.1",
29-
"@ephox/katamari": "^9.0.3",
30-
"@ephox/sugar": "^9.0.3",
31-
"@ephox/swag": "^4.5.0",
28+
"@ephox/bedrock-server": "^13.3.0",
29+
"@ephox/katamari": "^9.1.3",
30+
"@ephox/sugar": "^9.1.3",
31+
"@ephox/swag": "^4.6.0",
3232
"@tinymce/beehive-flow": "^0.19.0",
33-
"@tinymce/eslint-plugin": "^2.0.1",
33+
"@tinymce/eslint-plugin": "^2.2.1",
3434
"@types/esm": "^3.2.0",
35-
"@types/express": "^4.17.13",
36-
"@types/node": "^18.6.0",
37-
"@typescript-eslint/eslint-plugin": "^5.30.7",
38-
"@typescript-eslint/parser": "^5.30.7",
39-
"eslint": "^8.20.0",
35+
"@types/express": "^4.17.14",
36+
"@types/node": "^18.11.13",
37+
"@typescript-eslint/eslint-plugin": "^5.46.1",
38+
"@typescript-eslint/parser": "^5.46.1",
39+
"eslint": "^8.29.0",
4040
"eslint-plugin-import": "^2.26.0",
4141
"eslint-plugin-prefer-arrow": "^1.2.3",
4242
"esm": "^3.2.25",
43-
"express": "^4.18.1",
44-
"rollup": "^2.77.0",
45-
"tinymce": "^6.1.0",
46-
"ts-loader": "^9.3.1",
43+
"express": "^4.18.2",
44+
"rollup": "^2.79.1",
45+
"tinymce": "^6.3.1",
46+
"ts-loader": "^9.4.2",
4747
"ts-node": "^10.9.1",
48-
"typescript": "~4.7.4",
49-
"webpack": "^5.73.0"
48+
"typescript": "~4.9.4",
49+
"webpack": "^5.75.0"
5050
},
5151
"dependencies": {},
5252
"version": "2.0.2-rc",

src/main/ts/utils/ScriptLoader.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import { Id } from '@ephox/katamari';
1010

11-
export type callbackFn = () => void;
11+
export type CallbackFn = () => void;
1212
export interface IStateObj {
13-
listeners: callbackFn[];
13+
listeners: CallbackFn[];
1414
scriptId: string;
1515
scriptLoaded: boolean;
1616
}
@@ -22,14 +22,14 @@ const createState = (): IStateObj => ({
2222
});
2323

2424
interface ScriptLoader {
25-
load: (doc: Document, url: string, callback: callbackFn) => void;
25+
load: (doc: Document, url: string, callback: CallbackFn) => void;
2626
reinitialize: () => void;
2727
}
2828

2929
const CreateScriptLoader = (): ScriptLoader => {
3030
let state: IStateObj = createState();
3131

32-
const injectScriptTag = (scriptId: string, doc: Document, url: string, callback: callbackFn) => {
32+
const injectScriptTag = (scriptId: string, doc: Document, url: string, callback: CallbackFn) => {
3333
const scriptTag = doc.createElement('script');
3434
scriptTag.referrerPolicy = 'origin';
3535
scriptTag.type = 'application/javascript';
@@ -46,7 +46,7 @@ const CreateScriptLoader = (): ScriptLoader => {
4646
}
4747
};
4848

49-
const load = (doc: Document, url: string, callback: callbackFn) => {
49+
const load = (doc: Document, url: string, callback: CallbackFn) => {
5050
if (state.scriptLoaded) {
5151
callback();
5252
} else {

0 commit comments

Comments
 (0)