mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 05:53:49 -05:00
Minor updates and lint and format fixes (#8327)
This commit is contained in:
@@ -165,9 +165,8 @@ export class PolkaVMAsmParser implements IAsmParser {
|
||||
filters: ParseFiltersAndOutputOptions,
|
||||
): void {
|
||||
if (!filters.commentOnly) {
|
||||
const comment = line.match(this.headerCommentRe)
|
||||
? match.input?.trim()!
|
||||
: this.indentation + match.input?.trim()!;
|
||||
const trimmedInput = match.input?.trim() ?? '';
|
||||
const comment = line.match(this.headerCommentRe) ? trimmedInput : this.indentation + trimmedInput;
|
||||
parsedAsm.push({
|
||||
text: comment,
|
||||
source: null,
|
||||
|
||||
3812
package-lock.json
generated
3812
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
62
package.json
62
package.json
@@ -18,31 +18,31 @@
|
||||
},
|
||||
"main": "./app.ts",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-dynamodb": "^3.914.0",
|
||||
"@aws-sdk/client-ec2": "^3.914.0",
|
||||
"@aws-sdk/client-s3": "^3.914.0",
|
||||
"@aws-sdk/client-sqs": "^3.914.0",
|
||||
"@aws-sdk/client-ssm": "^3.914.0",
|
||||
"@aws-sdk/credential-providers": "^3.914.0",
|
||||
"@aws-sdk/client-dynamodb": "^3.948.0",
|
||||
"@aws-sdk/client-ec2": "^3.948.0",
|
||||
"@aws-sdk/client-s3": "^3.948.0",
|
||||
"@aws-sdk/client-sqs": "^3.948.0",
|
||||
"@aws-sdk/client-ssm": "^3.948.0",
|
||||
"@aws-sdk/credential-providers": "^3.948.0",
|
||||
"@flatten-js/interval-tree": "^1.1.4",
|
||||
"@fortawesome/fontawesome-free": "^7.1.0",
|
||||
"@orchidjs/sifter": "^1.1.0",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"@sentry/browser": "^10.21.0",
|
||||
"@sentry/node": "^10.21.0",
|
||||
"@sentry/browser": "^10.29.0",
|
||||
"@sentry/node": "^10.29.0",
|
||||
"@types/semver": "^7.7.1",
|
||||
"big-integer": "^1.6.52",
|
||||
"bootstrap": "^5.3.8",
|
||||
"buffer": "^6.0.3",
|
||||
"chart.js": "^4.5.1",
|
||||
"clipboard": "^2.0.11",
|
||||
"commander": "^14.0.1",
|
||||
"commander": "^14.0.2",
|
||||
"compression": "^1.8.1",
|
||||
"copy-webpack-plugin": "^13.0.1",
|
||||
"cross-env": "^10.1.0",
|
||||
"enhanced-ms": "^4.1.0",
|
||||
"events": "^3.3.0",
|
||||
"express": "^5.2.0",
|
||||
"express": "^5.2.1",
|
||||
"file-saver": "^2.0.5",
|
||||
"golden-layout": "^1.5.9",
|
||||
"http-proxy": "^1.18.1",
|
||||
@@ -50,14 +50,14 @@
|
||||
"js-cookie": "^3.0.5",
|
||||
"jszip": "^3.10.1",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"lru-cache": "^11.2.2",
|
||||
"lru-cache": "^11.2.4",
|
||||
"lz-string": "^1.5.0",
|
||||
"marked": "^16.4.1",
|
||||
"marked": "^16.4.2",
|
||||
"monaco-editor": "^0.49.0",
|
||||
"monaco-vim": "^0.4.2",
|
||||
"monaco-vim": "^0.4.4",
|
||||
"morgan": "^1.10.1",
|
||||
"node-targz": "^0.2.0",
|
||||
"p-queue": "^9.0.0",
|
||||
"p-queue": "^9.0.1",
|
||||
"path-browserify": "^1.0.1",
|
||||
"profanities": "^3.0.1",
|
||||
"prom-client": "^15.1.3",
|
||||
@@ -71,28 +71,28 @@
|
||||
"tom-select": "^2.4.3",
|
||||
"tree-kill": "^1.2.2",
|
||||
"triple-beam": "^1.4.1",
|
||||
"tsx": "^4.20.6",
|
||||
"tsx": "^4.21.0",
|
||||
"underscore": "^1.13.7",
|
||||
"url-join": "^5.0.0",
|
||||
"whatwg-fetch": "^3.6.20",
|
||||
"which": "^5.0.0",
|
||||
"winston": "^3.18.3",
|
||||
"winston": "^3.19.0",
|
||||
"winston-loki": "^6.1.3",
|
||||
"winston-papertrail": "^1.0.5",
|
||||
"winston-transport": "^4.9.0",
|
||||
"ws": "^8.18.3",
|
||||
"yaml": "^2.8.1"
|
||||
"yaml": "^2.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.2.7",
|
||||
"@sentry/types": "^10.21.0",
|
||||
"@smithy/util-stream": "^4.5.3",
|
||||
"@biomejs/biome": "^2.3.8",
|
||||
"@sentry/types": "^10.29.0",
|
||||
"@smithy/util-stream": "^4.5.6",
|
||||
"@types/bootstrap": "^5.2.10",
|
||||
"@types/chai": "^5.2.3",
|
||||
"@types/compression": "^1.8.1",
|
||||
"@types/express": "^5.0.3",
|
||||
"@types/express": "^5.0.6",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/http-proxy": "^1.17.16",
|
||||
"@types/http-proxy": "^1.17.17",
|
||||
"@types/jquery": "^3.5.33",
|
||||
"@types/js-cookie": "^3.0.6",
|
||||
"@types/node-targz": "^0.2.4",
|
||||
@@ -104,31 +104,31 @@
|
||||
"@types/webpack-env": "^1.18.8",
|
||||
"@types/which": "^3.0.4",
|
||||
"@types/ws": "^8.18.1",
|
||||
"@vitest/coverage-v8": "^4.0.1",
|
||||
"@vitest/coverage-v8": "^4.0.15",
|
||||
"aws-sdk-client-mock": "^4.1.0",
|
||||
"cheerio": "^1.1.2",
|
||||
"css-loader": "^7.1.2",
|
||||
"css-minimizer-webpack-plugin": "^7.0.2",
|
||||
"cypress": "^15.5.0",
|
||||
"css-minimizer-webpack-plugin": "^7.0.3",
|
||||
"cypress": "^15.7.1",
|
||||
"file-loader": "^6.2.0",
|
||||
"happy-dom": "^20.0.8",
|
||||
"happy-dom": "^20.0.11",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.2.5",
|
||||
"lint-staged": "^16.2.7",
|
||||
"mini-css-extract-plugin": "^2.9.4",
|
||||
"mock-fs": "^5.5.0",
|
||||
"monaco-editor-webpack-plugin": "7.1.0",
|
||||
"nock": "^14.0.10",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"sass": "^1.93.2",
|
||||
"sass-loader": "^16.0.5",
|
||||
"sass": "^1.95.1",
|
||||
"sass-loader": "^16.0.6",
|
||||
"source-map-loader": "^5.0.0",
|
||||
"supertest": "^7.1.4",
|
||||
"terser-webpack-plugin": "^5.3.14",
|
||||
"terser-webpack-plugin": "^5.3.15",
|
||||
"ts-loader": "^9.5.4",
|
||||
"typescript": "^5.9.3",
|
||||
"vitest": "^4.0.1",
|
||||
"vitest-fetch-mock": "^0.4.5",
|
||||
"webpack": "^5.102.1",
|
||||
"webpack": "^5.103.0",
|
||||
"webpack-cli": "^6.0.1",
|
||||
"webpack-dev-middleware": "^7.4.5",
|
||||
"webpack-manifest-plugin": "^5.0.1"
|
||||
|
||||
@@ -501,8 +501,5 @@ export interface SerializedLayoutState {
|
||||
*/
|
||||
export type DragSourceFactory<K extends keyof ComponentStateMap> = () => ComponentConfig<K>;
|
||||
|
||||
export type InferComponentState<T> = T extends MonacoPane<infer _E, infer S>
|
||||
? S & MonacoPaneState
|
||||
: T extends Pane<infer S>
|
||||
? S & PaneState
|
||||
: never;
|
||||
export type InferComponentState<T> =
|
||||
T extends MonacoPane<infer _E, infer S> ? S & MonacoPaneState : T extends Pane<infer S> ? S & PaneState : never;
|
||||
|
||||
@@ -449,18 +449,22 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
|
||||
|
||||
onEscapeKey(): void {
|
||||
if ((this.editor as any).vimInUse) {
|
||||
const currentState = monacoVim.VimMode.Vim.maybeInitVimState_(this.vimMode);
|
||||
// The Vim property exists at runtime but isn't in the type definitions
|
||||
const Vim = (monacoVim.VimMode as any).Vim;
|
||||
const currentState = Vim.maybeInitVimState_(this.vimMode);
|
||||
if (currentState.insertMode) {
|
||||
monacoVim.VimMode.Vim.exitInsertMode(this.vimMode);
|
||||
Vim.exitInsertMode(this.vimMode);
|
||||
} else if (currentState.visualMode) {
|
||||
monacoVim.VimMode.Vim.exitVisualMode(this.vimMode, false);
|
||||
Vim.exitVisualMode(this.vimMode, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onInsertKey(event: JQuery.TriggeredEvent<Document, undefined, Document, Document>): void {
|
||||
if ((this.editor as any).vimInUse) {
|
||||
const currentState = monacoVim.VimMode.Vim.maybeInitVimState_(this.vimMode);
|
||||
// The Vim property exists at runtime but isn't in the type definitions
|
||||
const Vim = (monacoVim.VimMode as any).Vim;
|
||||
const currentState = Vim.maybeInitVimState_(this.vimMode);
|
||||
if (!currentState.insertMode) {
|
||||
const insertEvent = {
|
||||
preventDefault: event.preventDefault,
|
||||
|
||||
@@ -46,12 +46,19 @@ describe('CLI Module', () => {
|
||||
expect(parsePortNumberForOptions('65535')).toEqual(65535);
|
||||
});
|
||||
|
||||
it.each(['-1', '65536', 'abc', '123abc', '', '123.45', '12.34.56', '12-34-56', '12,34,56'])(
|
||||
'should throw on bad numbers: "%s"',
|
||||
notNumber => {
|
||||
expect(() => parsePortNumberForOptions(notNumber)).toThrow();
|
||||
},
|
||||
);
|
||||
it.each([
|
||||
'-1',
|
||||
'65536',
|
||||
'abc',
|
||||
'123abc',
|
||||
'',
|
||||
'123.45',
|
||||
'12.34.56',
|
||||
'12-34-56',
|
||||
'12,34,56',
|
||||
])('should throw on bad numbers: "%s"', notNumber => {
|
||||
expect(() => parsePortNumberForOptions(notNumber)).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe('getGitReleaseName', () => {
|
||||
|
||||
@@ -54,7 +54,7 @@ const hasGit = fs.existsSync(path.resolve(__dirname, '.git'));
|
||||
// Hack alert: due to a variety of issues, sometimes we need to change
|
||||
// the name here. Mostly it's things like webpack changes that affect
|
||||
// how minification is done, even though that's supposed not to matter.
|
||||
const webpackJsHack = '.v62.';
|
||||
const webpackJsHack = '.v63.';
|
||||
const plugins: Webpack.WebpackPluginInstance[] = [
|
||||
new MonacoEditorWebpackPlugin({
|
||||
languages: [
|
||||
|
||||
Reference in New Issue
Block a user