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

@electric-sql/pglite

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electric-sql/pglite - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

dist/chunk-7H7EOSCZ.js

8

dist/index.d.ts
/// <reference types="node" />
import { D as DebugLevel, P as PGliteInterface, F as FilesystemType, a as PGliteOptions, Q as QueryOptions, R as Results, T as Transaction, B as BackendMessage$1, b as ParserOptions } from './interface-Cuv0FyC4.js';
export { d as Row, c as RowMode, m as messages } from './interface-Cuv0FyC4.js';
import { D as DebugLevel, P as PGliteInterface, F as FilesystemType, a as PGliteOptions, Q as QueryOptions, R as Results, T as Transaction, E as ExecProtocolOptions, B as BackendMessage$1, b as ParserOptions } from './interface-BnlZNe3c.js';
export { d as Row, c as RowMode, m as messages } from './interface-BnlZNe3c.js';

@@ -352,3 +352,3 @@ /** Based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/emscripten/index.d.ts */

*/
execProtocol(message: Uint8Array): Promise<Array<[BackendMessage$1, Uint8Array]>>;
execProtocol(message: Uint8Array, { syncToFs }?: ExecProtocolOptions): Promise<Array<[BackendMessage$1, Uint8Array]>>;
}

@@ -726,2 +726,2 @@

export { DebugLevel, FilesystemType, Mutex, PGlite, PGliteInterface, PGliteOptions, ParserOptions, QueryOptions, Results, Transaction, parse$1 as parse, index as protocol, types$1 as types };
export { DebugLevel, ExecProtocolOptions, FilesystemType, Mutex, PGlite, PGliteInterface, PGliteOptions, ParserOptions, QueryOptions, Results, Transaction, parse$1 as parse, index as protocol, types$1 as types };

@@ -1,2 +0,2 @@

import{a,b,c,d,e,f}from"./chunk-KWJZDR7A.js";import"./chunk-D7CAIIU2.js";export{a as Mutex,d as PGlite,e as messages,c as parse,f as protocol,b as types};
import{a,b,c,d,e,f}from"./chunk-LASOZ53H.js";import"./chunk-EKNQE2HU.js";export{a as Mutex,d as PGlite,e as messages,c as parse,f as protocol,b as types};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { P as PGliteInterface, F as FilesystemType, D as DebugLevel, a as PGliteOptions, Q as QueryOptions, R as Results, B as BackendMessage } from '../interface-Cuv0FyC4.js';
import { P as PGliteInterface, F as FilesystemType, D as DebugLevel, a as PGliteOptions, Q as QueryOptions, R as Results, B as BackendMessage } from '../interface-BnlZNe3c.js';

@@ -3,0 +3,0 @@ declare class PGliteWorker implements PGliteInterface {

@@ -1,2 +0,2 @@

import{b as u,c as d}from"../chunk-37RV6M26.js";import{d as t,e as i,f as n,g as l,i as p,r as m}from"../chunk-D7CAIIU2.js";p();var P=new URL("./process.js",import.meta.url),o,a,s,y,h,g=class{constructor(e,r){i(this,y);this.debug=0;i(this,o,!1);i(this,a,!1);i(this,s,void 0);let{dataDir:c,fsType:f}=m(e);this.dataDir=c,this.fsType=f,this.debug=r?.debug??0,n(this,s,u(new Worker(P,{type:"module"}))),this.waitReady=l(this,y,h).call(this,e)}get ready(){return t(this,o)}get closed(){return t(this,a)}async close(){await t(this,s).close(),n(this,a,!0)}async query(e,r,c){return t(this,s).query(e,r,c)}async exec(e,r){return t(this,s).exec(e,r)}async transaction(e){let r=d(e);return t(this,s).transaction(r)}async execProtocol(e){return t(this,s).execProtocol(e)}};o=new WeakMap,a=new WeakMap,s=new WeakMap,y=new WeakSet,h=async function(e){await t(this,s).init(e,{debug:this.debug}),n(this,o,!0)};export{g as PGliteWorker};
import{b as u,c as d}from"../chunk-7H7EOSCZ.js";import{d as t,e as i,f as n,g as l,i as p,r as m}from"../chunk-EKNQE2HU.js";p();var P=new URL("./process.js",import.meta.url),o,a,s,y,h,g=class{constructor(e,r){i(this,y);this.debug=0;i(this,o,!1);i(this,a,!1);i(this,s,void 0);let{dataDir:c,fsType:f}=m(e);this.dataDir=c,this.fsType=f,this.debug=r?.debug??0,n(this,s,u(new Worker(P,{type:"module"}))),this.waitReady=l(this,y,h).call(this,e)}get ready(){return t(this,o)}get closed(){return t(this,a)}async close(){await t(this,s).close(),n(this,a,!0)}async query(e,r,c){return t(this,s).query(e,r,c)}async exec(e,r){return t(this,s).exec(e,r)}async transaction(e){let r=d(e);return t(this,s).transaction(r)}async execProtocol(e){return t(this,s).execProtocol(e)}};o=new WeakMap,a=new WeakMap,s=new WeakMap,y=new WeakSet,h=async function(e){await t(this,s).init(e,{debug:this.debug}),n(this,o,!0)};export{g as PGliteWorker};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { a as PGliteOptions, Q as QueryOptions, R as Results, B as BackendMessage } from '../interface-Cuv0FyC4.js';
import { a as PGliteOptions, Q as QueryOptions, R as Results, B as BackendMessage } from '../interface-BnlZNe3c.js';

@@ -3,0 +3,0 @@ declare const worker: {

@@ -1,2 +0,2 @@

import{d as o}from"../chunk-KWJZDR7A.js";import{a as i,c as a}from"../chunk-37RV6M26.js";import{i as n}from"../chunk-D7CAIIU2.js";n();var e,y={async init(t,r){return e=new o(t,r),await e.waitReady,!0},async close(){await e.close()},async query(t,r,s){return await e.query(t,r,s)},async exec(t,r){return await e.exec(t,r)},async transaction(t){return await e.transaction(r=>t(a(r)))},async execProtocol(t){return await e.execProtocol(t)}};i(y);
import{d as o}from"../chunk-LASOZ53H.js";import{a as i,c as a}from"../chunk-7H7EOSCZ.js";import{i as n}from"../chunk-EKNQE2HU.js";n();var e,y={async init(t,r){return e=new o(t,r),await e.waitReady,!0},async close(){await e.close()},async query(t,r,s){return await e.query(t,r,s)},async exec(t,r){return await e.exec(t,r)},async transaction(t){return await e.transaction(r=>t(a(r)))},async execProtocol(t){return await e.execProtocol(t)}};i(y);
//# sourceMappingURL=process.js.map
{
"name": "@electric-sql/pglite",
"version": "0.1.2",
"version": "0.1.3",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

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