File tree Expand file tree Collapse file tree 15 files changed +166
-603
lines changed
download-leetcode-submissions
fetch-leetcode-problem-list
fetch-recent-accepted-leetcode-submissions
javascript-leetcode-month
src/scripts/scrape-graphql-schema
post-leetcode-potd-to-discord
webpack-make-output-executable-plugin Expand file tree Collapse file tree 15 files changed +166
-603
lines changed Original file line number Diff line number Diff line change 6969 "@code-chronicles/eslint-config" : " workspace:*" ,
7070 "@code-chronicles/util" : " workspace:*" ,
7171 "@jest/globals" : " 29.7.0" ,
72- "@types/node" : " 22.7.4 " ,
72+ "@types/node" : " 22.7.5 " ,
7373 "@types/react" : " 18.3.11" ,
7474 "@types/react-dom" : " 18.3.0" ,
7575 "@types/react-syntax-highlighter" : " 15.5.13" ,
Original file line number Diff line number Diff line change 3030 "devDependencies" : {
3131 "@code-chronicles/eslint-config" : " workspace:*" ,
3232 "@code-chronicles/webpack-make-output-executable-plugin" : " workspace:*" ,
33- "@types/node" : " 22.7.4 " ,
33+ "@types/node" : " 22.7.5 " ,
3434 "cross-env" : " 7.0.3" ,
3535 "eslint" : " 9.12.0" ,
3636 "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
Original file line number Diff line number Diff line change 2323 "dependencies" : {
2424 "@stylistic/eslint-plugin-js" : " 2.9.0" ,
2525 "@stylistic/eslint-plugin-ts" : " 2.9.0" ,
26- "@typescript-eslint/eslint-plugin" : " 8.8.0 " ,
27- "@typescript-eslint/parser" : " 8.8.0 " ,
26+ "@typescript-eslint/eslint-plugin" : " 8.8.1 " ,
27+ "@typescript-eslint/parser" : " 8.8.1 " ,
2828 "eslint-import-resolver-typescript" : " 3.6.3" ,
2929 "eslint-plugin-import" : " 2.31.0" ,
3030 "eslint-plugin-import-x" : " 4.3.1" ,
Original file line number Diff line number Diff line change 2828 "devDependencies" : {
2929 "@code-chronicles/eslint-config" : " workspace:*" ,
3030 "@code-chronicles/webpack-make-output-executable-plugin" : " workspace:*" ,
31- "@types/node" : " 22.7.4 " ,
31+ "@types/node" : " 22.7.5 " ,
3232 "cross-env" : " 7.0.3" ,
3333 "eslint" : " 9.12.0" ,
3434 "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
Original file line number Diff line number Diff line change 2828 "devDependencies" : {
2929 "@code-chronicles/eslint-config" : " workspace:*" ,
3030 "@code-chronicles/webpack-make-output-executable-plugin" : " workspace:*" ,
31- "@types/node" : " 22.7.4 " ,
31+ "@types/node" : " 22.7.5 " ,
3232 "cross-env" : " 7.0.3" ,
3333 "eslint" : " 9.12.0" ,
3434 "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
Original file line number Diff line number Diff line change 2626 },
2727 "devDependencies" : {
2828 "@code-chronicles/eslint-config" : " workspace:*" ,
29- "@types/node" : " 22.7.4 " ,
29+ "@types/node" : " 22.7.5 " ,
3030 "eslint" : " 9.12.0" ,
3131 "prettier" : " 3.3.3" ,
3232 "typescript" : " 5.6.2"
Original file line number Diff line number Diff line change 2323 "@code-chronicles/eslint-config" : " workspace:*" ,
2424 "@code-chronicles/util" : " workspace:*" ,
2525 "@types/mdast" : " 4.0.4" ,
26- "@types/node" : " 22.7.4 " ,
26+ "@types/node" : " 22.7.5 " ,
2727 "eslint" : " 9.12.0" ,
2828 "mdast" : " 3.0.0" ,
2929 "prettier" : " 3.3.3" ,
Original file line number Diff line number Diff line change 3636 "devDependencies" : {
3737 "@code-chronicles/eslint-config" : " workspace:*" ,
3838 "@graphql-codegen/add" : " 5.0.3" ,
39- "@graphql-codegen/cli" : " 5.0.2 " ,
39+ "@graphql-codegen/cli" : " 5.0.3 " ,
4040 "@graphql-codegen/near-operation-file-preset" : " 3.0.0" ,
41- "@types/node" : " 22.7.4 " ,
41+ "@types/node" : " 22.7.5 " ,
4242 "cross-env" : " 7.0.3" ,
4343 "eslint" : " 9.12.0" ,
4444 "graphql-query-compress" : " 1.2.4" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export function markFieldsNonNull(
1111 return immutableUpdate ( typeInfo , {
1212 fields : {
1313 $apply : ( fields : ReadonlyDeep < LeetCodeGraphQLType > [ "fields" ] ) => {
14- const arr = nullthrows ( fields ) ;
1514 const remainingFieldNames = new Set ( fieldNames ) ;
1615
1716 return nullthrows ( fields ) . map ( ( field ) => {
@@ -22,6 +21,9 @@ export function markFieldsNonNull(
2221 remainingFieldNames . delete ( field . name ) ;
2322
2423 if ( field . type . kind === "NON_NULL" ) {
24+ console . error (
25+ `${ typeInfo . name } .${ field . name } is already non-null!` ,
26+ ) ;
2527 return field ;
2628 }
2729
Original file line number Diff line number Diff line change 2727 },
2828 "devDependencies" : {
2929 "@code-chronicles/eslint-config" : " workspace:*" ,
30- "@types/node" : " 22.7.4 " ,
30+ "@types/node" : " 22.7.5 " ,
3131 "cross-env" : " 7.0.3" ,
3232 "eslint" : " 9.12.0" ,
3333 "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
You can’t perform that action at this time.
0 commit comments