@libsql/core
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -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; |
@@ -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", |
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
43348
1067