@electric-sql/pglite
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
import { | ||
FilesystemBase, | ||
IN_NODE, | ||
PGDATA, | ||
@@ -13,3 +14,3 @@ __privateAdd, | ||
share_default | ||
} from "./chunk-37YWJ5QA.js"; | ||
} from "./chunk-RM7SEAOI.js"; | ||
@@ -105,5 +106,5 @@ // ../../node_modules/.pnpm/async-mutex@0.4.1/node_modules/async-mutex/index.mjs | ||
_dispatch() { | ||
var _a; | ||
var _a2; | ||
for (let weight = this._value; weight > 0; weight--) { | ||
const queueEntry = (_a = this._weightedQueues[weight - 1]) === null || _a === void 0 ? void 0 : _a.shift(); | ||
const queueEntry = (_a2 = this._weightedQueues[weight - 1]) === null || _a2 === void 0 ? void 0 : _a2.shift(); | ||
if (!queueEntry) | ||
@@ -316,2 +317,15 @@ continue; | ||
// src/index.ts | ||
var _detail, _a; | ||
if (IN_NODE && typeof CustomEvent === "undefined") { | ||
globalThis.CustomEvent = (_a = class extends Event { | ||
constructor(type, options) { | ||
super(type, options); | ||
__privateAdd(this, _detail, void 0); | ||
__privateSet(this, _detail, options?.detail ?? null); | ||
} | ||
get detail() { | ||
return __privateGet(this, _detail); | ||
} | ||
}, _detail = new WeakMap(), _a); | ||
} | ||
var _initStarted, _ready, _eventTarget, _closed, _awaitingResult, _resultError, _queryMutex, _fsSyncMutex, _init, init_fn, _syncToFs, syncToFs_fn; | ||
@@ -430,3 +444,3 @@ var PGlite = class { | ||
if (this.dataDir && this.fsType === "nodefs") { | ||
const { NodeFS } = await import("./nodefs-P52BRSCH.js"); | ||
const { NodeFS } = await import("./nodefs-XF7PXNWE.js"); | ||
this.fs = new NodeFS(this.dataDir); | ||
@@ -433,0 +447,0 @@ } else if (this.dataDir && this.fsType === "idbfs") { |
{ | ||
"name": "@electric-sql/pglite", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
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
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
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
13783695
7517
5