@fctc/interface-logic 1.4.2 → 1.4.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.
package/dist/hooks.js CHANGED
@@ -4229,7 +4229,7 @@ var model_service_default = ModelService;
4229
4229
  var UserService = {
4230
4230
  async getProfile(path) {
4231
4231
  const env2 = getEnv();
4232
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4232
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4233
4233
  headers: {
4234
4234
  "Content-Type": "application/x-www-form-urlencoded"
4235
4235
  }
package/dist/hooks.mjs CHANGED
@@ -4126,7 +4126,7 @@ var model_service_default = ModelService;
4126
4126
  var UserService = {
4127
4127
  async getProfile(path) {
4128
4128
  const env2 = getEnv();
4129
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4129
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4130
4130
  headers: {
4131
4131
  "Content-Type": "application/x-www-form-urlencoded"
4132
4132
  }
package/dist/services.js CHANGED
@@ -4145,7 +4145,7 @@ var model_service_default = ModelService;
4145
4145
  var UserService = {
4146
4146
  async getProfile(path) {
4147
4147
  const env2 = getEnv();
4148
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4148
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4149
4149
  headers: {
4150
4150
  "Content-Type": "application/x-www-form-urlencoded"
4151
4151
  }
package/dist/services.mjs CHANGED
@@ -4101,7 +4101,7 @@ var model_service_default = ModelService;
4101
4101
  var UserService = {
4102
4102
  async getProfile(path) {
4103
4103
  const env2 = getEnv();
4104
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4104
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4105
4105
  headers: {
4106
4106
  "Content-Type": "application/x-www-form-urlencoded"
4107
4107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",