mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 07:04:04 -05:00
Bump latest deps (#5252)
This commit is contained in:
@@ -32,7 +32,10 @@ import {SentryCapture} from '../sentry.js';
|
||||
export class HealthCheckHandler {
|
||||
public readonly handle: (req: any, res: any) => Promise<void>;
|
||||
|
||||
constructor(private readonly compilationQueue: CompilationQueue, private readonly filePath: any) {
|
||||
constructor(
|
||||
private readonly compilationQueue: CompilationQueue,
|
||||
private readonly filePath: any,
|
||||
) {
|
||||
this.handle = this._handle.bind(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,10 @@ export class NoScriptHandler {
|
||||
formDataParser: ReturnType<typeof bodyParser.urlencoded> | undefined;
|
||||
|
||||
/* the type for config makes the most sense to define in app.ts or api.ts */
|
||||
constructor(private readonly router: express.Router, config: any) {
|
||||
constructor(
|
||||
private readonly router: express.Router,
|
||||
config: any,
|
||||
) {
|
||||
this.staticHeaders = config.staticHeaders;
|
||||
this.contentPolicyHeader = config.contentPolicyHeader;
|
||||
this.clientOptionsHandler = config.clientOptionsHandler;
|
||||
|
||||
@@ -53,7 +53,10 @@ export class RouteAPI {
|
||||
storageHandler: StorageBase;
|
||||
apiHandler: ApiHandler;
|
||||
|
||||
constructor(private readonly router: express.Router, config: HandlerConfig) {
|
||||
constructor(
|
||||
private readonly router: express.Router,
|
||||
config: HandlerConfig,
|
||||
) {
|
||||
this.renderGoldenLayout = config.renderGoldenLayout;
|
||||
|
||||
this.storageHandler = config.storageHandler;
|
||||
|
||||
@@ -31,7 +31,10 @@ import {Source} from '../sources/index.js';
|
||||
const ALLOWED_ACTIONS = new Set(['list', 'load']);
|
||||
|
||||
export class SourceHandler {
|
||||
public constructor(private fileSources: Source[], private addStaticHeaders: (res: express.Response) => void) {}
|
||||
public constructor(
|
||||
private fileSources: Source[],
|
||||
private addStaticHeaders: (res: express.Response) => void,
|
||||
) {}
|
||||
|
||||
private getSourceForHandler(handler: string): Source | null {
|
||||
const records = _.indexBy(this.fileSources, 'urlpart');
|
||||
|
||||
@@ -50,7 +50,10 @@ export class LlvmIrParser {
|
||||
private moduleMetadata: RegExp;
|
||||
private functionAttrs: RegExp;
|
||||
|
||||
constructor(compilerProps, private readonly irDemangler: LLVMIRDemangler) {
|
||||
constructor(
|
||||
compilerProps,
|
||||
private readonly irDemangler: LLVMIRDemangler,
|
||||
) {
|
||||
this.maxIrLines = 5000;
|
||||
if (compilerProps) {
|
||||
this.maxIrLines = compilerProps('maxLinesOfAsm', this.maxIrLines);
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
export abstract class BaseObjdumper {
|
||||
constructor(protected readonly intelAsmOptions: string[], protected readonly widthOptions: string[]) {}
|
||||
constructor(
|
||||
protected readonly intelAsmOptions: string[],
|
||||
protected readonly widthOptions: string[],
|
||||
) {}
|
||||
|
||||
getDefaultArgs(
|
||||
outputFilename: string,
|
||||
|
||||
@@ -37,7 +37,10 @@ const USABLE_HASH_CHECK_LENGTH = 9; // Quite generous
|
||||
const MAX_TRIES = 4;
|
||||
|
||||
export abstract class StorageBase {
|
||||
constructor(protected readonly httpRootDir: string, protected readonly compilerProps: CompilerProps) {}
|
||||
constructor(
|
||||
protected readonly httpRootDir: string,
|
||||
protected readonly compilerProps: CompilerProps,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Encode a buffer as a URL-safe string.
|
||||
|
||||
3253
package-lock.json
generated
3253
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -38,7 +38,7 @@
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint-plugin-header": "^3.1.1",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-prettier": "^5.0.0-alpha.2",
|
||||
"events": "^3.3.0",
|
||||
"express": "^4.17.2",
|
||||
"file-saver": "^2.0.5",
|
||||
@@ -52,7 +52,7 @@
|
||||
"jszip": "^3.7.1",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"lru-cache": "^9.1.2",
|
||||
"lru-cache": "^10.0.0",
|
||||
"lz-string": "^1.4.4",
|
||||
"monaco-editor": "^0.36.1",
|
||||
"monaco-vim": "^0.3.5",
|
||||
@@ -114,10 +114,10 @@
|
||||
"@types/temp": "^0.9.1",
|
||||
"@types/underscore": "^1.11.4",
|
||||
"@types/webpack-env": "^1.18.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
||||
"@typescript-eslint/parser": "^5.8.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||
"@typescript-eslint/parser": "^5.62.0",
|
||||
"approvals": "^6.0.0",
|
||||
"aws-sdk-client-mock": "^2.0.1",
|
||||
"aws-sdk-client-mock": "^3.0.0",
|
||||
"c8": "^7.13.0",
|
||||
"chai": "^4.3.4",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
@@ -147,7 +147,7 @@
|
||||
"mock-fs": "^5.1.2",
|
||||
"monaco-editor-webpack-plugin": "^7.0.1",
|
||||
"nock": "^13.2.1",
|
||||
"prettier": "^2.5.1",
|
||||
"prettier": "^3.0.0",
|
||||
"sass": "^1.45.1",
|
||||
"sass-loader": "^13.2.0",
|
||||
"sinon": "^15.0.1",
|
||||
|
||||
@@ -108,7 +108,11 @@ export class Hub {
|
||||
public subdomainLangId: string | undefined;
|
||||
public defaultLangId: string;
|
||||
|
||||
public constructor(public readonly layout: GoldenLayout, subLangId: string | undefined, defaultLangId: string) {
|
||||
public constructor(
|
||||
public readonly layout: GoldenLayout,
|
||||
subLangId: string | undefined,
|
||||
defaultLangId: string,
|
||||
) {
|
||||
this.lastOpenedLangId = null;
|
||||
this.subdomainLangId = subLangId;
|
||||
this.defaultLangId = defaultLangId;
|
||||
|
||||
@@ -37,7 +37,10 @@ export class Printerinator {
|
||||
itemsAdded: number;
|
||||
css: string | null = null;
|
||||
|
||||
constructor(hub: Hub, private readonly themer: Themer) {
|
||||
constructor(
|
||||
hub: Hub,
|
||||
private readonly themer: Themer,
|
||||
) {
|
||||
this.eventHub = hub.createEventHub();
|
||||
this.printview = $('#printview');
|
||||
|
||||
|
||||
@@ -65,28 +65,29 @@ function provide(
|
||||
|
||||
if (item) {
|
||||
return {
|
||||
actions: item.fixes.filter(f =>
|
||||
f.diagnostics?.some(d =>
|
||||
context.markers.some(m => {
|
||||
const diagnostic = _.pick(
|
||||
d,
|
||||
'message',
|
||||
'startLineNumber',
|
||||
'startColumn',
|
||||
'endLineNumber',
|
||||
'endColumn',
|
||||
);
|
||||
const marker = _.pick(
|
||||
m,
|
||||
'message',
|
||||
'startLineNumber',
|
||||
'startColumn',
|
||||
'endLineNumber',
|
||||
'endColumn',
|
||||
);
|
||||
return _.isEqual(marker, diagnostic);
|
||||
}),
|
||||
),
|
||||
actions: item.fixes.filter(
|
||||
f =>
|
||||
f.diagnostics?.some(d =>
|
||||
context.markers.some(m => {
|
||||
const diagnostic = _.pick(
|
||||
d,
|
||||
'message',
|
||||
'startLineNumber',
|
||||
'startColumn',
|
||||
'endLineNumber',
|
||||
'endColumn',
|
||||
);
|
||||
const marker = _.pick(
|
||||
m,
|
||||
'message',
|
||||
'startLineNumber',
|
||||
'startColumn',
|
||||
'endLineNumber',
|
||||
'endColumn',
|
||||
);
|
||||
return _.isEqual(marker, diagnostic);
|
||||
}),
|
||||
),
|
||||
),
|
||||
dispose: function () {},
|
||||
};
|
||||
|
||||
@@ -79,7 +79,10 @@ export interface SiteSettings {
|
||||
}
|
||||
|
||||
class BaseSetting {
|
||||
constructor(public elem: JQuery, public name: string) {}
|
||||
constructor(
|
||||
public elem: JQuery,
|
||||
public name: string,
|
||||
) {}
|
||||
|
||||
// Can be undefined if the element doesn't exist which is the case in embed mode
|
||||
protected val(): string | number | string[] | undefined {
|
||||
|
||||
@@ -598,7 +598,9 @@ kbd {
|
||||
border-radius: 4px;
|
||||
padding: 0.1em 0.5em;
|
||||
margin: 0 0.2em;
|
||||
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
|
||||
box-shadow:
|
||||
0 1px 0px rgba(0, 0, 0, 0.2),
|
||||
0 0 0 2px #fff inset;
|
||||
}
|
||||
|
||||
#simplecook {
|
||||
|
||||
@@ -404,7 +404,10 @@ editor.defineTheme('ce-pink', {
|
||||
export class Themer {
|
||||
private currentTheme: Theme | null = null;
|
||||
|
||||
constructor(private eventHub: GoldenLayout.EventEmitter, initialSettings: SiteSettings) {
|
||||
constructor(
|
||||
private eventHub: GoldenLayout.EventEmitter,
|
||||
initialSettings: SiteSettings,
|
||||
) {
|
||||
this.onSettingsChange(initialSettings);
|
||||
|
||||
this.eventHub.on('settingsChange', this.onSettingsChange, this);
|
||||
|
||||
@@ -40,7 +40,10 @@ class SiteTemplatesWidget {
|
||||
private readonly alertSystem: Alert;
|
||||
private templatesConfig: null | SiteTemplatesType = null;
|
||||
private populated = false;
|
||||
constructor(siteTemplateScreenshots: any, private readonly layout: GoldenLayout) {
|
||||
constructor(
|
||||
siteTemplateScreenshots: any,
|
||||
private readonly layout: GoldenLayout,
|
||||
) {
|
||||
this.siteTemplateScreenshots = siteTemplateScreenshots;
|
||||
this.modal = $('#site-template-loader');
|
||||
const siteTemplatePreview = document.getElementById('site-template-preview');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -56,7 +56,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 = '.v27.';
|
||||
const webpackJsHack = '.v28.';
|
||||
const plugins: Webpack.WebpackPluginInstance[] = [
|
||||
new MonacoEditorWebpackPlugin({
|
||||
languages: [
|
||||
|
||||
Reference in New Issue
Block a user