Skip to content

Commit f314465

Browse files
committed
Updated dependencies and fixed lint command
1 parent 755c450 commit f314465

File tree

5 files changed

+1698
-2056
lines changed

5 files changed

+1698
-2056
lines changed

package.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,30 @@
2323
"author": "Tiny Technologies",
2424
"license": "Apache-2.0",
2525
"devDependencies": {
26-
"@ephox/agar": "^5.3.1",
27-
"@ephox/bedrock-client": "^11.3.0",
28-
"@ephox/bedrock-server": "^11.3.0",
29-
"@ephox/katamari": "^7.2.1",
30-
"@ephox/sugar": "^7.1.3",
31-
"@ephox/swag": "^4.3.1",
32-
"@tinymce/beehive-flow": "^0.15.0",
33-
"@tinymce/eslint-plugin": "^1.8.2",
26+
"@ephox/agar": "^6.0.3",
27+
"@ephox/bedrock-client": "^12.0.0",
28+
"@ephox/bedrock-server": "^12.1.1",
29+
"@ephox/katamari": "^8.1.1",
30+
"@ephox/sugar": "^8.1.1",
31+
"@ephox/swag": "^4.4.0",
32+
"@tinymce/beehive-flow": "^0.17.0",
33+
"@tinymce/eslint-plugin": "^1.9.2",
3434
"@types/esm": "^3.2.0",
35-
"@types/express": "^4.17.12",
36-
"@types/node": "^15.12.2",
37-
"eslint": "^7.28.0",
35+
"@types/express": "^4.17.13",
36+
"@types/node": "^16.10.4",
37+
"@typescript-eslint/eslint-plugin": "^5.0.0",
38+
"@typescript-eslint/parser": "^5.0.0",
39+
"eslint": "^8.0.0",
40+
"eslint-plugin-import": "^2.25.2",
41+
"eslint-plugin-mocha": "^9.0.0",
42+
"eslint-plugin-prefer-arrow": "^1.2.3",
3843
"esm": "^3.2.25",
3944
"express": "^4.17.1",
40-
"rollup": "^2.51.1",
41-
"tinymce": "^5.7.1",
42-
"ts-loader": "^9.2.3",
43-
"ts-node": "^10.0.0",
44-
"typescript": "~4.2.4"
45+
"rollup": "^2.58.0",
46+
"tinymce": "^5.10.0",
47+
"ts-loader": "^9.2.6",
48+
"ts-node": "^10.3.0",
49+
"typescript": "~4.4.4"
4550
},
4651
"dependencies": {},
4752
"version": "1.2.1-rc",

src/demo/ts/Server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ app.get('/', (request, response) => {
6262

6363
// Access the parse results as request.body
6464
app.post('/', (request, response) => {
65-
response.send(page(request.body.editor1, request.body.editor2));
65+
response.send(page(request.body.editor1 as string, request.body.editor2 as string));
6666
});
6767

6868
app.listen(3000, () => console.log('http://localhost:3000/'));

src/main/ts/component/Editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class TinyMceEditor extends HTMLElement {
254254
}
255255
}
256256

257-
attributeChangedCallback(attribute: string, oldValue: any, newValue: any) {
257+
attributeChangedCallback(attribute: string, oldValue: string | null, newValue: string | null) {
258258
if (oldValue !== newValue) {
259259
if (attribute === 'form') {
260260
this._updateForm();

src/test/ts/browser/LoadTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ UnitTest.asynctest('LoadTest', (success, failure) => {
3434
Waiter.sTryUntilPredicate('Waiting for editor setup', () => seenSetup),
3535
Waiter.sTryUntilPredicate('Waiting for editor init', () => seenInit),
3636
Step.sync(() => {
37-
Assertions.assertHtmlStructure('', '<p>Hello world</p>', editorInstance.getContent());
37+
Assertions.assertHtmlStructure('', '<p>Hello world</p>', editorInstance.getContent() as string);
3838
}),
3939
Step.sync(() => removeTinymceElement())
4040
], success, failure);

0 commit comments

Comments
 (0)