Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thoov/mock-socket
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: latticexyz/mock-socket
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 10 files changed
  • 1 contributor

Commits on Oct 10, 2024

  1. Copy the full SHA
    64ad5b2 View commit details
  2. main -> intercept

    alvrs committed Oct 10, 2024
    Copy the full SHA
    197e277 View commit details
Showing with 2,405 additions and 16 deletions.
  1. +0 −1 .gitignore
  2. +8 −0 dist/intercept.d.ts
  3. +1,157 −0 dist/intercept.js
  4. +1 −0 dist/intercept.js.map
  5. +9 −7 package.json
  6. +78 −0 src/intercept.ts
  7. +3 −5 src/websocket.js
  8. +6 −0 tsconfig.json
  9. +10 −0 tsup.config.ts
  10. +1,133 −3 yarn.lock
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Folders to exclude
dist
node_modules

# Individual files to exclude
8 changes: 8 additions & 0 deletions dist/intercept.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type Message = Uint8Array;
type LocalWebsocketServer = {
on: (messageType: "message", handler: (message: Message) => void) => void;
send: (message: Message) => void;
};
declare function intercept(host: string): LocalWebsocketServer;

export { intercept };
Loading