Skip to content

Commit bb615ea

Browse files
fix: update npm lock files and fix TypeScript compat issues from package upgrades
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent 9f129cf commit bb615ea

14 files changed

Lines changed: 2405 additions & 1257 deletions

File tree

src/microsoft-learn-mock/package-lock.json

Lines changed: 1158 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/microsoft-learn-mock/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"es2020"
1111
],
1212
"module": "commonjs",
13-
"moduleResolution": "node",
13+
"moduleResolution": "bundler",
1414
// "noImplicitAny": true,
1515
// "noImplicitReturns": true,
1616
// "noImplicitThis": true,

src/microsoft-trydotnet-editor/package-lock.json

Lines changed: 616 additions & 968 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/microsoft-trydotnet-editor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"@types/mocha": "^10.0.10",
3030
"@types/node": "^25.7.0",
3131
"@types/tmp": "^0.2.6",
32-
"@typescript-eslint/eslint-plugin": "^8.59.1",
33-
"@typescript-eslint/parser": "^8.58.0",
32+
"@typescript-eslint/eslint-plugin": "^8.66.0",
33+
"@typescript-eslint/parser": "^8.66.0",
3434
"chai": "6.2.2",
3535
"chai-as-promised": "8.0.2",
3636
"css-loader": "^7.1.4",
@@ -48,7 +48,7 @@
4848
"ts-loader": "^9.5.4",
4949
"ts-mocha": "^11.1.0",
5050
"ts-node": "^10.9.2",
51-
"typescript": "^7.0.2",
51+
"typescript": "^6.0.3",
5252
"webpack": "^5.105.3",
5353
"webpack-cli": "7.0.2"
5454
},

src/microsoft-trydotnet-editor/src/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function createWasmProjectKernel(onServiceError: (serviceError: IServiceE
6969
} catch (e) {
7070
onServiceError({
7171
statusCode: "500",
72-
message: e.message
72+
message: e instanceof Error ? e.message : String(e)
7373
});
7474
}
7575
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.css';

src/microsoft-trydotnet-editor/src/workspace.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ export interface IWorkspaceBuffer {
2828
position: number;
2929
}
3030
export function encodeWorkspace(workspace: IWorkspace): string {
31-
let buffer = Buffer.from(JSON.stringify(workspace));
32-
return encodeURIComponent(buffer.toString("base64"));
31+
return encodeURIComponent(btoa(JSON.stringify(workspace)));
3332
}
3433

3534
export function decodeWorkspace(encodedWorkspace: string): IWorkspace {
36-
let data = Buffer.from(decodeURIComponent(encodedWorkspace), "base64");
37-
return JSON.parse(data.toString()) as IWorkspace;
35+
return JSON.parse(atob(decodeURIComponent(encodedWorkspace))) as IWorkspace;
3836
}
3937

4038
export function getBufferContent(workspace: IWorkspace, bufferId: string): string {

src/microsoft-trydotnet-editor/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"compilerOptions": {
33
"sourceMap": true,
44
"module": "commonjs",
5-
"moduleResolution": "node",
5+
"moduleResolution": "bundler",
66
"target": "ES6",
77
"outDir": "./lib",
88
"lib": [
99
"dom",
1010
"es2021"
1111
],
1212
"types": [],
13-
"skipLibCheck": false,
14-
"baseUrl": "./node_modules",
15-
"jsx": "preserve",
13+
"noImplicitAny": false,
14+
"strictNullChecks": false,
15+
"skipLibCheck": true,
1616
"typeRoots": [
1717
"node_modules/@types"
1818
]

src/microsoft-trydotnet-styles/package-lock.json

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)