@vue-skuilder/db 0.1.8-3 → 0.1.8-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/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +8 -2
- package/dist/core/index.mjs.map +1 -1
- package/dist/impl/couch/index.js +8 -2
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +8 -2
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.js +8 -2
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +8 -2
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/factory.ts +5 -0
- package/src/util/dataDirectory.ts +6 -1
package/dist/core/index.js
CHANGED
|
@@ -205,7 +205,11 @@ var init_tuiLogger = __esm({
|
|
|
205
205
|
|
|
206
206
|
// src/util/dataDirectory.ts
|
|
207
207
|
function getAppDataDirectory() {
|
|
208
|
-
|
|
208
|
+
if (ENV.LOCAL_STORAGE_PREFIX) {
|
|
209
|
+
return path.join(os.homedir(), `.tuilder`, ENV.LOCAL_STORAGE_PREFIX);
|
|
210
|
+
} else {
|
|
211
|
+
return path.join(os.homedir(), ".tuilder");
|
|
212
|
+
}
|
|
209
213
|
}
|
|
210
214
|
function getDbPath(dbName) {
|
|
211
215
|
return path.join(getAppDataDirectory(), dbName);
|
|
@@ -217,6 +221,7 @@ var init_dataDirectory = __esm({
|
|
|
217
221
|
path = __toESM(require("path"));
|
|
218
222
|
os = __toESM(require("os"));
|
|
219
223
|
init_tuiLogger();
|
|
224
|
+
init_factory();
|
|
220
225
|
}
|
|
221
226
|
});
|
|
222
227
|
|
|
@@ -2411,7 +2416,8 @@ var init_factory = __esm({
|
|
|
2411
2416
|
init_logger();
|
|
2412
2417
|
ENV = {
|
|
2413
2418
|
COUCHDB_SERVER_PROTOCOL: "NOT_SET",
|
|
2414
|
-
COUCHDB_SERVER_URL: "NOT_SET"
|
|
2419
|
+
COUCHDB_SERVER_URL: "NOT_SET",
|
|
2420
|
+
LOCAL_STORAGE_PREFIX: ""
|
|
2415
2421
|
};
|
|
2416
2422
|
dataLayerInstance = null;
|
|
2417
2423
|
}
|