Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shahata committed Apr 14, 2024
1 parent 4483040 commit 1979353
Show file tree
Hide file tree
Showing 15 changed files with 858 additions and 1,276 deletions.
11 changes: 11 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import js from '@eslint/js';
import globals from 'globals';
import jest from 'eslint-plugin-jest';
import prettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
js.configs.recommended,
jest.configs['flat/recommended'],
prettierRecommended,
{ languageOptions: { globals: globals.browser } },
];
1,632 changes: 604 additions & 1,028 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 13 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,30 @@
"prepare": "husky install"
},
"dependencies": {
"@datastructures-js/priority-queue": "^6.3.0",
"@datastructures-js/priority-queue": "^6.3.1",
"@graph-algorithm/minimum-cut": "^2.0.0",
"@shahata/inquirer-timeout-confirm-prompt": "^0.1.1",
"chart.js": "^4.4.0",
"chart.js": "^4.4.2",
"combinatorial-generators": "^1.1.2",
"es-module-shims": "^1.8.2",
"inquirer": "^9.2.12",
"inquirer": "^9.2.18",
"node-forge": "^1.3.1",
"progress": "^2.0.3",
"regenerator-runtime": "^0.14.1"
},
"devDependencies": {
"@playwright/browser-chromium": "^1.40.1",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-prettier": "^5.0.1",
"@playwright/browser-chromium": "^1.43.1",
"@types/jest": "^29.5.12",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-prettier": "^5.1.3",
"http-server": "^14.1.1",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"playwright": "^1.40.1",
"prettier": "^3.1.1",
"typescript": "^5.3.2"
},
"eslintConfig": {
"parserOptions": {
"sourceType": "module"
},
"env": {
"node": true,
"es2024": true
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
]
"playwright": "^1.43.1",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"jest": {
"testPathIgnorePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion src/2017/day18.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function execute(commands, state) {
state.instruction++;
run++;
}
} catch (e) {
} catch {
//
}
return run;
Expand Down
2 changes: 1 addition & 1 deletion src/2023/end.html

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions src/2023/index.html

Large diffs are not rendered by default.

305 changes: 158 additions & 147 deletions src/2023/leaderboard.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (process.env.ADVENT_SESSION) {
console.error('************************************************************');
console.error('** **');
console.error('** You must set environment variable named ADVENT_SESSION **');
console.error('** with the session cookie value from adventofcode **');
console.error('** with the session cookie value from adventofcode.com **');
console.error('** **');
console.error('************************************************************');
console.error('************************************************************');
Expand Down
1 change: 0 additions & 1 deletion src/utils/create-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env browser */
import { imports } from './urls.js';

class WorkerShim {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/solver.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getDays(year) {
.map(x => parseInt(x.match(/\d+/).shift()))
.sort((a, b) => a - b)
.map(x => `${x}`);
} catch (e) {
} catch {
console.error(`must pass valid year in first argument`);
process.exit(0);
}
Expand Down
3 changes: 1 addition & 2 deletions src/utils/urls.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-env browser */
import pkg from '../../package-lock.json' assert { type: 'json' };
import pkg from '../../static/package-lock.js';

const v = p => pkg.packages[`node_modules/${p}`].version;
const skypack = (name, suffix = '') => ({
Expand Down
1 change: 0 additions & 1 deletion src/utils/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env worker */
import { dayName } from './day-name.js';

let duration;
Expand Down
3 changes: 3 additions & 0 deletions static/package-lock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pkg from '../package-lock.json' with { type: 'json' };

export default pkg;
Binary file modified static/screenshot-events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/screenshot-solver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1979353

Please sign in to comment.