Skip to content

Commit 9bfea51

Browse files
authored
Use graphql-request package for the LeetCode API (#439)
Although it was simple enough to roll our own client, this way we're using a well-known package.
1 parent 5b32196 commit 9bfea51

File tree

31 files changed

+363
-131
lines changed

31 files changed

+363
-131
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"@code-chronicles/eslint-config": "workspace:*",
3232
"@yarnpkg/types": "4.0.0",
33-
"eslint": "9.11.0",
33+
"eslint": "9.11.1",
3434
"husky": "9.1.6",
3535
"lint-staged": "15.2.10",
3636
"prettier": "3.3.3"

workspaces/adventure-pack/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
"@code-chronicles/eslint-config": "workspace:*",
7070
"@code-chronicles/util": "workspace:*",
7171
"@jest/globals": "29.7.0",
72-
"@types/node": "22.5.5",
73-
"@types/react": "18.3.8",
72+
"@types/node": "22.7.0",
73+
"@types/react": "18.3.9",
7474
"@types/react-dom": "18.3.0",
7575
"@types/react-syntax-highlighter": "15.5.13",
7676
"cross-env": "7.0.3",
77-
"eslint": "9.11.0",
77+
"eslint": "9.11.1",
7878
"jest": "29.7.0",
7979
"prettier": "3.3.3",
8080
"prettier-plugin-java": "2.6.4",

workspaces/adventure-pack/webpack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const config: Configuration = {
3434
],
3535
},
3636

37+
resolve: {
38+
conditionNames: ["import"],
39+
},
40+
3741
plugins: [
3842
new webpack.DefinePlugin({
3943
ADVENTURE_PACK_COMMIT_HASH: JSON.stringify(commitHash),

workspaces/chrome-extension-hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@code-chronicles/eslint-config": "workspace:*",
20-
"@types/node": "22.5.5",
20+
"@types/node": "22.7.0",
2121
"cross-env": "7.0.3",
2222
"prettier": "3.3.3",
2323
"ts-loader": "9.5.1",

workspaces/chrome-extension-hello-world/webpack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const config: Configuration = {
3030
],
3131
},
3232

33+
resolve: {
34+
conditionNames: ["import"],
35+
},
36+
3337
optimization: {
3438
splitChunks: {
3539
cacheGroups: {

workspaces/download-leetcode-submissions/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
},
3030
"devDependencies": {
3131
"@code-chronicles/eslint-config": "workspace:*",
32-
"@types/node": "22.5.5",
32+
"@types/node": "22.7.0",
3333
"cross-env": "7.0.3",
34-
"eslint": "9.11.0",
34+
"eslint": "9.11.1",
3535
"prettier": "3.3.3",
3636
"ts-loader": "9.5.1",
3737
"tsx": "4.19.1",

workspaces/download-leetcode-submissions/webpack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ const config: Configuration = {
3838
],
3939
},
4040

41+
resolve: {
42+
conditionNames: ["import"],
43+
},
44+
4145
externalsType: "commonjs",
4246
externals: ({ request }: ExternalItemFunctionData) =>
4347
Promise.resolve(

workspaces/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"typescript": "5.6.2"
3434
},
3535
"devDependencies": {
36-
"eslint": "9.11.0",
36+
"eslint": "9.11.1",
3737
"prettier": "3.3.3"
3838
}
3939
}

workspaces/fetch-leetcode-problem-list/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
},
2828
"devDependencies": {
2929
"@code-chronicles/eslint-config": "workspace:*",
30-
"@types/node": "22.5.5",
30+
"@types/node": "22.7.0",
3131
"cross-env": "7.0.3",
32-
"eslint": "9.11.0",
32+
"eslint": "9.11.1",
3333
"prettier": "3.3.3",
3434
"ts-loader": "9.5.1",
3535
"tsx": "4.19.1",

workspaces/fetch-leetcode-problem-list/webpack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ const config: Configuration = {
3838
],
3939
},
4040

41+
resolve: {
42+
conditionNames: ["import"],
43+
},
44+
4145
externalsType: "commonjs",
4246
externals: ({ request }: ExternalItemFunctionData) =>
4347
Promise.resolve(

0 commit comments

Comments
 (0)