From a6e0e4dafea199c467d1cc9493aee8163f7e48da Mon Sep 17 00:00:00 2001 From: tate Date: Mon, 25 Sep 2023 10:00:33 +1000 Subject: [PATCH] bump deps --- packages/ensjs/package.json | 6 +- .../ensjs/src/functions/subgraph/client.ts | 4 +- pnpm-lock.yaml | 168 ++++++++++-------- 3 files changed, 103 insertions(+), 75 deletions(-) diff --git a/packages/ensjs/package.json b/packages/ensjs/package.json index 4fc8fec9..6d58ce6b 100644 --- a/packages/ensjs/package.json +++ b/packages/ensjs/package.json @@ -105,7 +105,7 @@ "cbor": "^8.1.0", "dns-packet": "^5.3.1", "graphql": "^16.3.0", - "graphql-request": "5.1.0", + "graphql-request": "6.1.0", "pako": "^2.1.0", "traverse": "^0.6.6" }, @@ -143,10 +143,10 @@ "typedoc": "^0.24.8", "typedoc-plugin-markdown": "^4.0.0-next.16", "typescript": "^5.1.6", - "viem": "^1.6.0", + "viem": "^1.12.2", "wait-on": "^6.0.1" }, "peerDependencies": { - "viem": "^1.6.0" + "viem": "^1.12.2" } } diff --git a/packages/ensjs/src/functions/subgraph/client.ts b/packages/ensjs/src/functions/subgraph/client.ts index c80e3b6c..22ab1ff9 100644 --- a/packages/ensjs/src/functions/subgraph/client.ts +++ b/packages/ensjs/src/functions/subgraph/client.ts @@ -1,6 +1,6 @@ import type { Kind, SelectionNode, SelectionSetNode } from 'graphql' +import type { RequestMiddleware, ResponseMiddleware } from 'graphql-request' import { GraphQLClient } from 'graphql-request' -import type { RequestMiddleware, Response } from 'graphql-request/dist/types.js' import { parse, print, visit } from 'graphql/language/index.js' import traverse from 'traverse' import type { ClientWithEns } from '../../contracts/consts.js' @@ -56,7 +56,7 @@ export const requestMiddleware: RequestMiddleware = (request) => { } } -export const responseMiddleware = (response: Response | Error) => { +export const responseMiddleware: ResponseMiddleware = (response) => { traverse(response).forEach(function (responseItem: unknown) { if ( responseItem instanceof Object && diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a41b0ed8..1aa7f160 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -125,7 +125,7 @@ importers: fs-extra: ^10.0.1 glob: ^8.0.3 graphql: ^16.3.0 - graphql-request: 5.1.0 + graphql-request: 6.1.0 hardhat: 2.16.1 hardhat-abi-exporter: ^2.8.0 hardhat-deploy: ^0.11.12 @@ -141,7 +141,7 @@ importers: typedoc: ^0.24.8 typedoc-plugin-markdown: ^4.0.0-next.16 typescript: ^5.1.6 - viem: ^1.6.0 + viem: ^1.12.2 wait-on: ^6.0.1 dependencies: '@adraffy/ens-normalize': 1.9.0 @@ -152,7 +152,7 @@ importers: cbor: 8.1.0 dns-packet: 5.4.0 graphql: 16.6.0 - graphql-request: 5.1.0_graphql@16.6.0 + graphql-request: 6.1.0_graphql@16.6.0 pako: 2.1.0 traverse: 0.6.6 devDependencies: @@ -189,13 +189,18 @@ importers: typedoc: 0.24.8_typescript@5.1.6 typedoc-plugin-markdown: 4.0.0-next.16_typedoc@0.24.8 typescript: 5.1.6 - viem: 1.6.0_typescript@5.1.6 + viem: 1.12.2_typescript@5.1.6 wait-on: 6.0.1 packages: /@adraffy/ens-normalize/1.9.0: resolution: {integrity: sha512-iowxq3U30sghZotgl4s/oJRci6WPBfNO5YYgk2cIOMCHr3LeGPcsZjCEr+33Q4N+oV3OABDAtA+pyvWjbvBifQ==} + dev: false + + /@adraffy/ens-normalize/1.9.4: + resolution: {integrity: sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==} + dev: true /@ampproject/remapping/2.2.0: resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==} @@ -1153,10 +1158,10 @@ packages: '@ethersproject/properties': 5.7.0 '@ethersproject/strings': 5.7.0 - /@graphql-typed-document-node/core/3.1.1_graphql@16.6.0: - resolution: {integrity: sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==} + /@graphql-typed-document-node/core/3.2.0_graphql@16.6.0: + resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} peerDependencies: - graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.6.0 dev: false @@ -1502,11 +1507,12 @@ packages: resolution: {integrity: sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==} dependencies: '@noble/hashes': 1.3.0 + dev: false - /@noble/curves/1.1.0: - resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==} + /@noble/curves/1.2.0: + resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} dependencies: - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 dev: true /@noble/hashes/1.1.2: @@ -1515,9 +1521,10 @@ packages: /@noble/hashes/1.3.0: resolution: {integrity: sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==} + dev: false - /@noble/hashes/1.3.1: - resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} + /@noble/hashes/1.3.2: + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} engines: {node: '>= 16'} /@noble/secp256k1/1.6.3: @@ -1894,6 +1901,10 @@ packages: /@scure/base/1.1.1: resolution: {integrity: sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==} + /@scure/base/1.1.3: + resolution: {integrity: sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==} + dev: true + /@scure/bip32/1.1.0: resolution: {integrity: sha512-ftTW3kKX54YXLCxH6BB7oEEoJfoE2pIgw7MINKAs5PsS6nqKPuKk1haTF/EuHmYqG330t5GSrdmtRuHaY1a62Q==} dependencies: @@ -1906,8 +1917,17 @@ packages: resolution: {integrity: sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==} dependencies: '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 '@scure/base': 1.1.1 + dev: false + + /@scure/bip32/1.3.2: + resolution: {integrity: sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==} + dependencies: + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.3 + dev: true /@scure/bip39/1.1.0: resolution: {integrity: sha512-pwrPOS16VeTKg98dYXQyIjJEcWfz7/1YJIwxUEPFfQPtc86Ym/1sVgQ2RLoD43AazMk2l/unK4ITySSpW2+82w==} @@ -1919,8 +1939,16 @@ packages: /@scure/bip39/1.2.0: resolution: {integrity: sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==} dependencies: - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 '@scure/base': 1.1.1 + dev: false + + /@scure/bip39/1.2.1: + resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} + dependencies: + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.1 + dev: true /@sentry/core/5.30.0: resolution: {integrity: sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg==} @@ -2658,17 +2686,6 @@ packages: typescript: 5.0.4 dev: false - /@wagmi/chains/1.6.0_typescript@5.1.6: - resolution: {integrity: sha512-5FRlVxse5P4ZaHG3GTvxwVANSmYJas1eQrTBHhjxVtqXoorm0aLmCHbhmN8Xo1yu09PaWKlleEvfE98yH4AgIw==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - typescript: 5.1.6 - dev: true - /abitype/0.8.0_typescript@5.1.6: resolution: {integrity: sha512-QqBuwc2trtaNd/kp4k0dSjVu3OQIYRAB4ww4LCPwfSECXcCGTD3imYovNYNjx0SyN3OHV0XUOzUVwnXP1kLsVQ==} peerDependencies: @@ -2703,8 +2720,8 @@ packages: typescript: 5.0.4 dev: false - /abitype/0.9.3_typescript@5.1.6: - resolution: {integrity: sha512-dz4qCQLurx97FQhnb/EIYTk/ldQ+oafEDUqC0VVIeQS1Q48/YWt/9YNfMmp9SLFqN41ktxny3c8aYxHjmFIB/w==} + /abitype/0.9.8_typescript@5.1.6: + resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.19.1 @@ -2949,6 +2966,7 @@ packages: /asynckit/0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + dev: true /available-typed-arrays/1.0.5: resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} @@ -3656,6 +3674,7 @@ packages: engines: {node: '>= 0.8'} dependencies: delayed-stream: 1.0.0 + dev: true /command-exists/1.2.9: resolution: {integrity: sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==} @@ -4012,6 +4031,7 @@ packages: /delayed-stream/1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} + dev: true /delete-empty/3.0.0: resolution: {integrity: sha512-ZUyiwo76W+DYnKsL3Kim6M/UOavPdBJgDYWOmuQhYaZvJH0AXAHbUNyEDtRbBra8wqqr686+63/0azfEk1ebUQ==} @@ -5129,11 +5149,6 @@ packages: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} dev: true - /extract-files/9.0.0: - resolution: {integrity: sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==} - engines: {node: ^10.17.0 || ^12.0.0 || >= 13.7.0} - dev: false - /extsprintf/1.3.0: resolution: {integrity: sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==} engines: {'0': node >=0.6.0} @@ -5313,15 +5328,6 @@ packages: mime-types: 2.1.35 dev: true - /form-data/3.0.1: - resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: false - /form-data/4.0.0: resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} engines: {node: '>= 6'} @@ -5696,15 +5702,13 @@ packages: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} dev: true - /graphql-request/5.1.0_graphql@16.6.0: - resolution: {integrity: sha512-0OeRVYigVwIiXhNmqnPDt+JhMzsjinxHE7TVy3Lm6jUzav0guVcL0lfSbi6jVTRAxcbwgyr6yrZioSHxf9gHzw==} + /graphql-request/6.1.0_graphql@16.6.0: + resolution: {integrity: sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==} peerDependencies: graphql: 14 - 16 dependencies: - '@graphql-typed-document-node/core': 3.1.1_graphql@16.6.0 + '@graphql-typed-document-node/core': 3.2.0_graphql@16.6.0 cross-fetch: 3.1.5 - extract-files: 9.0.0 - form-data: 3.0.1 graphql: 16.6.0 transitivePeerDependencies: - encoding @@ -6335,6 +6339,15 @@ packages: ws: '*' dependencies: ws: 8.12.0 + dev: false + + /isomorphic-ws/5.0.0_ws@8.13.0: + resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} + peerDependencies: + ws: '*' + dependencies: + ws: 8.13.0 + dev: true /isstream/0.1.2: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} @@ -7294,12 +7307,14 @@ packages: /mime-db/1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} + dev: true /mime-types/2.1.35: resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} engines: {node: '>= 0.6'} dependencies: mime-db: 1.52.0 + dev: true /mime/1.6.0: resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} @@ -9558,30 +9573,31 @@ packages: extsprintf: 1.3.0 dev: true - /viem/1.2.9: - resolution: {integrity: sha512-EnEbTuAAHv43unUgMISdQXbD9mrhZLvOdmf6eRGbDFl+XwP/PEzZAT79RaWAuDPnLXGMP1gBCJF++NFjSMukUw==} + /viem/1.12.2_typescript@5.1.6: + resolution: {integrity: sha512-aCaUCyg72ES+jK4s6tVYOMnOt4if71RwzgiUAUpAuaCgvHFfh9DCnwuEfwkxEZLE2vafOsirgJ3fcn7nsDVQoQ==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: typescript: optional: true dependencies: - '@adraffy/ens-normalize': 1.9.0 - '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.0 - '@scure/bip32': 1.3.0 - '@scure/bip39': 1.2.0 - '@wagmi/chains': 1.2.0 - abitype: 0.8.11 - isomorphic-ws: 5.0.0_ws@8.12.0 - ws: 8.12.0 + '@adraffy/ens-normalize': 1.9.4 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/bip32': 1.3.2 + '@scure/bip39': 1.2.1 + '@types/ws': 8.5.5 + abitype: 0.9.8_typescript@5.1.6 + isomorphic-ws: 5.0.0_ws@8.13.0 + typescript: 5.1.6 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate - zod - dev: false + dev: true - /viem/1.2.9_typescript@5.0.4: + /viem/1.2.9: resolution: {integrity: sha512-EnEbTuAAHv43unUgMISdQXbD9mrhZLvOdmf6eRGbDFl+XwP/PEzZAT79RaWAuDPnLXGMP1gBCJF++NFjSMukUw==} peerDependencies: typescript: '>=5.0.4' @@ -9594,10 +9610,9 @@ packages: '@noble/hashes': 1.3.0 '@scure/bip32': 1.3.0 '@scure/bip39': 1.2.0 - '@wagmi/chains': 1.2.0_typescript@5.0.4 - abitype: 0.8.11_typescript@5.0.4 + '@wagmi/chains': 1.2.0 + abitype: 0.8.11 isomorphic-ws: 5.0.0_ws@8.12.0 - typescript: 5.0.4 ws: 8.12.0 transitivePeerDependencies: - bufferutil @@ -9605,8 +9620,8 @@ packages: - zod dev: false - /viem/1.6.0_typescript@5.1.6: - resolution: {integrity: sha512-ae9Twkd0q2Qlj4yYpWjb4DzYAhKY0ibEpRH8FJaTywZXNpTjFidSdBaT0CVn1BaH7O7cnX4/O47zvDUMGJD1AA==} + /viem/1.2.9_typescript@5.0.4: + resolution: {integrity: sha512-EnEbTuAAHv43unUgMISdQXbD9mrhZLvOdmf6eRGbDFl+XwP/PEzZAT79RaWAuDPnLXGMP1gBCJF++NFjSMukUw==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -9614,21 +9629,20 @@ packages: optional: true dependencies: '@adraffy/ens-normalize': 1.9.0 - '@noble/curves': 1.1.0 + '@noble/curves': 1.0.0 '@noble/hashes': 1.3.0 '@scure/bip32': 1.3.0 '@scure/bip39': 1.2.0 - '@types/ws': 8.5.5 - '@wagmi/chains': 1.6.0_typescript@5.1.6 - abitype: 0.9.3_typescript@5.1.6 + '@wagmi/chains': 1.2.0_typescript@5.0.4 + abitype: 0.8.11_typescript@5.0.4 isomorphic-ws: 5.0.0_ws@8.12.0 - typescript: 5.1.6 + typescript: 5.0.4 ws: 8.12.0 transitivePeerDependencies: - bufferutil - utf-8-validate - zod - dev: true + dev: false /vscode-oniguruma/1.7.0: resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} @@ -10333,6 +10347,20 @@ packages: optional: true utf-8-validate: optional: true + dev: false + + /ws/8.13.0: + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true /xhr-request-promise/0.1.3: resolution: {integrity: sha512-YUBytBsuwgitWtdRzXDDkWAXzhdGB8bYm0sSzMPZT7Z2MBjMSTHFsyCT1yCRATY+XC69DUrQraRAEgcoCRaIPg==}