@quicknode/sdk
Advanced tools
Comparing version 1.1.5 to 2.0.0
@@ -9,23 +9,14 @@ { | ||
"license": "MIT", | ||
"version": "1.1.5", | ||
"version": "2.0.0", | ||
"main": "./cjs/index.js", | ||
"module": "./esm/src/index.js", | ||
"module": "./esm/index.js", | ||
"types": "./index.d.ts", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@urql/core": "^4.2.0", | ||
"@urql/exchange-graphcache": "^6.4.0", | ||
"cross-fetch": "^3.1.6", | ||
"graphql": "^16.6.0", | ||
"klona": "^2.0.6", | ||
"tslib": "^2.5.3", | ||
"viem": "^1.2.0", | ||
"viem": "^1.20.0", | ||
"zod": "^3.21.4" | ||
}, | ||
"devDependencies": { | ||
"@graphql-codegen/cli": "4.0.1", | ||
"@graphql-codegen/fragment-matcher": "^3.3.1", | ||
"@graphql-codegen/typed-document-node": "^4.0.1", | ||
"@graphql-codegen/typescript": "2.8.0", | ||
"@graphql-codegen/typescript-operations": "^2.5.5", | ||
"@pollyjs/adapter-node-http": "^6.0.5", | ||
@@ -42,19 +33,12 @@ "@pollyjs/core": "^6.0.5", | ||
}, | ||
"scripts": { | ||
"codegen": "npx graphql-codegen --require dotenv/config" | ||
}, | ||
"scripts": {}, | ||
"exports": { | ||
".": { | ||
"import": "./esm/src/index.js", | ||
"import": "./esm/index.js", | ||
"require": "./cjs/index.js" | ||
}, | ||
"./api": { | ||
"import": "./esm/src/api/index.js", | ||
"default": "./cjs/src/api/index.js", | ||
"types": "./esm/src/api/index.d.ts" | ||
}, | ||
"./core": { | ||
"import": "./esm/src/core/index.js", | ||
"default": "./cjs/src/core/index.js", | ||
"types": "./esm/src/core/index.d.ts" | ||
"import": "./esm/core/index.js", | ||
"default": "./cjs/core/index.js", | ||
"types": "./esm/core/index.d.ts" | ||
} | ||
@@ -64,7 +48,4 @@ }, | ||
"*": { | ||
"api": [ | ||
"./esm/src/api/index.d.ts" | ||
], | ||
"core": [ | ||
"./esm/src/core/index.d.ts" | ||
"./esm/core/index.d.ts" | ||
] | ||
@@ -71,0 +52,0 @@ } |
@@ -33,12 +33,7 @@ # QuickNode SDK | ||
```ts | ||
import QuickNode from '@quicknode/sdk'; | ||
import Core from '@quicknode/sdk/core'; | ||
const qn = new QuickNode.API({ graphApiKey: 'my-api-key' }); | ||
const core = new Core({ endpointUrl: 'replaceme' }); | ||
qn.nfts | ||
.getByWallet({ | ||
address: 'quicknode.eth', | ||
first: 5, | ||
}) | ||
.then((response) => console.log(response)); | ||
const blockNumber = core.client.getBlockNumber().then((response) => console.log(response)); | ||
``` | ||
@@ -45,0 +40,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
4
10
0
69000
31
1810
91
- Removed@urql/core@^4.2.0
- Removed@urql/exchange-graphcache@^6.4.0
- Removedgraphql@^16.6.0
- Removedklona@^2.0.6
- Removed@0no-co/graphql.web@1.0.11(transitive)
- Removed@urql/core@4.3.0(transitive)
- Removed@urql/exchange-graphcache@6.5.1(transitive)
- Removedgraphql@16.9.0(transitive)
- Removedklona@2.0.6(transitive)
- Removedwonka@6.3.4(transitive)
Updatedviem@^1.20.0