@tidbcloud/serverless
Advanced tools
Comparing version 0.0.11-beta1 to 0.0.11-beta2
@@ -36,3 +36,2 @@ interface ServerlessError { | ||
debug?: boolean; | ||
disableCompression?: boolean; | ||
} | ||
@@ -39,0 +38,0 @@ interface ExecuteOptions { |
@@ -132,3 +132,3 @@ // src/format.ts | ||
// src/version.ts | ||
var Version = "0.0.11-beta1"; | ||
var Version = "0.0.11-beta2"; | ||
@@ -157,3 +157,4 @@ // src/serverless.ts | ||
"TiDB-Session": session, | ||
"X-Debug-Trace-Id": requestId | ||
"X-Debug-Trace-Id": requestId, | ||
"Accept-Encoding": "gzip" | ||
}; | ||
@@ -163,5 +164,2 @@ if (isolationLevel) { | ||
} | ||
if (!config.disableCompression) { | ||
headers["Accept-Encoding"] = "gzip"; | ||
} | ||
const response = await fetch2(url.toString(), { | ||
@@ -176,2 +174,4 @@ method: "POST", | ||
console.log(`[serverless-js debug] response id: ${traceId}`); | ||
const contentEncoding = response?.headers?.get("Content-Encoding"); | ||
console.log(`[serverless-js debug] Content-Encoding: ${contentEncoding}`); | ||
} | ||
@@ -178,0 +178,0 @@ if (response.ok) { |
{ | ||
"name": "@tidbcloud/serverless", | ||
"version": "0.0.11-beta1", | ||
"version": "0.0.11-beta2", | ||
"description": "TiDB Cloud Serverless Driver", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40287
761