@fctc/interface-logic 1.9.2 → 1.9.3

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.
@@ -2500,7 +2500,7 @@ function getEnv() {
2500
2500
  if (!env) {
2501
2501
  env = initEnv({});
2502
2502
  }
2503
- return env;
2503
+ return env?.getEnv();
2504
2504
  }
2505
2505
  // Annotate the CommonJS export names for ESM import in node:
2506
2506
  0 && (module.exports = {
@@ -2462,7 +2462,7 @@ function getEnv() {
2462
2462
  if (!env) {
2463
2463
  env = initEnv({});
2464
2464
  }
2465
- return env;
2465
+ return env?.getEnv();
2466
2466
  }
2467
2467
  export {
2468
2468
  EnvStore,
package/dist/hooks.js CHANGED
@@ -2626,7 +2626,7 @@ function getEnv() {
2626
2626
  if (!env) {
2627
2627
  env = initEnv({});
2628
2628
  }
2629
- return env;
2629
+ return env?.getEnv();
2630
2630
  }
2631
2631
 
2632
2632
  // src/services/action-service/index.ts
@@ -2783,7 +2783,7 @@ var action_service_default = ActionService;
2783
2783
  // src/services/auth-service/index.ts
2784
2784
  var AuthService = {
2785
2785
  async login(body) {
2786
- const env2 = getEnv();
2786
+ const env2 = getEnv().state;
2787
2787
  const payload = Object.fromEntries(
2788
2788
  Object.entries({
2789
2789
  username: body.email,
package/dist/hooks.mjs CHANGED
@@ -2522,7 +2522,7 @@ function getEnv() {
2522
2522
  if (!env) {
2523
2523
  env = initEnv({});
2524
2524
  }
2525
- return env;
2525
+ return env?.getEnv();
2526
2526
  }
2527
2527
 
2528
2528
  // src/services/action-service/index.ts
@@ -2679,7 +2679,7 @@ var action_service_default = ActionService;
2679
2679
  // src/services/auth-service/index.ts
2680
2680
  var AuthService = {
2681
2681
  async login(body) {
2682
- const env2 = getEnv();
2682
+ const env2 = getEnv().state;
2683
2683
  const payload = Object.fromEntries(
2684
2684
  Object.entries({
2685
2685
  username: body.email,
package/dist/services.js CHANGED
@@ -2541,7 +2541,7 @@ function getEnv() {
2541
2541
  if (!env) {
2542
2542
  env = initEnv({});
2543
2543
  }
2544
- return env;
2544
+ return env?.getEnv();
2545
2545
  }
2546
2546
 
2547
2547
  // src/services/action-service/index.ts
@@ -2698,7 +2698,7 @@ var action_service_default = ActionService;
2698
2698
  // src/services/auth-service/index.ts
2699
2699
  var AuthService = {
2700
2700
  async login(body) {
2701
- const env2 = getEnv();
2701
+ const env2 = getEnv().state;
2702
2702
  const payload = Object.fromEntries(
2703
2703
  Object.entries({
2704
2704
  username: body.email,
package/dist/services.mjs CHANGED
@@ -2497,7 +2497,7 @@ function getEnv() {
2497
2497
  if (!env) {
2498
2498
  env = initEnv({});
2499
2499
  }
2500
- return env;
2500
+ return env?.getEnv();
2501
2501
  }
2502
2502
 
2503
2503
  // src/services/action-service/index.ts
@@ -2654,7 +2654,7 @@ var action_service_default = ActionService;
2654
2654
  // src/services/auth-service/index.ts
2655
2655
  var AuthService = {
2656
2656
  async login(body) {
2657
- const env2 = getEnv();
2657
+ const env2 = getEnv().state;
2658
2658
  const payload = Object.fromEntries(
2659
2659
  Object.entries({
2660
2660
  username: body.email,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",