Skip to content

Commit 17a0434

Browse files
committed
Fixed errors
1 parent 9ff26e5 commit 17a0434

File tree

9 files changed

+40
-40
lines changed

9 files changed

+40
-40
lines changed

__tests__/global/__snapshots__/all.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export interface IMediaListOptionsModel {
218218
scoreFormat: Maybe<IScoreFormatModel>;
219219
/** The default order list rows should be displayed in*/
220220
rowOrder: Maybe<string>;
221-
/** (Site only) If the user should be using legacy css-supporting list versions*/
221+
/** @deprecated No longer used*/
222222
useLegacyLists: Maybe<boolean>;
223223
/** The user's anime list options*/
224224
animeList: Maybe<IMediaListTypeOptionsModel>;
@@ -4881,7 +4881,7 @@ export const apiProvider = (apolloClient: ApolloClient<any>) => {
48814881
reject({ gqlErrors: errors, variables, query: queryName });
48824882
}
48834883
},
4884-
error: (error) => reject(error),
4884+
error: (error) => reject({ gqlErrors: [error], variables, query: queryName }),
48854885
complete: () => {
48864886
pending = false;
48874887
},

__tests__/global/__snapshots__/apollo.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export interface IMediaListOptionsModel {
194194
scoreFormat: Maybe<IScoreFormatModel>;
195195
/** The default order list rows should be displayed in*/
196196
rowOrder: Maybe<string>;
197-
/** (Site only) If the user should be using legacy css-supporting list versions*/
197+
/** @deprecated No longer used*/
198198
useLegacyLists: Maybe<boolean>;
199199
/** The user's anime list options*/
200200
animeList: Maybe<IMediaListTypeOptionsModel>;
@@ -4857,7 +4857,7 @@ export const apiProvider = (apolloClient: ApolloClient<any>) => {
48574857
reject({ gqlErrors: errors, variables, query: queryName });
48584858
}
48594859
},
4860-
error: (error) => reject(error),
4860+
error: (error) => reject({ gqlErrors: [error], variables, query: queryName }),
48614861
complete: () => {
48624862
pending = false;
48634863
},

__tests__/global/__snapshots__/react-hooks.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export interface IMediaListOptionsModel {
203203
scoreFormat: Maybe<IScoreFormatModel>;
204204
/** The default order list rows should be displayed in*/
205205
rowOrder: Maybe<string>;
206-
/** (Site only) If the user should be using legacy css-supporting list versions*/
206+
/** @deprecated No longer used*/
207207
useLegacyLists: Maybe<boolean>;
208208
/** The user's anime list options*/
209209
animeList: Maybe<IMediaListTypeOptionsModel>;

__tests__/global/__snapshots__/templates.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export interface IMediaListOptionsModel {
192192
scoreFormat: Maybe<IScoreFormatModel>;
193193
/** The default order list rows should be displayed in*/
194194
rowOrder: Maybe<string>;
195-
/** (Site only) If the user should be using legacy css-supporting list versions*/
195+
/** @deprecated No longer used*/
196196
useLegacyLists: Maybe<boolean>;
197197
/** The user's anime list options*/
198198
animeList: Maybe<IMediaListTypeOptionsModel>;

__tests__/global/__snapshots__/types.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export interface IMediaListOptionsModel {
170170
scoreFormat: Maybe<IScoreFormatModel>;
171171
/** The default order list rows should be displayed in*/
172172
rowOrder: Maybe<string>;
173-
/** (Site only) If the user should be using legacy css-supporting list versions*/
173+
/** @deprecated No longer used*/
174174
useLegacyLists: Maybe<boolean>;
175175
/** The user's anime list options*/
176176
animeList: Maybe<IMediaListTypeOptionsModel>;

__tests__/global/__snapshots__/vue-hooks.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export interface IMediaListOptionsModel {
205205
scoreFormat: Maybe<IScoreFormatModel>;
206206
/** The default order list rows should be displayed in*/
207207
rowOrder: Maybe<string>;
208-
/** (Site only) If the user should be using legacy css-supporting list versions*/
208+
/** @deprecated No longer used*/
209209
useLegacyLists: Maybe<boolean>;
210210
/** The user's anime list options*/
211211
animeList: Maybe<IMediaListTypeOptionsModel>;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-graphql-to-typescript",
3-
"version": "0.10.5",
3+
"version": "0.10.6",
44
"description": "Simple Typescript interface generator from GraphQL Schemas",
55
"main": "dist/index.js",
66
"typings": "types/index.d.ts",
@@ -77,8 +77,8 @@
7777
"@typescript-eslint/parser": "^4.8.2",
7878
"@vuepress/plugin-google-analytics": "^1.5.4",
7979
"@zerollup/ts-transform-paths": "^1.7.18",
80-
"eslint": "^7.14.0",
81-
"eslint-config-prettier": "^7.0.0",
80+
"eslint": "^7.16.0",
81+
"eslint-config-prettier": "^7.1.0",
8282
"eslint-plugin-prettier": "^3.1.4",
8383
"inquirer": "^7.3.3",
8484
"jest": "^26.6.3",

src/templates/withFunctions.template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const withFunctionsTemplate = (queries: string[], mutations: string[]): s
5858
reject({ gqlErrors: errors, variables, query: queryName });
5959
}
6060
},
61-
error: (error) => reject(error),
61+
error: (error) => reject({ gqlErrors: [error], variables, query: queryName }),
6262
complete: () => {
6363
pending = false;
6464
},

yarn.lock

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,10 +2140,10 @@ assign-symbols@^1.0.0:
21402140
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
21412141
integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=
21422142

2143-
astral-regex@^1.0.0:
2144-
version "1.0.0"
2145-
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
2146-
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
2143+
astral-regex@^2.0.0:
2144+
version "2.0.0"
2145+
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
2146+
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
21472147

21482148
async-each@^1.0.1:
21492149
version "1.0.3"
@@ -4047,10 +4047,10 @@ escodegen@^1.14.1:
40474047
optionalDependencies:
40484048
source-map "~0.6.1"
40494049

4050-
eslint-config-prettier@^7.0.0:
4051-
version "7.0.0"
4052-
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.0.0.tgz#c1ae4106f74e6c0357f44adb076771d032ac0e97"
4053-
integrity sha512-8Y8lGLVPPZdaNA7JXqnvETVC7IiVRgAP6afQu9gOQRn90YY3otMNh+x7Vr2vMePQntF+5erdSUBqSzCmU/AxaQ==
4050+
eslint-config-prettier@^7.1.0:
4051+
version "7.1.0"
4052+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f"
4053+
integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA==
40544054

40554055
eslint-plugin-prettier@^3.1.4:
40564056
version "3.3.0"
@@ -4092,10 +4092,10 @@ eslint-visitor-keys@^2.0.0:
40924092
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8"
40934093
integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==
40944094

4095-
eslint@^7.14.0:
4096-
version "7.15.0"
4097-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.15.0.tgz#eb155fb8ed0865fcf5d903f76be2e5b6cd7e0bc7"
4098-
integrity sha512-Vr64xFDT8w30wFll643e7cGrIkPEU50yIiI36OdSIDoSGguIeaLzBo0vpGvzo9RECUqq7htURfwEtKqwytkqzA==
4095+
eslint@^7.16.0:
4096+
version "7.16.0"
4097+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.16.0.tgz#a761605bf9a7b32d24bb7cde59aeb0fd76f06092"
4098+
integrity sha512-iVWPS785RuDA4dWuhhgXTNrGxHHK3a8HLSMBgbbU59ruJDubUraXN8N5rn7kb8tG6sjg74eE0RA3YWT51eusEw==
40994099
dependencies:
41004100
"@babel/code-frame" "^7.0.0"
41014101
"@eslint/eslintrc" "^0.2.2"
@@ -4131,7 +4131,7 @@ eslint@^7.14.0:
41314131
semver "^7.2.1"
41324132
strip-ansi "^6.0.0"
41334133
strip-json-comments "^3.1.0"
4134-
table "^5.2.3"
4134+
table "^6.0.4"
41354135
text-table "^0.2.0"
41364136
v8-compile-cache "^2.0.3"
41374137

@@ -8838,14 +8838,14 @@ slash@^3.0.0:
88388838
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
88398839
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
88408840

8841-
slice-ansi@^2.1.0:
8842-
version "2.1.0"
8843-
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636"
8844-
integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==
8841+
slice-ansi@^4.0.0:
8842+
version "4.0.0"
8843+
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b"
8844+
integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==
88458845
dependencies:
8846-
ansi-styles "^3.2.0"
8847-
astral-regex "^1.0.0"
8848-
is-fullwidth-code-point "^2.0.0"
8846+
ansi-styles "^4.0.0"
8847+
astral-regex "^2.0.0"
8848+
is-fullwidth-code-point "^3.0.0"
88498849

88508850
smoothscroll-polyfill@^0.4.3:
88518851
version "0.4.4"
@@ -9335,15 +9335,15 @@ symbol-tree@^3.2.4:
93359335
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
93369336
integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
93379337

9338-
table@^5.2.3:
9339-
version "5.4.6"
9340-
resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e"
9341-
integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==
9338+
table@^6.0.4:
9339+
version "6.0.4"
9340+
resolved "https://registry.yarnpkg.com/table/-/table-6.0.4.tgz#c523dd182177e926c723eb20e1b341238188aa0d"
9341+
integrity sha512-sBT4xRLdALd+NFBvwOz8bw4b15htyythha+q+DVZqy2RS08PPC8O2sZFgJYEY7bJvbCFKccs+WIZ/cd+xxTWCw==
93429342
dependencies:
9343-
ajv "^6.10.2"
9344-
lodash "^4.17.14"
9345-
slice-ansi "^2.1.0"
9346-
string-width "^3.0.0"
9343+
ajv "^6.12.4"
9344+
lodash "^4.17.20"
9345+
slice-ansi "^4.0.0"
9346+
string-width "^4.2.0"
93479347

93489348
tapable@^1.0.0, tapable@^1.1.3:
93499349
version "1.1.3"

0 commit comments

Comments
 (0)