Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions npm-shrinkwrap.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
]
},
"dependencies": {
"@electric-sql/pglite": "^0.3.3",
"@electric-sql/pglite-tools": "^0.2.8",
"@electric-sql/pglite": "0.3.16",
"@electric-sql/pglite-tools": "0.2.4",
"@google-cloud/cloud-sql-connector": "^1.3.3",
"@google-cloud/pubsub": "^5.2.0",
"@inquirer/prompts": "^7.10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/emulator/dataconnect/pgliteServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// They are only available as ESM, and if we import them normally,
// our tsconfig will convert them to requires, which will cause errors
// during module resolution.
const { dynamicImport } = require(true && "../../dynamicImport");

Check warning on line 8 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Require statement not part of import statement

Check warning on line 8 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe assignment of an `any` value
import * as net from "node:net";
import { Readable, Writable } from "node:stream";
import * as fs from "fs";
Expand Down Expand Up @@ -52,7 +52,7 @@
const server = net.createServer((socket) => {
const handleConnection = async (): Promise<void> => {
const connection = await fromNodeSocket(socket, {
serverVersion: "17.4 (PGlite 0.3.3)",
serverVersion: "17.5 (PGlite 0.3.16)",
auth: { method: "trust" },

async *onMessage(data: Uint8Array, { isAuthenticated }: { isAuthenticated: boolean }) {
Expand Down Expand Up @@ -113,10 +113,10 @@
return this.db;
}

private async getExtensions() {

Check warning on line 116 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Missing return type on function
const vector = (await dynamicImport("@electric-sql/pglite/vector")).vector;

Check warning on line 117 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe call of an `any` typed value

Check warning on line 117 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe member access .vector on an `any` value

Check warning on line 117 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe assignment of an `any` value
const uuidOssp = (await dynamicImport("@electric-sql/pglite/contrib/uuid_ossp")).uuid_ossp;

Check warning on line 118 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe call of an `any` typed value

Check warning on line 118 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe member access .uuid_ossp on an `any` value

Check warning on line 118 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe assignment of an `any` value
return { vector, uuidOssp };

Check warning on line 119 in src/emulator/dataconnect/pgliteServer.ts

View workflow job for this annotation

GitHub Actions / lint (24)

Unsafe assignment of an `any` value
}

public async clearDb(): Promise<void> {
Expand Down
Loading