@electric-sql/pglite
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -415,2 +415,19 @@ /// <reference types="node" /> | ||
declare const REGROLE = 4096; | ||
declare const arrayTypes: { | ||
1001: number; | ||
1002: number; | ||
1016: number; | ||
1005: number; | ||
1007: number; | ||
1009: number; | ||
1028: number; | ||
199: number; | ||
1021: number; | ||
1022: number; | ||
1015: number; | ||
3807: number; | ||
1182: number; | ||
1115: number; | ||
1116: number; | ||
}; | ||
declare const types: { | ||
@@ -434,3 +451,3 @@ string: { | ||
serialize: (x: BigInt) => string; | ||
parse: (x: string) => bigint; | ||
parse: (x: string) => number | bigint; | ||
}; | ||
@@ -463,2 +480,8 @@ json: { | ||
}; | ||
array: { | ||
to: number; | ||
from: number[]; | ||
serialize: (x: any[]) => string; | ||
parse: (x: string, typeId?: number) => any; | ||
}; | ||
}; | ||
@@ -470,3 +493,3 @@ type TypeHandler = { | ||
serialize: (x: any) => string; | ||
parse: (x: string) => any; | ||
parse: (x: string, typeId?: number) => any; | ||
}; | ||
@@ -477,11 +500,14 @@ type TypeHandlers = { | ||
declare const parsers: { | ||
[key: string]: (x: string) => any; | ||
[key: number]: (x: string) => any; | ||
[key: string]: (x: string, typeId?: number) => any; | ||
[key: number]: (x: string, typeId?: number) => any; | ||
}; | ||
declare const serializers: { | ||
[key: string]: (x: any) => [string, number]; | ||
[key: number]: (x: any) => [string, number]; | ||
[key: string]: Serializer; | ||
[key: number]: Serializer; | ||
}; | ||
declare const serializerInstanceof: [any, (x: any) => [string, number]][]; | ||
declare function serializeType(x: any): [string, number]; | ||
declare const serializerInstanceof: [any, Serializer][]; | ||
type Serializer = (x: any) => [string, number]; | ||
declare function serializerFor(x: any): Serializer; | ||
declare function serializeType(x: any): [string | null, number]; | ||
declare function parseArray(value: string, parser?: (s: string) => any): any; | ||
declare function parseType(x: string, type: number, parsers?: ParserOptions): any; | ||
@@ -534,2 +560,3 @@ | ||
declare const types$1_SMGR: typeof SMGR; | ||
type types$1_Serializer = Serializer; | ||
declare const types$1_TEXT: typeof TEXT; | ||
@@ -552,5 +579,8 @@ declare const types$1_TID: typeof TID; | ||
declare const types$1_XML: typeof XML; | ||
declare const types$1_arrayTypes: typeof arrayTypes; | ||
declare const types$1_parseArray: typeof parseArray; | ||
declare const types$1_parseType: typeof parseType; | ||
declare const types$1_parsers: typeof parsers; | ||
declare const types$1_serializeType: typeof serializeType; | ||
declare const types$1_serializerFor: typeof serializerFor; | ||
declare const types$1_serializerInstanceof: typeof serializerInstanceof; | ||
@@ -560,3 +590,3 @@ declare const types$1_serializers: typeof serializers; | ||
declare namespace types$1 { | ||
export { types$1_ABSTIME as ABSTIME, types$1_ACLITEM as ACLITEM, types$1_BIT as BIT, types$1_BOOL as BOOL, types$1_BPCHAR as BPCHAR, types$1_BYTEA as BYTEA, types$1_CHAR as CHAR, types$1_CID as CID, types$1_CIDR as CIDR, types$1_CIRCLE as CIRCLE, types$1_DATE as DATE, types$1_FLOAT4 as FLOAT4, types$1_FLOAT8 as FLOAT8, types$1_GTSVECTOR as GTSVECTOR, types$1_INET as INET, types$1_INT2 as INT2, types$1_INT4 as INT4, types$1_INT8 as INT8, types$1_INTERVAL as INTERVAL, types$1_JSON as JSON, types$1_JSONB as JSONB, types$1_MACADDR as MACADDR, types$1_MACADDR8 as MACADDR8, types$1_MONEY as MONEY, types$1_NUMERIC as NUMERIC, types$1_OID as OID, types$1_PATH as PATH, types$1_PG_DEPENDENCIES as PG_DEPENDENCIES, types$1_PG_LSN as PG_LSN, types$1_PG_NDISTINCT as PG_NDISTINCT, types$1_PG_NODE_TREE as PG_NODE_TREE, types$1_POLYGON as POLYGON, types$1_REFCURSOR as REFCURSOR, types$1_REGCLASS as REGCLASS, types$1_REGCONFIG as REGCONFIG, types$1_REGDICTIONARY as REGDICTIONARY, types$1_REGNAMESPACE as REGNAMESPACE, types$1_REGOPER as REGOPER, types$1_REGOPERATOR as REGOPERATOR, types$1_REGPROC as REGPROC, types$1_REGPROCEDURE as REGPROCEDURE, types$1_REGROLE as REGROLE, types$1_REGTYPE as REGTYPE, types$1_RELTIME as RELTIME, types$1_SMGR as SMGR, types$1_TEXT as TEXT, types$1_TID as TID, types$1_TIME as TIME, types$1_TIMESTAMP as TIMESTAMP, types$1_TIMESTAMPTZ as TIMESTAMPTZ, types$1_TIMETZ as TIMETZ, types$1_TINTERVAL as TINTERVAL, types$1_TSQUERY as TSQUERY, types$1_TSVECTOR as TSVECTOR, types$1_TXID_SNAPSHOT as TXID_SNAPSHOT, type types$1_TypeHandler as TypeHandler, type types$1_TypeHandlers as TypeHandlers, types$1_UUID as UUID, types$1_VARBIT as VARBIT, types$1_VARCHAR as VARCHAR, types$1_XID as XID, types$1_XML as XML, types$1_parseType as parseType, types$1_parsers as parsers, types$1_serializeType as serializeType, types$1_serializerInstanceof as serializerInstanceof, types$1_serializers as serializers, types$1_types as types }; | ||
export { types$1_ABSTIME as ABSTIME, types$1_ACLITEM as ACLITEM, types$1_BIT as BIT, types$1_BOOL as BOOL, types$1_BPCHAR as BPCHAR, types$1_BYTEA as BYTEA, types$1_CHAR as CHAR, types$1_CID as CID, types$1_CIDR as CIDR, types$1_CIRCLE as CIRCLE, types$1_DATE as DATE, types$1_FLOAT4 as FLOAT4, types$1_FLOAT8 as FLOAT8, types$1_GTSVECTOR as GTSVECTOR, types$1_INET as INET, types$1_INT2 as INT2, types$1_INT4 as INT4, types$1_INT8 as INT8, types$1_INTERVAL as INTERVAL, types$1_JSON as JSON, types$1_JSONB as JSONB, types$1_MACADDR as MACADDR, types$1_MACADDR8 as MACADDR8, types$1_MONEY as MONEY, types$1_NUMERIC as NUMERIC, types$1_OID as OID, types$1_PATH as PATH, types$1_PG_DEPENDENCIES as PG_DEPENDENCIES, types$1_PG_LSN as PG_LSN, types$1_PG_NDISTINCT as PG_NDISTINCT, types$1_PG_NODE_TREE as PG_NODE_TREE, types$1_POLYGON as POLYGON, types$1_REFCURSOR as REFCURSOR, types$1_REGCLASS as REGCLASS, types$1_REGCONFIG as REGCONFIG, types$1_REGDICTIONARY as REGDICTIONARY, types$1_REGNAMESPACE as REGNAMESPACE, types$1_REGOPER as REGOPER, types$1_REGOPERATOR as REGOPERATOR, types$1_REGPROC as REGPROC, types$1_REGPROCEDURE as REGPROCEDURE, types$1_REGROLE as REGROLE, types$1_REGTYPE as REGTYPE, types$1_RELTIME as RELTIME, types$1_SMGR as SMGR, type types$1_Serializer as Serializer, types$1_TEXT as TEXT, types$1_TID as TID, types$1_TIME as TIME, types$1_TIMESTAMP as TIMESTAMP, types$1_TIMESTAMPTZ as TIMESTAMPTZ, types$1_TIMETZ as TIMETZ, types$1_TINTERVAL as TINTERVAL, types$1_TSQUERY as TSQUERY, types$1_TSVECTOR as TSVECTOR, types$1_TXID_SNAPSHOT as TXID_SNAPSHOT, type types$1_TypeHandler as TypeHandler, type types$1_TypeHandlers as TypeHandlers, types$1_UUID as UUID, types$1_VARBIT as VARBIT, types$1_VARCHAR as VARCHAR, types$1_XID as XID, types$1_XML as XML, types$1_arrayTypes as arrayTypes, types$1_parseArray as parseArray, types$1_parseType as parseType, types$1_parsers as parsers, types$1_serializeType as serializeType, types$1_serializerFor as serializerFor, types$1_serializerInstanceof as serializerInstanceof, types$1_serializers as serializers, types$1_types as types }; | ||
} | ||
@@ -563,0 +593,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{a,b,c,d,e,f}from"./chunk-XXLJNOKX.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-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}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{d as o}from"../chunk-XXLJNOKX.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-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); | ||
//# sourceMappingURL=process.js.map |
{ | ||
"name": "@electric-sql/pglite", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -36,3 +36,3 @@ <p align="center"> | ||
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped. | ||
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 2.6mb gzipped. | ||
@@ -39,0 +39,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8885311
1644
4