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

@libsql/core

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/core - npm Package Compare versions

Comparing version 0.6.2 to 0.7.0

3

lib-cjs/config.js

@@ -13,2 +13,3 @@ "use strict";

}
const concurrency = Math.max(0, config.concurrency || 20);
let tls = config.tls;

@@ -36,2 +37,3 @@ let authToken = config.authToken;

authority: undefined,
concurrency,
};

@@ -101,4 +103,5 @@ }

fetch: config.fetch,
concurrency,
};
}
exports.expandConfig = expandConfig;

2

lib-cjs/uri.js

@@ -12,3 +12,3 @@ "use strict";

if (match === null) {
throw new api_js_1.LibsqlError("The URL is not in a valid format", "URL_INVALID");
throw new api_js_1.LibsqlError(`The URL '${text}' is not in a valid format`, "URL_INVALID");
}

@@ -15,0 +15,0 @@ const groups = match.groups;

@@ -42,2 +42,9 @@ /** Configuration object for {@link createClient}. */

fetch?: Function;
/** Concurrency limit.
*
* By default, the client performs up to 20 concurrent requests. You can set this option to a higher
* number to increase the concurrency limit. You can also set this option to `undefined` to disable concurrency
* completely.
*/
concurrency?: number | undefined;
}

@@ -44,0 +51,0 @@ /** Representation of integers from database as JavaScript values. See {@link Config.intMode}. */

@@ -14,4 +14,5 @@ import type { Config, IntMode } from "./api.js";

fetch: Function | undefined;
concurrency: number;
}
export type ExpandedScheme = "wss" | "ws" | "https" | "http" | "file";
export declare function expandConfig(config: Config, preferHttp: boolean): ExpandedConfig;

@@ -10,2 +10,3 @@ import { LibsqlError } from "./api.js";

}
const concurrency = Math.max(0, config.concurrency || 20);
let tls = config.tls;

@@ -33,2 +34,3 @@ let authToken = config.authToken;

authority: undefined,
concurrency,
};

@@ -98,3 +100,4 @@ }

fetch: config.fetch,
concurrency,
};
}

@@ -9,3 +9,3 @@ // URI parser based on RFC 3986

if (match === null) {
throw new LibsqlError("The URL is not in a valid format", "URL_INVALID");
throw new LibsqlError(`The URL '${text}' is not in a valid format`, "URL_INVALID");
}

@@ -12,0 +12,0 @@ const groups = match.groups;

{
"name": "@libsql/core",
"version": "0.6.2",
"version": "0.7.0",
"keywords": [

@@ -5,0 +5,0 @@ "libsql",

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