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

@libsql/core

Package Overview
Dependencies
Maintainers
3
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.8.0 to 0.8.1

7

lib-cjs/config.js
"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") {

2

package.json
{
"name": "@libsql/core",
"version": "0.8.0",
"version": "0.8.1",
"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