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.3 to 0.1.4

dist/chunk-HBIQQPIF.js

4

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, 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';
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-Be6LYDxW.js';
export { d as Row, c as RowMode, m as messages } from './interface-Be6LYDxW.js';

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

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

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};
import{a,b,c,d,e,f}from"./chunk-HBIQQPIF.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-BnlZNe3c.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-Be6LYDxW.js';

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

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

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};
import{b as d,c as h}from"../chunk-7H7EOSCZ.js";import{d as t,e as i,f as o,g as p,i as m,r as u}from"../chunk-EKNQE2HU.js";m();var k=new URL("./process.js",import.meta.url),a,n,s,y,c,f,g=class{constructor(e,r){i(this,c);this.debug=0;i(this,a,!1);i(this,n,!1);i(this,s,void 0);i(this,y,void 0);let{dataDir:l,fsType:P}=u(e);this.dataDir=l,this.fsType=P,o(this,y,r??{}),this.debug=r?.debug??0,o(this,s,d(new Worker(k,{type:"module"}))),this.waitReady=p(this,c,f).call(this,e)}get ready(){return t(this,a)}get closed(){return t(this,n)}async close(){await t(this,s).close(),o(this,n,!0)}async query(e,r,l){return t(this,s).query(e,r,l)}async exec(e,r){return t(this,s).exec(e,r)}async transaction(e){let r=h(e);return t(this,s).transaction(r)}async execProtocol(e){return t(this,s).execProtocol(e)}};a=new WeakMap,n=new WeakMap,s=new WeakMap,y=new WeakMap,c=new WeakSet,f=async function(e){await t(this,s).init(e,t(this,y)),o(this,a,!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-BnlZNe3c.js';
import { a as PGliteOptions, Q as QueryOptions, R as Results, B as BackendMessage } from '../interface-Be6LYDxW.js';

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

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

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);
import{d as o}from"../chunk-HBIQQPIF.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.3",
"version": "0.1.4",
"private": false,

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

@@ -155,2 +155,3 @@ <p align="center">

- `debug`: 1-5 - the Postgres debug level. Logs are sent to the console.
- `relaxedDurability`: boolean - under relaxed durability mode PGlite will not wait for flushes to storage to complete when using the indexedDB file system.

@@ -157,0 +158,0 @@ ### Methods:

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