Skip to content

Commit aad230c

Browse files
committed
New package name for nhooyr.io/websocket
1 parent 5f1ed0e commit aad230c

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
extensions:
2+
- addsTo:
3+
pack: codeql/go-all
4+
extensible: packageGrouping
5+
data:
6+
- ["coder/websocket", "github.com/coder/websocket"]
7+
- ["coder/websocket", "nhooyr.io/websocket"]
8+
- addsTo:
9+
pack: codeql/go-all
10+
extensible: sourceModel
11+
data:
12+
- ["coder/websocket", "Conn", True, "Read", "", "", "ReturnValue[1]", "remote", "manual"]
13+
- ["coder/websocket", "Conn", True, "Reader", "", "", "ReturnValue[1]", "remote", "manual"]

‎go/ql/lib/ext/nhooyr.io.websocket.model.yml‎

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

‎go/ql/lib/semmle/go/frameworks/WebSocket.qll‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,14 @@ module GolangOrgXNetWebsocket {
313313
}
314314

315315
/**
316-
* Provides classes for working with the [nhooyr.io/websocket](http://nhooyr.io/websocket)
316+
* Provides classes for working with the [coder/websocket](http://github.com/coder/websocket)
317317
* package.
318318
*/
319319
module NhooyrWebSocket {
320-
/** Gets the package name `nhooyr.io/websocket/`. */
321-
string packagePath() { result = package("nhooyr.io/websocket", "") }
320+
/** Gets the package name `github.com/coder/websocket` or `nhooyr.io/websocket`. */
321+
string packagePath() {
322+
result = package(["github.com/coder/websocket", "nhooyr.io/websocket"], "")
323+
}
322324
}
323325

324326
/**

0 commit comments

Comments
 (0)