@mdfriday/foundry 26.3.14 → 26.3.15
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 +5 -3
- package/dist/index.js +1 -1
- package/dist/internal/application/identity.d.ts +2 -0
- package/dist/internal/domain/identity/entity/user.d.ts +1 -0
- package/dist/internal/domain/identity/value-object/license.d.ts +1 -1
- package/dist/internal/interfaces/obsidian/auth.d.ts +1 -0
- package/dist/internal/interfaces/obsidian/license.d.ts +1 -0
- package/package.json +7 -1
package/dist/cli.js
CHANGED
|
@@ -1945,7 +1945,7 @@ var init_license = __esm({
|
|
|
1945
1945
|
* 检查是否是试用 License
|
|
1946
1946
|
*/
|
|
1947
1947
|
isTrial() {
|
|
1948
|
-
return this.plan === "
|
|
1948
|
+
return this.plan === "free";
|
|
1949
1949
|
}
|
|
1950
1950
|
// ============================================================================
|
|
1951
1951
|
// Comparison
|
|
@@ -2479,6 +2479,7 @@ var init_user = __esm({
|
|
|
2479
2479
|
tokenExpired: this.isTokenExpired(),
|
|
2480
2480
|
hasToken: this.token !== null,
|
|
2481
2481
|
hasLicense: this.license !== null,
|
|
2482
|
+
license: this.license?.getKey(),
|
|
2482
2483
|
licenseValid: this.hasValidLicense(),
|
|
2483
2484
|
isTrial: this.isTrialAccount(),
|
|
2484
2485
|
licensePlan: this.license?.getPlan(),
|
|
@@ -2796,7 +2797,7 @@ var init_user_factory = __esm({
|
|
|
2796
2797
|
}
|
|
2797
2798
|
const tempLicense = License.create(
|
|
2798
2799
|
licenseKey,
|
|
2799
|
-
"
|
|
2800
|
+
"free",
|
|
2800
2801
|
// 临时值,会在激活后更新
|
|
2801
2802
|
Date.now() + 864e5,
|
|
2802
2803
|
// 临时过期时间
|
|
@@ -4646,6 +4647,7 @@ var init_identity2 = __esm({
|
|
|
4646
4647
|
return {
|
|
4647
4648
|
isAuthenticated: false,
|
|
4648
4649
|
email: void 0,
|
|
4650
|
+
license: "",
|
|
4649
4651
|
serverUrl: ServerConfig.createDefault().getApiUrl(),
|
|
4650
4652
|
tokenExpired: true,
|
|
4651
4653
|
hasToken: false
|
|
@@ -55114,7 +55116,7 @@ For more information, visit: https://help.mdfriday.com
|
|
|
55114
55116
|
* Show version
|
|
55115
55117
|
*/
|
|
55116
55118
|
showVersion() {
|
|
55117
|
-
const version = "26.3.
|
|
55119
|
+
const version = "26.3.15";
|
|
55118
55120
|
return {
|
|
55119
55121
|
success: true,
|
|
55120
55122
|
message: `MDFriday CLI v${version}`
|