diff --git a/packages/wallet/backend/package.json b/packages/wallet/backend/package.json index 8315848e5..2cf5b350d 100644 --- a/packages/wallet/backend/package.json +++ b/packages/wallet/backend/package.json @@ -22,7 +22,7 @@ "express": "^4.21.0", "express-rate-limit": "^7.4.1", "graphql": "^16.9.0", - "graphql-request": "^6.1.0", + "graphql-request": "^7.1.2", "hash-wasm": "^4.11.0", "helmet": "^7.2.0", "ioredis": "^5.4.1", diff --git a/packages/wallet/backend/src/gatehub/client.ts b/packages/wallet/backend/src/gatehub/client.ts index 1383f5108..f2a3c3a25 100644 --- a/packages/wallet/backend/src/gatehub/client.ts +++ b/packages/wallet/backend/src/gatehub/client.ts @@ -587,7 +587,7 @@ export class GateHubClient { const res = await resp.json() - return res + return res as ICardDetailsResponse // const cardPinUrl = `${this.apiUrl}/v1/proxy/clientDevice/pin` // const cardPinResponse = await this.request( // 'GET', @@ -636,7 +636,7 @@ export class GateHubClient { }) if (!response.ok) { - let info = '' + let info if (response.headers.get('content-type') === 'application/json') { info = await response.json() } else { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9748836da..1d006dec2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -316,8 +316,8 @@ importers: specifier: ^16.9.0 version: 16.9.0 graphql-request: - specifier: ^6.1.0 - version: 6.1.0(graphql@16.9.0) + specifier: ^7.1.2 + version: 7.1.2(graphql@16.9.0) hash-wasm: specifier: ^4.11.0 version: 4.11.0 @@ -3918,6 +3918,11 @@ packages: peerDependencies: graphql: 14 - 16 + graphql-request@7.1.2: + resolution: {integrity: sha512-+XE3iuC55C2di5ZUrB4pjgwe+nIQBuXVIK9J98wrVwojzDW3GMdSBZfxUk8l4j9TieIpjpggclxhNEU9ebGF8w==} + peerDependencies: + graphql: 14 - 16 + graphql-tag@2.12.6: resolution: {integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==} engines: {node: '>=10'} @@ -10527,6 +10532,11 @@ snapshots: transitivePeerDependencies: - encoding + graphql-request@7.1.2(graphql@16.9.0): + dependencies: + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) + graphql: 16.9.0 + graphql-tag@2.12.6(graphql@16.9.0): dependencies: graphql: 16.9.0