@mdfriday/foundry 26.3.13 → 26.3.14
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/cli.js +15 -6
- package/dist/index.js +1 -1
- package/dist/internal/interfaces/obsidian/auth.d.ts +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3998,9 +3998,10 @@ var init_workspace_factory = __esm({
|
|
|
3998
3998
|
async saveUserData(data) {
|
|
3999
3999
|
const userDataPath = import_path3.default.join(workspacePath, ".mdfriday", "user-data.json");
|
|
4000
4000
|
await fsRepo.createDirectory(import_path3.default.dirname(userDataPath), true);
|
|
4001
|
-
const jsonData = {
|
|
4002
|
-
|
|
4003
|
-
|
|
4001
|
+
const jsonData = {};
|
|
4002
|
+
if (data.serverConfig) {
|
|
4003
|
+
jsonData.serverConfig = data.serverConfig.toJSON();
|
|
4004
|
+
}
|
|
4004
4005
|
if (data.token) {
|
|
4005
4006
|
jsonData.token = data.token.toJSON();
|
|
4006
4007
|
authentication.markAuthExists();
|
|
@@ -4008,6 +4009,9 @@ var init_workspace_factory = __esm({
|
|
|
4008
4009
|
if (data.license) {
|
|
4009
4010
|
jsonData.license = data.license.toJSON();
|
|
4010
4011
|
}
|
|
4012
|
+
if (data.syncConfig) {
|
|
4013
|
+
jsonData.syncConfig = data.syncConfig.toJSON();
|
|
4014
|
+
}
|
|
4011
4015
|
if (data.email) {
|
|
4012
4016
|
jsonData.email = data.email;
|
|
4013
4017
|
}
|
|
@@ -4018,7 +4022,7 @@ var init_workspace_factory = __esm({
|
|
|
4018
4022
|
try {
|
|
4019
4023
|
const content = await fsRepo.readFile(userDataPath, "utf-8");
|
|
4020
4024
|
const data = JSON.parse(content);
|
|
4021
|
-
const { Token: Token3, ServerConfig: ServerConfig2, License: License2 } = await Promise.resolve().then(() => (init_identity(), identity_exports));
|
|
4025
|
+
const { Token: Token3, ServerConfig: ServerConfig2, License: License2, SyncConfig: SyncConfig2 } = await Promise.resolve().then(() => (init_identity(), identity_exports));
|
|
4022
4026
|
const result = {};
|
|
4023
4027
|
if (data.serverConfig) {
|
|
4024
4028
|
result.serverConfig = ServerConfig2.create(data.serverConfig.apiUrl, data.serverConfig.websiteUrl);
|
|
@@ -4032,9 +4036,14 @@ var init_workspace_factory = __esm({
|
|
|
4032
4036
|
data.license.plan,
|
|
4033
4037
|
data.license.expiresAt,
|
|
4034
4038
|
data.license.features,
|
|
4035
|
-
data.license.activatedAt
|
|
4039
|
+
data.license.activatedAt,
|
|
4040
|
+
data.license.activated,
|
|
4041
|
+
data.license.firstTime
|
|
4036
4042
|
);
|
|
4037
4043
|
}
|
|
4044
|
+
if (data.syncConfig) {
|
|
4045
|
+
result.syncConfig = SyncConfig2.fromJSON(data.syncConfig);
|
|
4046
|
+
}
|
|
4038
4047
|
if (data.email) {
|
|
4039
4048
|
result.email = data.email;
|
|
4040
4049
|
}
|
|
@@ -55105,7 +55114,7 @@ For more information, visit: https://help.mdfriday.com
|
|
|
55105
55114
|
* Show version
|
|
55106
55115
|
*/
|
|
55107
55116
|
showVersion() {
|
|
55108
|
-
const version = "26.3.
|
|
55117
|
+
const version = "26.3.14";
|
|
55109
55118
|
return {
|
|
55110
55119
|
success: true,
|
|
55111
55120
|
message: `MDFriday CLI v${version}`
|