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.1 to 0.1.2

dist/chunk-37RV6M26.js

2

dist/index.js

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

import{a,b,c,d,e,f}from"./chunk-PZ42MFXG.js";import"./chunk-OZK6JZJR.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-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};
//# sourceMappingURL=index.js.map

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

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

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

import{d as o}from"../chunk-PZ42MFXG.js";import{a as i,c as a}from"../chunk-OLGMIZKV.js";import{i as n}from"../chunk-OZK6JZJR.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-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);
//# sourceMappingURL=process.js.map
{
"name": "@electric-sql/pglite",
"version": "0.1.1",
"version": "0.1.2",
"private": false,

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

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

- `rowMode: "object" | "array"`
The returned row object type, either an object of `felidName: value` mappings or an array of positional values. Defaults to `"object"`.
The returned row object type, either an object of `fieldName: value` mappings or an array of positional values. Defaults to `"object"`.
- `parsers: ParserOptions`

@@ -306,6 +306,10 @@ An object of type `{[[pgType: number]: (value: string) => any;]}` mapping Postgres data type id to parser function.

PGlite supports the pl/pgsql procedural langue extension, this is included and enabled by default.
PGlite supports the pl/pgsql procedural language extension, this is included and enabled by default.
In future we plan to support additional extensions, see the [roadmap](#roadmap).
## ORM support.
- Drizzle ORM supports PGlite, see [their docs here](https://orm.drizzle.team/docs/get-started-postgresql#pglite).
## How it works

@@ -312,0 +316,0 @@

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