@miriad-systems/nuum 0.1.4 → 0.1.5
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/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23563,6 +23563,9 @@ function createSessionStorage(db) {
|
|
|
23563
23563
|
|
|
23564
23564
|
// src/storage/index.ts
|
|
23565
23565
|
function createStorage(dbPath, options) {
|
|
23566
|
+
const { mkdirSync } = __require("fs");
|
|
23567
|
+
const { dirname: dirname2 } = __require("path");
|
|
23568
|
+
mkdirSync(dirname2(dbPath), { recursive: true });
|
|
23566
23569
|
const db = createDb(dbPath);
|
|
23567
23570
|
if (options?.initialize !== false) {
|
|
23568
23571
|
runMigrations(db._rawDb);
|
|
@@ -46728,7 +46731,10 @@ function getPackageVersion() {
|
|
|
46728
46731
|
}
|
|
46729
46732
|
function getGitHash() {
|
|
46730
46733
|
try {
|
|
46731
|
-
return execSync("git rev-parse --short HEAD", {
|
|
46734
|
+
return execSync("git rev-parse --short HEAD", {
|
|
46735
|
+
encoding: "utf-8",
|
|
46736
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
46737
|
+
}).trim();
|
|
46732
46738
|
} catch {
|
|
46733
46739
|
return "unknown";
|
|
46734
46740
|
}
|