Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tidbcloud/serverless

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tidbcloud/serverless - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

1

dist/index.d.ts

@@ -70,2 +70,3 @@ interface ServerlessError {

constructor(config: Config);
getConfig(): Config;
begin(txOptions?: TxOptions): Promise<Tx>;

@@ -72,0 +73,0 @@ execute(query: string, args?: ExecuteArgs, options?: ExecuteOptions, txOptions?: TxOptions): Promise<FullResult | Row[]>;

21

dist/index.js

@@ -73,11 +73,4 @@ // src/format.ts

// src/decode.ts
var decoder = new TextDecoder("utf-8");
function decode(text) {
return text ? decoder.decode(Uint8Array.from(bytes(text))) : "";
}
function bytes(text) {
return text.split("").map((c) => c.charCodeAt(0));
}
function cast(field, value) {
if (isNull(value)) {
if (value === null) {
return null;

@@ -122,10 +115,5 @@ }

default:
return decode(value);
return value;
}
}
function isNull(value) {
if (value === null) {
return true;
}
}

@@ -142,3 +130,3 @@ // src/error.ts

// src/version.ts
var Version = "0.0.8";
var Version = "0.0.9";

@@ -233,2 +221,5 @@ // src/serverless.ts

}
getConfig() {
return this.config;
}
async begin(txOptions = {}) {

@@ -235,0 +226,0 @@ const conn = new _Connection(this.config);

{
"name": "@tidbcloud/serverless",
"version": "0.0.8",
"version": "0.0.9",
"description": "TiDB Cloud Serverless Driver",

@@ -61,3 +61,3 @@ "main": "./dist/index.cjs",

"typescript": "^4.9.5",
"undici": "^5.8.0",
"undici": "^5.26.2",
"tsup": "^7.1.0"

@@ -64,0 +64,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc