@flowdular/sdk 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowdular/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Flowdular platform SDK: server, client, UI, data, agents and core modules through separate exports.",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowdular/database-pglite",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
@@ -5,6 +5,7 @@ import type {
5
5
  PostgresDriverResult,
6
6
  } from '@flowdular/sdk/database';
7
7
  import { PGlite } from '@electric-sql/pglite';
8
+ import { mkdir } from 'node:fs/promises';
8
9
 
9
10
  export interface PgliteDriverPoolOptions {
10
11
  /** Omit for an in-memory database. A path keeps the data across restarts. */
@@ -93,7 +94,6 @@ export function createPgliteCluster(
93
94
  const database = async (): Promise<PGlite> => {
94
95
  databasePromise ??= (async () => {
95
96
  if (options.dataDirectory) {
96
- const { mkdir } = await import('node:fs/promises');
97
97
  await mkdir(options.dataDirectory, { recursive: true, mode: 0o700 });
98
98
  }
99
99
  const created = options.dataDirectory