chipctx 0.2.1 → 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/dist/chipctx-gen.js +2 -0
- package/dist/index.js +192 -190
- package/package.json +5 -4
package/dist/chipctx-gen.js
CHANGED
|
@@ -4,6 +4,8 @@ import { spawn as __chipctxSpawnImpl, spawnSync as __chipctxSpawnSyncImpl } from
|
|
|
4
4
|
import { accessSync as __chipctxAccessSync, constants as __chipctxFsConstants, readFileSync as __chipctxReadFileSync, statSync as __chipctxStatSync } from "node:fs";
|
|
5
5
|
import { delimiter as __chipctxPathDelimiter, join as __chipctxPathJoin } from "node:path";
|
|
6
6
|
import { Readable as __chipctxReadable } from "node:stream";
|
|
7
|
+
const __chipctxBunSqliteModule = globalThis.Bun ? await import("bun:sqlite").catch(() => null) : null;
|
|
8
|
+
const __chipctxBunDatabase = __chipctxBunSqliteModule?.Database ?? null;
|
|
7
9
|
const __chipctxNodeSqliteModule = await import("node:sqlite").catch(() => null);
|
|
8
10
|
const __chipctxNodeDatabaseSync = __chipctxNodeSqliteModule?.DatabaseSync ?? null;
|
|
9
11
|
const __chipctxRequire = import.meta.require ?? __chipctxCreateRequire(import.meta.url);
|