@zgfe/business-lib 1.2.70-hxd.30 → 1.2.70-hxd.31

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.
@@ -91,6 +91,7 @@ export interface GlobalContextProps {
91
91
  authority?: any;
92
92
  basicConfig?: any;
93
93
  customized_version?: string;
94
+ showProdDownload?: Boolean;
94
95
  }
95
96
  declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
96
97
  export default BizGlobalDataContext;
@@ -17,6 +17,13 @@ export var serviceTypeType;
17
17
  serviceTypeType[serviceTypeType["IO"] = 1] = "IO";
18
18
  serviceTypeType[serviceTypeType["CEP"] = 2] = "CEP";
19
19
  })(serviceTypeType || (serviceTypeType = {}));
20
- var BizGlobalDataContext = /*#__PURE__*/createContext({});
20
+ var showProdDownloadMethod = function showProdDownloadMethod() {
21
+ var ipList = ['10.82.0.0', '10.82.0.16', '10.64.64.0', '10.64.64.24', '10.64.71.0', '10.64.71.24', '10.64.48.0', '10.64.48.23', '10.64.50.0', '10.64.50.24', '10.64.162.0', '10.64.162.24', '10.64.188.0', '10.64.188.23', '10.64.140.0', '10.64.140.24'];
22
+ var ip = window.location.hostname;
23
+ return !ipList.includes(ip);
24
+ };
25
+ var BizGlobalDataContext = /*#__PURE__*/createContext({
26
+ showProdDownload: showProdDownloadMethod()
27
+ });
21
28
  export default BizGlobalDataContext;
22
29
  export var BizValidatorContext = /*#__PURE__*/createContext({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.70-hxd.30",
3
+ "version": "1.2.70-hxd.31",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "284e261761c36e1f31f99251c17dd8ad97d06be4",
58
+ "gitHead": "d350341e3262f3a40acada076b2bb7ba18588b8e",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }