Skip to content

Commit 65c9344

Browse files
committed
Updated deps
1 parent ed25da9 commit 65c9344

File tree

13 files changed

+24
-33
lines changed

13 files changed

+24
-33
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
"typescript": ">=4.3.0 || >=5.0.0-beta"
3030
},
3131
"devDependencies": {
32-
"@types/chai": "~4.3.3",
32+
"@types/chai": "~5.0.1",
3333
"@types/mocha": "~10.0.0",
34-
"@types/node": "~14.18.26",
34+
"@types/node": "~22.13.8",
3535
"@types/react": "^19.0.10",
3636
"@typescript-eslint/eslint-plugin": "~5.40.1",
3737
"@typescript-eslint/parser": "~5.40.1",
38-
"chai": "~4.3.6",
39-
"eslint": "~8.26.0",
40-
"eslint-plugin-deprecation": "~1.3.2",
38+
"chai": "~5.2.0",
39+
"eslint": "~8.57.0",
40+
"eslint-plugin-deprecation": "~2.0.0",
4141
"eslint-plugin-import": "~2.26.0",
4242
"eslint-plugin-unicorn": "~44.0.0",
43-
"mocha": "~10.1.0",
43+
"mocha": "~11.1.0",
4444
"npm-run-all": "~4.1.5",
45-
"rimraf": "~3.0.2",
46-
"ts-compiler": "npm:typescript@4.8.4",
47-
"ts-node": "~10.9.1",
48-
"typescript": "~4.8.4"
45+
"rimraf": "~6.0.1",
46+
"ts-compiler": "npm:typescript@5.7.2",
47+
"ts-node": "~10.9.2",
48+
"typescript": "~5.7.2"
4949
},
5050
"scripts": {
5151
"clean": "rimraf lib/ dist/",

src/typescript-helpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,12 @@ function getModifiers(node: ts.Node): readonly NonNullable<ts.Node['modifiers']>
141141

142142
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
143143
// @ts-ignore
144-
// eslint-disable-next-line deprecation/deprecation
144+
// eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-unsafe-return
145145
return node.modifiers || [];
146146
}
147147

148148
export function hasModifier(node: ts.Node, modifier: ts.SyntaxKind): boolean {
149+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
149150
return getModifiers(node).some(mod => mod.kind === modifier);
150151
}
151152

@@ -160,7 +161,7 @@ function getDecorators(node: ts.Node): readonly unknown[] {
160161

161162
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
162163
// @ts-ignore
163-
// eslint-disable-next-line deprecation/deprecation
164+
// eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-unsafe-return
164165
return node.decorators || [];
165166
}
166167

tests/test-cases/binding-element/output.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.getOptions = void 0;
3+
exports.getOptions = getOptions;
44
var internalOptions = { _internal_fooBar2: 12 };
55
function shorthandBindingElement1() {
66
var mixed = {
@@ -37,4 +37,3 @@ function getOptions(opts) {
3737
console.log(fooBar, newPropName, fooBar2, newPropName2);
3838
return 42;
3939
}
40-
exports.getOptions = getOptions;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.alertMessage = void 0;
3+
exports.alertMessage = alertMessage;
44
function showMessage(opts) {
55
if (opts === void 0) { opts = { _internal_message: 'hello' }; }
66
alert(opts._internal_message);
77
}
88
function alertMessage(message) {
99
showMessage({ _internal_message: message });
1010
}
11-
exports.alertMessage = alertMessage;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.doNothing = void 0;
3+
exports.doNothing = doNothing;
44
function doNothing(fooBar) {
55
var internalOptions = { _internal_fooBar: fooBar };
66
console.log(internalOptions["_internal_fooBar"]);
77
}
8-
exports.doNothing = doNothing;

tests/test-cases/enums/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ console.log(TestEnum["_internal_Test2"]);
1212
var ExportedEnum;
1313
(function (ExportedEnum) {
1414
ExportedEnum[ExportedEnum["Foo"] = 0] = "Foo";
15-
})(ExportedEnum = exports.ExportedEnum || (exports.ExportedEnum = {}));
15+
})(ExportedEnum || (exports.ExportedEnum = ExportedEnum = {}));

tests/test-cases/export-interface/output.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.createClass = void 0;
3+
exports.createClass = createClass;
44
var Class = /** @class */ (function () {
55
function Class() {
66
this.publicProperty = 123;
@@ -25,4 +25,3 @@ var Class = /** @class */ (function () {
2525
function createClass() {
2626
return new Class();
2727
}
28-
exports.createClass = createClass;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.foo = void 0;
3+
exports.foo = foo;
44
function foo(item) {
55
console.log(item.time);
66
}
7-
exports.foo = foo;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.doNothing = void 0;
3+
exports.doNothing = doNothing;
44
var class_name_1 = require("./class-name");
55
function doNothing() {
66
var classObj = new class_name_1.ClassName();
77
classObj.doSomething();
88
}
9-
exports.doNothing = doNothing;

tests/test-cases/in-operator/output.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.func = void 0;
3+
exports.func = func;
44
function func(type) {
55
if ('isAnother' in type) {
66
console.log(type.bar);
@@ -19,4 +19,3 @@ function func(type) {
1919
console.log('check');
2020
}
2121
}
22-
exports.func = func;

0 commit comments

Comments
 (0)