@libsql/core
Advanced tools
Comparing version 0.8.0 to 0.8.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.expandConfig = void 0; | ||
exports.expandConfig = exports.isInMemoryConfig = void 0; | ||
const api_js_1 = require("./api.js"); | ||
@@ -8,2 +8,7 @@ const uri_js_1 = require("./uri.js"); | ||
const inMemoryMode = ":memory:"; | ||
function isInMemoryConfig(config) { | ||
return (config.scheme === "file" && | ||
(config.path === ":memory:" || config.path.startsWith(":memory:?"))); | ||
} | ||
exports.isInMemoryConfig = isInMemoryConfig; | ||
function expandConfig(config, preferHttp) { | ||
@@ -10,0 +15,0 @@ if (typeof config !== "object") { |
@@ -17,2 +17,3 @@ import type { Config, IntMode } from "./api.js"; | ||
export type ExpandedScheme = "wss" | "ws" | "https" | "http" | "file"; | ||
export declare function isInMemoryConfig(config: ExpandedConfig): boolean; | ||
export declare function expandConfig(config: Readonly<Config>, preferHttp: boolean): ExpandedConfig; |
@@ -5,2 +5,6 @@ import { LibsqlError } from "./api.js"; | ||
const inMemoryMode = ":memory:"; | ||
export function isInMemoryConfig(config) { | ||
return (config.scheme === "file" && | ||
(config.path === ":memory:" || config.path.startsWith(":memory:?"))); | ||
} | ||
export function expandConfig(config, preferHttp) { | ||
@@ -7,0 +11,0 @@ if (typeof config !== "object") { |
{ | ||
"name": "@libsql/core", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"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
46350
1132