@clonegod/ttd-core 3.0.6 → 3.0.7

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.
@@ -43,7 +43,7 @@ class ArbCache {
43
43
  this.get_token_list_no_cache(),
44
44
  this.get_pool_list_no_cache()
45
45
  ]);
46
- if (((_a = process.env.APP_NAME) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'ttd-config-center') {
46
+ if ((_a = process.env.APP_NAME) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes('config-center')) {
47
47
  yield this.init_configs();
48
48
  }
49
49
  }
@@ -57,7 +57,7 @@ class ArbCache {
57
57
  return __awaiter(this, void 0, void 0, function* () {
58
58
  var _a;
59
59
  let app_name = process.env.APP_NAME;
60
- if (((_a = process.env.APP_NAME) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== 'ttd-config-center') {
60
+ if (!((_a = process.env.APP_NAME) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes('config-center'))) {
61
61
  (0, index_1.log_warn)(`Only ttd-config-center can initial config! process.env.APP_NAME=${app_name}, return`);
62
62
  return;
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",