@ponder/client 0.16.4 → 0.16.6

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.
Files changed (2) hide show
  1. package/package.json +5 -2
  2. package/tsconfig.json +39 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponder/client",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "description": "Client library for Ponder SQL over HTTP queries",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,7 +15,10 @@
15
15
  "src/**/*.ts",
16
16
  "!src/**/*.test.ts",
17
17
  "!src/**/*.test-d.ts",
18
- "!src/_test/**/*"
18
+ "!src/_test/**/*",
19
+ "README.md",
20
+ "tsconfig.json",
21
+ "LICENSE"
19
22
  ],
20
23
  "module": "./dist/index.js",
21
24
  "types": "./dist/index.d.ts",
package/tsconfig.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ // Adapted from viem (https://github.com/wagmi-dev/viem/blob/ed779e9d5667704fd7cfc5a2af032f7a2c3cae9e/tsconfig.base.json).
3
+ "include": ["src"],
4
+ "compilerOptions": {
5
+ // Type checking
6
+ "strict": true,
7
+ "useDefineForClassFields": true,
8
+ "noFallthroughCasesInSwitch": true,
9
+ "noImplicitReturns": true,
10
+ "useUnknownInCatchVariables": true,
11
+ "noImplicitOverride": true,
12
+ "noUnusedLocals": true,
13
+ "noUnusedParameters": true,
14
+ "noUncheckedIndexedAccess": true,
15
+
16
+ // JavaScript support
17
+ "allowJs": false,
18
+ "checkJs": false,
19
+ "jsx": "react",
20
+
21
+ // Interop constraints
22
+ "verbatimModuleSyntax": true,
23
+ "esModuleInterop": true,
24
+ "allowSyntheticDefaultImports": true,
25
+ "resolveJsonModule": true,
26
+
27
+ // Language and environment
28
+ "moduleResolution": "NodeNext",
29
+ "module": "NodeNext",
30
+ "target": "ESNext",
31
+ "lib": [
32
+ "ES2022", // By using ES2022 we get access to the `.cause` property on `Error` instances.
33
+ "DOM" // We are adding `DOM` here to get the `fetch`, etc. types. This should be removed once these types are available via DefinitelyTyped.
34
+ ],
35
+
36
+ // Skip type checking for node modules
37
+ "skipLibCheck": true
38
+ }
39
+ }