Skip to content

Commit

Permalink
chore: npm-check-updates && yarn upgrade (#4610)
Browse files Browse the repository at this point in the history
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
  • Loading branch information
aws-cdk-automation authored Aug 27, 2024
1 parent 9ecea56 commit b5862e1
Show file tree
Hide file tree
Showing 27 changed files with 919 additions and 903 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"compliance": "(cd tools/jsii-compliance && yarn report)"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@jest/types": "^29.6.3",
"@types/jest": "^29.5.12",
"@types/node": "^14.18.63",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"all-contributors-cli": "^6.26.1",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/@jsii/benchmarks/lib/suite/aws-cdk-lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export async function buildWithTsc({ workingDir }: Context): Promise<void> {
.once('close', ko)
.once('message', (result: { success: any } | { error: unknown }) => {
if ('error' in result) {
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
ko(result.error);
} else {
ok(result.success);
Expand All @@ -79,6 +80,7 @@ export async function buildWithJsii({ workingDir }: Context): Promise<void> {
.once('close', ko)
.once('message', (result: { success: any } | { error: unknown }) => {
if ('error' in result) {
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
ko(result.error);
} else {
ok(result.success);
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/benchmarks/scripts/snapshot-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function snapshotAwsCdk(tag: string, file: string) {
'@types/punycode': '^2.1.0',
'@types/semver': '^7.3.9',
'aws-sdk': '^2.596.0',
'typescript-json-schema': '^0.53.1',
'typescript-json-schema': '0.64.0',
// For good measure, the typescript compiler
typescript: `~${ts.version}`,
} as Record<string, string>,
Expand Down
1 change: 1 addition & 0 deletions packages/@jsii/integ-test/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class ProcessManager {
process.stderr.write(
`Process ${proc.pid} error: ${error.message} - ${error.stack}`,
);
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
ko();
});
});
Expand Down
8 changes: 4 additions & 4 deletions packages/@jsii/kernel/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export interface DelRequest {
readonly objref: ObjRef;
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface DelResponse {}

export interface GetRequest {
Expand Down Expand Up @@ -184,7 +184,7 @@ export interface SetRequest {
readonly value: any;
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SetResponse {}

export interface StaticInvokeRequest {
Expand Down Expand Up @@ -221,7 +221,7 @@ export interface EndResponse {
readonly result: any;
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface CallbacksRequest {}

export interface CallbacksResponse {
Expand Down Expand Up @@ -249,7 +249,7 @@ export interface NamingResponse {
};
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface StatsRequest {}

export interface StatsResponse {
Expand Down
1 change: 1 addition & 0 deletions packages/@jsii/kernel/src/kernel.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
import * as childProcess from 'child_process';
import * as fs from 'fs-extra';
import * as os from 'os';
Expand Down
1 change: 1 addition & 0 deletions packages/@jsii/kernel/src/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function recordInteraction(kernel: Kernel, inputOutputLogPath: string) {
})
.catch((err: any) => {
logOutput({ error: err.message, name: err.name });
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
fail(err);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"jsii-pacmak": "^0.0.0",
"pyright": "^1.1.376"
"pyright": "^1.1.377"
}
}
2 changes: 1 addition & 1 deletion packages/@jsii/spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"devDependencies": {
"fs-extra": "^10.1.0",
"jsii-build-tools": "^0.0.0",
"typescript-json-schema": "^0.64.0"
"typescript-json-schema": "0.64.0"
}
}
3 changes: 0 additions & 3 deletions packages/jsii-calc/lib/compliance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,12 @@ export class AllTypes {

// json

// eslint-disable-next-line @typescript-eslint/ban-types
private jsonValue: object = {};

// eslint-disable-next-line @typescript-eslint/ban-types
public get jsonProperty(): object {
return this.jsonValue;
}

// eslint-disable-next-line @typescript-eslint/ban-types
public set jsonProperty(value: object) {
if (typeof value !== 'object') {
throw new Error('not an object');
Expand Down
6 changes: 3 additions & 3 deletions packages/jsii-calc/lib/erasures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export interface IJSII417Derived extends IJSII417PrivateBase {
// Interfaces should be copied from erased classes to public classes
// https://github.com/aws/jsii/issues/487
//
// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface IJsii487External {}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface IJsii487External2 {}
class Jsii487Internal implements IJsii487External {}
export class Jsii487Derived
Expand All @@ -61,7 +61,7 @@ export class Jsii487Derived
// Deduplicate interfaces that come from different declaration sites
// https://github.com/aws/jsii/issues/496
//
// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface IJsii496 {}
class Jsii496Base implements IJsii496 {}
export class Jsii496Derived extends Jsii496Base implements IJsii496 {}
Loading

0 comments on commit b5862e1

Please sign in to comment.