diff --git a/package-lock.json b/package-lock.json index b3c7d7c803c..548407a2240 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,7 @@ "systemd-socket": "0.0.0", "tar-stream": "^3.0.0", "temp": "^0.9.4", - "tom-select": "2.0.3", + "tom-select": "^2.3.1", "tree-kill": "^1.2.2", "triple-beam": "^1.3.0", "ts-node": "^10.4.0", @@ -18484,11 +18484,12 @@ "integrity": "sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==" }, "node_modules/tom-select": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/tom-select/-/tom-select-2.0.3.tgz", - "integrity": "sha512-IHcVHVb4/+I+4pAuXjEFVoH97mOvjp8CQ45PemnapcoRY46LqmH07hBwvRIIEznsXqBlFgZH7Uw7Cjh45mNlTA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tom-select/-/tom-select-2.3.1.tgz", + "integrity": "sha512-QS4vnOcB6StNGqX4sGboGXL2fkhBF2gIBB+8Hwv30FZXYPn0CyYO8kkdATRvwfCTThxiR4WcXwKJZ3cOmtI9eg==", "dependencies": { - "@orchidjs/sifter": "^0.9.1" + "@orchidjs/sifter": "^1.0.3", + "@orchidjs/unicode-variants": "^1.0.4" }, "engines": { "node": "*" @@ -18498,11 +18499,6 @@ "url": "https://opencollective.com/tom-select" } }, - "node_modules/tom-select/node_modules/@orchidjs/sifter": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/@orchidjs/sifter/-/sifter-0.9.3.tgz", - "integrity": "sha512-9XGiAJcWvEektxjR9X+dYeG+kg8GdojM6ZCmrnuDaWoVew+GAKxiesvYxyY+RLUgWTv8B1qpLIVYlswxKcW5XQ==" - }, "node_modules/tough-cookie": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", diff --git a/package.json b/package.json index ef8af238964..4b33dc12fdc 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "systemd-socket": "0.0.0", "tar-stream": "^3.0.0", "temp": "^0.9.4", - "tom-select": "2.0.3", + "tom-select": "^2.3.1", "tree-kill": "^1.2.2", "triple-beam": "^1.3.0", "ts-node": "^10.4.0", diff --git a/static/panes/diff.ts b/static/panes/diff.ts index 209fa7a768c..0b6ad226be3 100644 --- a/static/panes/diff.ts +++ b/static/panes/diff.ts @@ -208,7 +208,7 @@ export class Diff extends MonacoPane { - const options = decodeSelectizeValue(value as any as string); + const options = decodeSelectizeValue(value as string); if (picker.classList.contains('lhsdifftype')) { this.lhs.difftype = options.difftype; this.lhs.extraoption = options.extraoption; @@ -258,8 +258,8 @@ export class Diff extends MonacoPane { - if (!((value as any as string) in this.compilers)) return; - const compiler = this.compilers[value as any as string]; + if (!((value as string) in this.compilers)) return; + const compiler = this.compilers[value as string]; if (picker.classList.contains('lhs')) { this.lhs.compiler = compiler; this.lhs.id = compiler.id; diff --git a/static/panes/llvm-opt-pipeline.ts b/static/panes/llvm-opt-pipeline.ts index 624385c38dd..1bc41f2d428 100644 --- a/static/panes/llvm-opt-pipeline.ts +++ b/static/panes/llvm-opt-pipeline.ts @@ -111,7 +111,7 @@ export class LLVMOptPipeline extends MonacoPane this.selectFunction(e as any as string), + onChange: e => this.selectFunction(e as string), }); this.clickCallback = this.onClickCallback.bind(this); this.keydownCallback = this.onKeydownCallback.bind(this); diff --git a/static/widgets/compiler-picker.ts b/static/widgets/compiler-picker.ts index 9fc69a1a778..cd8184c712e 100644 --- a/static/widgets/compiler-picker.ts +++ b/static/widgets/compiler-picker.ts @@ -122,7 +122,7 @@ export class CompilerPicker { // Typing here needs improvement later anyway. /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */ if (val) { - const compilerId = val as any as string; + const compilerId = val as string; ga.proxy('send', { hitType: 'event', eventCategory: 'SelectCompiler',