OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
new redis url parser
Carl-Gerhard Lindesvärd85e4922dc39a
diff --git a/packages/queue/src/connection.ts b/packages/queue/src/connection.tsindex 60a50b38a..d3d65c0d6 100644--- a/packages/queue/src/connection.ts+++ b/packages/queue/src/connection.ts@@ -1,9 +1,12 @@const parse = (connectionString: string) => {- const url = new URL(connectionString);+ const match = connectionString.match(/redis:\/\/(.+?):(.+?)@(.+?):(.+)/);+ if (!match) {+ throw new Error('Invalid connection string');+ }return {- host: url.hostname,- port: Number(url.port),- password: url.password,+ host: match[3]!,+ port: Number(match[4]),+ password: match[2]!,} as const;};