@tidbcloud/serverless
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -35,6 +35,6 @@ import { format } from './format.js'; | ||
if (!this.config.username) { | ||
this.config.username = url.username; | ||
this.config.username = decodeURIComponent(url.username); | ||
} | ||
if (!this.config.password) { | ||
this.config.password = url.password; | ||
this.config.password = decodeURIComponent(url.password); | ||
} | ||
@@ -45,14 +45,5 @@ if (!this.config.host) { | ||
if (!this.config.database) { | ||
this.config.database = url.pathname.slice(1); | ||
this.config.database = decodeURIComponent(url.pathname.slice(1)); | ||
} | ||
} | ||
if (this.config.password) { | ||
this.config.password = decodeURIComponent(this.config.password); | ||
} | ||
if (this.config.database) { | ||
this.config.database = decodeURIComponent(this.config.database); | ||
} | ||
if (this.config.username) { | ||
this.config.username = decodeURIComponent(this.config.username); | ||
} | ||
} | ||
@@ -59,0 +50,0 @@ async begin() { |
@@ -1,1 +0,1 @@ | ||
export declare const Version = "0.0.4"; | ||
export declare const Version = "0.0.5"; |
@@ -1,1 +0,1 @@ | ||
export const Version = '0.0.4'; | ||
export const Version = '0.0.5'; |
{ | ||
"name": "@tidbcloud/serverless", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "TiDB Serverless driver", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
26113
356