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

@minatojs/driver-sqlite

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minatojs/driver-sqlite - npm Package Compare versions

Comparing version 3.3.8 to 3.3.9

2

lib/index.d.ts
/// <reference types="node" />
/// <reference types="node" />
import { Database, Driver, Eval, Selection } from '@minatojs/core';

@@ -29,2 +30,3 @@ import { Builder } from '@minatojs/sql-utils';

init(buffer: ArrayLike<number> | null): void;
load(): Promise<Buffer | null>;
start(): Promise<void>;

@@ -31,0 +33,0 @@ stop(): Promise<void>;

@@ -213,8 +213,17 @@ "use strict";

}
async load() {
if (this.config.path === ":memory:")
return null;
try {
return Buffer.from(await import_fs.promises.readFile(this.config.path));
} catch {
return null;
}
}
async start() {
const [sqlite, buffer] = await Promise.all([
(0, import_sql.default)({
locateFile: (file) => process.env.KOISHI_BASE ? process.env.KOISHI_BASE + "/" + file : require.resolve("@minatojs/sql.js/dist/sql-wasm.wasm")
locateFile: (file) => process.env.KOISHI_BASE ? process.env.KOISHI_BASE + "/" + file : process.env.KOISHI_ENV === "browser" ? "/" + file : require.resolve("@minatojs/sql.js/dist/" + file)
}),
this.config.path === ":memory:" ? null : import_fs.promises.readFile(this.config.path).catch(() => null)
this.load()
]);

@@ -221,0 +230,0 @@ this.sqlite = sqlite;

2

package.json
{
"name": "@minatojs/driver-sqlite",
"version": "3.3.8",
"version": "3.3.9",
"description": "SQLite Driver for Minato",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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