Skip to content

Commit

Permalink
Revert "Update tsconfig"
Browse files Browse the repository at this point in the history
This reverts commit 93146a7.
  • Loading branch information
FreePhoenix888 committed Oct 12, 2023
1 parent bf42ab8 commit 2c8c41b
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 87 deletions.
2 changes: 1 addition & 1 deletion auth-webhook.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Cors from 'cors';
import { corsMiddleware } from './cors-middleware.js';
import { corsMiddleware } from './cors-middleware';

export interface AuthWebhookOptions {
findUserByToken: (token: string) => Promise<{
Expand Down
4 changes: 2 additions & 2 deletions client.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { HttpLink, InMemoryCache, ApolloClient } from '@apollo/client';
import { getMainDefinition } from '@apollo/client/utilities/index.js';
import { getMainDefinition } from '@apollo/client/utilities';
import { ApolloLink, concat, split } from 'apollo-link';
import { WebSocketLink } from 'apollo-link-ws';
import fetch from 'node-fetch';
import path from 'path';
import { debug } from './debug.js';
import { debug } from './debug';

const moduleLog = debug.extend('client')

Expand Down
89 changes: 22 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{
"name": "@deep-foundation/hasura",
"version": "0.0.59",
"version": "0.0.53",
"license": "Unlicense",
"author": "Ivan S Glazunov <[email protected]>",
"homepage": "https://github.com/deep-foundation/hasura",
"repository": {
"type": "git",
"url": "ssh://[email protected]/deep-foundation/hasura.git"
},
"type": "module",
"description": "",
"dependencies": {
"@types/node": "^14.17.14",
"@types/react": "^18.2.15",
"axios": "^1.5.1",
"axios": "^0.21.1",
"babel-register": "^6.26.0",
"cors": "^2.8.5",
"debug": "^4.3.1",
Expand All @@ -40,7 +39,7 @@
"typescript": "5.0.4"
},
"peerDependencies": {
"@apollo/client": "^3.8.5",
"@apollo/client": "^3.7.14",
"@apollo/react-hooks": "^4.0.0",
"apollo-boost": "^0.4.9",
"apollo-link": "^1.2.14",
Expand Down
2 changes: 1 addition & 1 deletion remote-schema.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApolloServer, Config } from 'apollo-server-micro';
import Cors from 'cors';
import { corsMiddleware } from './cors-middleware.js';
import { corsMiddleware } from './cors-middleware';

export interface RemoteSchemaOptions extends Config {
path: string;
Expand Down
33 changes: 21 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"compilerOptions": {
"target": "ES2022",
"jsx": "react-jsx",
"module": "Node16",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"sourceMap": true,
"noImplicitAny": false,
"removeComments": true,
"jsx": "react",
"module": "commonjs",
"moduleResolution": "node",
"target": "es2015",
"skipLibCheck": true,
"lib": [
"dom",
"es6",
"es7"
],
"resolveJsonModule": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16",
"skipLibCheck": true,
// Only for hasura, react-hasura, materialized-path, deeplinks because they are bad typed
"strictNullChecks": false,
"strict": false,

},
"isolatedModules": true,
"declaration": true,
"typeRoots": [
"./node_modules/@types"
]
}
}

0 comments on commit 2c8c41b

Please sign in to comment.