@juit/pgproxy-client-whatwg 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface WHATWGOptions {
18
18
  }
19
19
  export declare class WHATWGProvider extends WebSocketProvider {
20
20
  constructor(url: URL, options?: WHATWGOptions);
21
- query: (query: string, params: (string | null)[]) => Promise<PGConnectionResult>;
21
+ query: (query: string, params?: (string | null)[]) => Promise<PGConnectionResult>;
22
22
  protected _getWebSocket: () => Promise<PGWebSocket>;
23
23
  protected _getUniqueRequestId: () => string;
24
24
  /** Constructor for {@link WebSocket} instances (default: `globalThis.WebSocket`) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juit/pgproxy-client-whatwg",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://github.com/juitnow/juit-pgproxy#readme",
37
37
  "dependencies": {
38
- "@juit/pgproxy-client": "1.0.1"
38
+ "@juit/pgproxy-client": "1.0.2"
39
39
  },
40
40
  "directories": {
41
41
  "test": "test"
package/src/index.ts CHANGED
@@ -112,7 +112,7 @@ export class WHATWGProvider extends WebSocketProvider {
112
112
 
113
113
  this.query = async (
114
114
  query: string,
115
- params: (string | null)[],
115
+ params?: (string | null)[],
116
116
  ): Promise<PGConnectionResult> => {
117
117
  const token = await createToken(secret, crypto)
118
118
  const httpUrl = new URL(baseHttpUrl)
@@ -154,7 +154,7 @@ export class WHATWGProvider extends WebSocketProvider {
154
154
  * METHODS FROM CONSTRUCTOR *
155
155
  * ======================================================================== */
156
156
 
157
- query: (query: string, params: (string | null)[]) => Promise<PGConnectionResult>
157
+ query: (query: string, params?: (string | null)[]) => Promise<PGConnectionResult>
158
158
  protected _getWebSocket: () => Promise<PGWebSocket>
159
159
  protected _getUniqueRequestId: () => string
160
160