Skip to content

Commit c760ea6

Browse files
committed
devtools
1 parent 3760ea8 commit c760ea6

File tree

28 files changed

+544
-157948
lines changed

28 files changed

+544
-157948
lines changed

.yarn/install-state.gz

-3.54 MB
Binary file not shown.

.yarn/releases/yarn-1.22.18.cjs

Lines changed: 0 additions & 147520 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
nodeLinker: node-modules
1+
supportedArchitectures:
2+
os:
3+
- "current"
4+
- "darwin"
5+
- "linux"
6+
- "win32"
27

3-
yarnPath: .yarn/releases/yarn-1.22.18.cjs
8+
cpu:
9+
- "current"
10+
- "x86"
11+
- "x64"
12+
- "arm64"
13+
- "ia32"

examples/adjusted-react-app/src/api/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { devtoolsPlugin } from "@hyper-fetch/devtools-plugin";
44

55
export const client = new Client({ url: "http://localhost:5000" }).setDebug(true).addPlugin(
66
devtoolsPlugin({
7-
appName: "ADJUSTED_REACT_APP",
7+
appName: "Adjusted app",
88
socketPort: 1234,
99
}),
1010
);

examples/react-app/src/api/client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { Client } from "@hyper-fetch/core";
22
import { Socket } from "@hyper-fetch/sockets";
3+
import { devtoolsPlugin } from "@hyper-fetch/devtools-plugin";
34

4-
export const client = new Client({ url: "http://localhost:5000" }).setDebug(true).setLogLevel("debug");
5+
export const client = new Client({ url: "http://localhost:5000" })
6+
.addPlugin(devtoolsPlugin({ appName: "react-app" }))
7+
.setDebug(true)
8+
.setLogLevel("debug");
59

6-
export const socket = new Socket({ url: "ws://localhost:5050", autoConnect: false }).setDebug(true);
10+
export const socket = new Socket({ url: "ws://localhost:5050", adapterOptions: { autoConnect: false } }).setDebug(true);

examples/react-app/src/pages/list/list.page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { Viewer } from "../../components/viewer";
1111

1212
const initialDate = +new Date();
1313

14-
// getUsers.send();
15-
1614
export const ListPage: React.FC = () => {
1715
const [page, setPage] = useState(1);
1816
const [search, setSearch] = useState("");

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,5 @@
180180
"graphql-tag": "^2.12.6",
181181
"http": "*",
182182
"stream": "*"
183-
},
184-
"packageManager": "[email protected]"
183+
}
185184
}

packages/adapter-graphql/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
"url": "https://github.com/BetterTyped/hyper-fetch/issues"
5656
},
5757
"peerDependencies": {
58-
"@hyper-fetch/core": "*",
59-
"graphql": "*"
58+
"@hyper-fetch/core": "*"
6059
},
6160
"dependencies": {
62-
"events": "^3.3.0"
61+
"events": "^3.3.0",
62+
"graphql": "*"
6363
},
6464
"devDependencies": {
6565
"abortcontroller-polyfill": "^1.7.5",

packages/adapter-graphql/src/adapter/http-adapter.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Adapter, getErrorMessage, parseErrorResponse, parseResponse, QueryParamsType } from "@hyper-fetch/core";
2-
import http, { OutgoingHttpHeaders } from "http";
3-
import https from "https";
2+
import http, { OutgoingHttpHeaders } from "node:http";
3+
import https from "node:https";
44

55
import {
66
gqlExtra,

packages/adapter-graphql/yarn.lock

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)