@tapd/tplugin-core 1.20.1-alpha.6 → 1.20.1-alpha.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.
Files changed (2) hide show
  1. package/package.json +4 -3
  2. package/src/config.js +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapd/tplugin-core",
3
- "version": "1.20.1-alpha.6",
3
+ "version": "1.20.1-alpha.7",
4
4
  "main": "src/index.js",
5
5
  "description": "tplugin-core",
6
6
  "scripts": {
@@ -30,7 +30,8 @@
30
30
  "lint-staged": "^11.1.2"
31
31
  },
32
32
  "files": [
33
- "src"
33
+ "src",
34
+ "!src/config.js"
34
35
  ],
35
- "gitHead": "bca7c5c36fa185f3ce5a80071338c566ec9035c8"
36
+ "gitHead": "c6d369d6438e3177577275d51b960abade727797"
36
37
  }
package/src/config.js DELETED
@@ -1,27 +0,0 @@
1
- /**
2
- * Copyright 2021 Tencent Inc. All rights reserved.
3
- * Author: gobichen@tencent.com
4
- *
5
- * 配置信息
6
- */
7
-
8
- // 从环境变量中获取当前配置 默认为正式环境
9
- const env = process.env.TPLUGIN_ENV || 'oa';
10
-
11
- const API_PATH_MAP = {
12
- test: 'http://wolf.woa.com/tapdapi',
13
- oa: 'http://apiv2.tapd.oa.com',
14
- ex: 'https://apiv2.tapd.tencent.com',
15
- default: 'https://apiv2.tapd.tencent.com',
16
- cloud: 'https://api.tapd.cn',
17
- cloudtest: 'http://wolfcloud.woa.com/tapdapi',
18
- };
19
-
20
- // 配置星系
21
- module.exports = {
22
- // tapd 配置
23
- tapd: {
24
- // API地址配置
25
- apiPath: API_PATH_MAP[env] || API_PATH_MAP.default,
26
- },
27
- };