@xfe-repo/web-utils 1.0.1 → 1.0.2

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/env.d.mts CHANGED
@@ -10,6 +10,7 @@ declare const isWeiXin: boolean;
10
10
  declare const isProduction: boolean;
11
11
  declare const release: string;
12
12
  declare const apiEnv: ApiEnv;
13
+ declare const business: Business;
13
14
  declare const assetsHost = "https://imgs.xianghuanji.com/";
14
15
  declare const getErpSaasOrigin: (_apiEnv: ApiEnv) => string;
15
16
  declare const getMSaasOrigin: (_apiEnv: ApiEnv) => string;
@@ -23,4 +24,4 @@ declare const sentryConfig: {
23
24
  debug: boolean;
24
25
  };
25
26
 
26
- export { type ApiEnv, type Business, type TestEnv, apiEnv, assetsHost, getBffApi, getEnvDomain, getErpSaasOrigin, getMSaasOrigin, isAndroid, isClient, isIos, isProduction, isSSR, isServer, isWeiXin, release, sentryConfig };
27
+ export { type ApiEnv, type Business, type TestEnv, apiEnv, assetsHost, business, getBffApi, getEnvDomain, getErpSaasOrigin, getMSaasOrigin, isAndroid, isClient, isIos, isProduction, isSSR, isServer, isWeiXin, release, sentryConfig };
package/dist/env.d.ts CHANGED
@@ -10,6 +10,7 @@ declare const isWeiXin: boolean;
10
10
  declare const isProduction: boolean;
11
11
  declare const release: string;
12
12
  declare const apiEnv: ApiEnv;
13
+ declare const business: Business;
13
14
  declare const assetsHost = "https://imgs.xianghuanji.com/";
14
15
  declare const getErpSaasOrigin: (_apiEnv: ApiEnv) => string;
15
16
  declare const getMSaasOrigin: (_apiEnv: ApiEnv) => string;
@@ -23,4 +24,4 @@ declare const sentryConfig: {
23
24
  debug: boolean;
24
25
  };
25
26
 
26
- export { type ApiEnv, type Business, type TestEnv, apiEnv, assetsHost, getBffApi, getEnvDomain, getErpSaasOrigin, getMSaasOrigin, isAndroid, isClient, isIos, isProduction, isSSR, isServer, isWeiXin, release, sentryConfig };
27
+ export { type ApiEnv, type Business, type TestEnv, apiEnv, assetsHost, business, getBffApi, getEnvDomain, getErpSaasOrigin, getMSaasOrigin, isAndroid, isClient, isIos, isProduction, isSSR, isServer, isWeiXin, release, sentryConfig };
package/dist/env.js CHANGED
@@ -22,6 +22,7 @@ var env_exports = {};
22
22
  __export(env_exports, {
23
23
  apiEnv: () => apiEnv,
24
24
  assetsHost: () => assetsHost,
25
+ business: () => business,
25
26
  getBffApi: () => getBffApi,
26
27
  getEnvDomain: () => getEnvDomain,
27
28
  getErpSaasOrigin: () => getErpSaasOrigin,
@@ -52,6 +53,7 @@ var isWeiXin = /MicroMessenger/i.test(navigator.userAgent);
52
53
  var isProduction = process.env["NODE_ENV"] === "production";
53
54
  var release = process.env["REACT_APP_RELEASE"] || "dev";
54
55
  var apiEnv = process.env["REACT_APP_API_ENV"];
56
+ var business = process.env["REACT_APP_BUSINESS"];
55
57
  var assetsHost = "https://imgs.xianghuanji.com/";
56
58
  var erpSaasOriginDic = {
57
59
  dev: `http://test.erp-saas.t.eshetang.com`,
@@ -115,6 +117,7 @@ var sentryConfig = {
115
117
  0 && (module.exports = {
116
118
  apiEnv,
117
119
  assetsHost,
120
+ business,
118
121
  getBffApi,
119
122
  getEnvDomain,
120
123
  getErpSaasOrigin,
package/dist/env.mjs CHANGED
@@ -16,6 +16,7 @@ var isWeiXin = /MicroMessenger/i.test(navigator.userAgent);
16
16
  var isProduction = process.env["NODE_ENV"] === "production";
17
17
  var release = process.env["REACT_APP_RELEASE"] || "dev";
18
18
  var apiEnv = process.env["REACT_APP_API_ENV"];
19
+ var business = process.env["REACT_APP_BUSINESS"];
19
20
  var assetsHost = "https://imgs.xianghuanji.com/";
20
21
  var erpSaasOriginDic = {
21
22
  dev: `http://test.erp-saas.t.eshetang.com`,
@@ -78,6 +79,7 @@ var sentryConfig = {
78
79
  export {
79
80
  apiEnv,
80
81
  assetsHost,
82
+ business,
81
83
  getBffApi,
82
84
  getEnvDomain,
83
85
  getErpSaasOrigin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "sideEffects": false,
5
5
  "exports": {
6
6
  "./*": {
@@ -22,7 +22,7 @@
22
22
  "tsup": "^8.0.1",
23
23
  "typescript": "^5.2.2",
24
24
  "@xfe-repo/eslint-config": "0.0.1",
25
- "@xfe-repo/typescript-config": "0.0.1"
25
+ "@xfe-repo/typescript-config": "0.0.2"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup",