Skip to content

Commit 2c8c41b

Browse files
Revert "Update tsconfig"
This reverts commit 93146a7.
1 parent bf42ab8 commit 2c8c41b

File tree

6 files changed

+50
-87
lines changed

6 files changed

+50
-87
lines changed

auth-webhook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Cors from 'cors';
2-
import { corsMiddleware } from './cors-middleware.js';
2+
import { corsMiddleware } from './cors-middleware';
33

44
export interface AuthWebhookOptions {
55
findUserByToken: (token: string) => Promise<{

client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { HttpLink, InMemoryCache, ApolloClient } from '@apollo/client';
2-
import { getMainDefinition } from '@apollo/client/utilities/index.js';
2+
import { getMainDefinition } from '@apollo/client/utilities';
33
import { ApolloLink, concat, split } from 'apollo-link';
44
import { WebSocketLink } from 'apollo-link-ws';
55
import fetch from 'node-fetch';
66
import path from 'path';
7-
import { debug } from './debug.js';
7+
import { debug } from './debug';
88

99
const moduleLog = debug.extend('client')
1010

package-lock.json

Lines changed: 22 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"name": "@deep-foundation/hasura",
3-
"version": "0.0.59",
3+
"version": "0.0.53",
44
"license": "Unlicense",
55
"author": "Ivan S Glazunov <ivansglazunov@gmail.com>",
66
"homepage": "https://github.com/deep-foundation/hasura",
77
"repository": {
88
"type": "git",
99
"url": "ssh://git@github.com/deep-foundation/hasura.git"
1010
},
11-
"type": "module",
1211
"description": "",
1312
"dependencies": {
1413
"@types/node": "^14.17.14",
1514
"@types/react": "^18.2.15",
16-
"axios": "^1.5.1",
15+
"axios": "^0.21.1",
1716
"babel-register": "^6.26.0",
1817
"cors": "^2.8.5",
1918
"debug": "^4.3.1",
@@ -40,7 +39,7 @@
4039
"typescript": "5.0.4"
4140
},
4241
"peerDependencies": {
43-
"@apollo/client": "^3.8.5",
42+
"@apollo/client": "^3.7.14",
4443
"@apollo/react-hooks": "^4.0.0",
4544
"apollo-boost": "^0.4.9",
4645
"apollo-link": "^1.2.14",

remote-schema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ApolloServer, Config } from 'apollo-server-micro';
22
import Cors from 'cors';
3-
import { corsMiddleware } from './cors-middleware.js';
3+
import { corsMiddleware } from './cors-middleware';
44

55
export interface RemoteSchemaOptions extends Config {
66
path: string;

tsconfig.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2022",
4-
"jsx": "react-jsx",
5-
"module": "Node16",
3+
"allowSyntheticDefaultImports": true,
4+
"experimentalDecorators": true,
5+
"sourceMap": true,
6+
"noImplicitAny": false,
7+
"removeComments": true,
8+
"jsx": "react",
9+
"module": "commonjs",
10+
"moduleResolution": "node",
11+
"target": "es2015",
12+
"skipLibCheck": true,
13+
"lib": [
14+
"dom",
15+
"es6",
16+
"es7"
17+
],
618
"resolveJsonModule": true,
7-
"declaration": true,
819
"esModuleInterop": true,
9-
"forceConsistentCasingInFileNames": true,
10-
"moduleResolution": "node16",
11-
"skipLibCheck": true,
12-
// Only for hasura, react-hasura, materialized-path, deeplinks because they are bad typed
13-
"strictNullChecks": false,
14-
"strict": false,
15-
16-
},
20+
"isolatedModules": true,
21+
"declaration": true,
22+
"typeRoots": [
23+
"./node_modules/@types"
24+
]
25+
}
1726
}

0 commit comments

Comments
 (0)