@xaccefy/pi-casefile 0.1.8 → 0.1.9

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": "@xaccefy/pi-casefile",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Offensive security case tracker for Pi Agent — bug bounties, CTFs, security audits",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -1,5 +1,12 @@
1
- // ponytail: thin re-export with any cast to match node:sqlite API
2
- import { Database } from "bun:sqlite";
3
- const instance = Database as any;
4
- export { instance as DatabaseSync };
1
+ import { createRequire } from "node:module";
2
+ const _require = createRequire(import.meta.url);
3
+
4
+ let DatabaseSync: any;
5
+ try {
6
+ DatabaseSync = _require("bun:sqlite").Database as any;
7
+ } catch {
8
+ DatabaseSync = (_require("node:sqlite") as any).DatabaseSync;
9
+ }
10
+
11
+ export { DatabaseSync };
5
12
  export type DatabaseSync = any;