@quicknode/sdk 0.5.1 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,24 +3,44 @@
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "https://github.com/quiknode-labs/qn-oss.git",
6
- "directory": "packages/libs/api/sdk"
6
+ "directory": "packages/libs/sdk"
7
7
  },
8
8
  "license": "MIT",
9
- "version": "0.5.1",
10
- "main": "./src/index.js",
11
- "module": "./src/index.esm.js",
12
- "types": "./src/index.d.ts",
9
+ "version": "1.0.0-beta.0",
10
+ "main": "./cjs/index.js",
11
+ "module": "./esm/index.js",
12
+ "types": "./index.d.ts",
13
13
  "dependencies": {
14
- "@apollo/client": "^3.6.9",
15
- "graphql": "^16.5.0",
16
- "cross-fetch": "^3.1.5"
14
+ "@urql/core": "^4.0.7",
15
+ "@urql/exchange-graphcache": "^6.0.4",
16
+ "cross-fetch": "^3.1.6"
17
17
  },
18
18
  "devDependencies": {
19
+ "@graphql-codegen/cli": "4.0.1",
20
+ "@graphql-codegen/fragment-matcher": "^3.3.1",
21
+ "@graphql-codegen/introspection": "^3.0.1",
22
+ "@graphql-codegen/typed-document-node": "^4.0.1",
23
+ "@graphql-codegen/typescript": "2.8.0",
24
+ "@graphql-codegen/typescript-operations": "^2.5.5",
19
25
  "@pollyjs/adapter-node-http": "^6.0.5",
20
26
  "@pollyjs/core": "^6.0.5",
21
27
  "@pollyjs/persister-fs": "^6.0.5",
28
+ "@types/jest": "^29.5.1",
29
+ "@types/mocha": "^10.0.1",
30
+ "@types/node": "^18.13.0",
22
31
  "@types/supertest": "^2.0.12",
23
- "@types/node": "16.11.7",
24
- "supertest": "^6.2.4"
32
+ "dotenv": "^16.0.3",
33
+ "eslint-plugin-no-only-tests": "^3.1.0",
34
+ "graphql": "^16.6.0",
35
+ "supertest": "^6.3.3"
36
+ },
37
+ "scripts": {
38
+ "codegen": "npx graphql-codegen --require dotenv/config"
39
+ },
40
+ "exports": {
41
+ ".": {
42
+ "import": "./esm/index.js",
43
+ "require": "./cjs/index.js"
44
+ }
25
45
  }
26
46
  }
@@ -1,13 +0,0 @@
1
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { NFTQueries } from '../queries/nft/nftQueries';
3
- export interface QuickNodeSDKArguments {
4
- icyApiKey?: string;
5
- }
6
- export declare class QuickNodeSDK {
7
- readonly apolloClient: ApolloClient<NormalizedCacheObject>;
8
- private customApolloClient;
9
- readonly icyApiKey?: string;
10
- readonly nft: NFTQueries;
11
- constructor({ icyApiKey }?: QuickNodeSDKArguments);
12
- private createApolloClient;
13
- }
@@ -1,9 +0,0 @@
1
- import { ApolloClient, NormalizedCacheObject, QueryOptions } from '@apollo/client';
2
- export declare class CustomApolloClient {
3
- apolloClient: ApolloClient<NormalizedCacheObject>;
4
- constructor(apolloClient: ApolloClient<NormalizedCacheObject>);
5
- /**
6
- * @todo improve typing here
7
- */
8
- query(options: QueryOptions<any, any>): Promise<any>;
9
- }
@@ -1 +0,0 @@
1
- export * from './client';
package/src/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export { QuickNodeSDK as default } from './client';
3
- export * from './queries';