@chen0825/aiapp-ability 0.1.3 → 0.1.5

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.
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDingTalkEnvConfig = exports.resetEnvironmentConfig = exports.setEnvironmentConfig = exports.getEnvironmentConfig = void 0;
3
+ exports.getEnvironmentConfig = getEnvironmentConfig;
4
+ exports.setEnvironmentConfig = setEnvironmentConfig;
5
+ exports.resetEnvironmentConfig = resetEnvironmentConfig;
6
+ exports.getDingTalkEnvConfig = getDingTalkEnvConfig;
4
7
  /**
5
8
  * 默认环境配置
6
9
  */
@@ -20,7 +23,6 @@ let currentConfig = { ...defaultConfig };
20
23
  function getEnvironmentConfig() {
21
24
  return { ...currentConfig };
22
25
  }
23
- exports.getEnvironmentConfig = getEnvironmentConfig;
24
26
  /**
25
27
  * 设置环境配置
26
28
  * @param config 部分配置
@@ -28,14 +30,12 @@ exports.getEnvironmentConfig = getEnvironmentConfig;
28
30
  function setEnvironmentConfig(config) {
29
31
  currentConfig = { ...currentConfig, ...config };
30
32
  }
31
- exports.setEnvironmentConfig = setEnvironmentConfig;
32
33
  /**
33
34
  * 重置环境配置为默认值
34
35
  */
35
36
  function resetEnvironmentConfig() {
36
37
  currentConfig = { ...defaultConfig };
37
38
  }
38
- exports.resetEnvironmentConfig = resetEnvironmentConfig;
39
39
  /**
40
40
  * 获取钉钉环境配置(从环境变量)
41
41
  * @returns 钉钉环境配置对象
@@ -48,4 +48,3 @@ function getDingTalkEnvConfig() {
48
48
  apiUrl: process.env.DINGTALK_API_URL,
49
49
  };
50
50
  }
51
- exports.getDingTalkEnvConfig = getDingTalkEnvConfig;
package/lib/index.js CHANGED
@@ -18,6 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.default = main;
21
22
  // 导出类型
22
23
  __exportStar(require("./types"), exports);
23
24
  // 导出核心模块
@@ -27,4 +28,3 @@ __exportStar(require("./abilities"), exports);
27
28
  function main() {
28
29
  return 'Write your own legend...';
29
30
  }
30
- exports.default = main;
@@ -22,7 +22,7 @@ export interface GetAccessTokenResponse {
22
22
  /**
23
23
  * 批量发送机器人消息的消息类型
24
24
  */
25
- export declare type RobotMsgKey = 'sampleMarkdown';
25
+ export type RobotMsgKey = 'sampleMarkdown';
26
26
  /**
27
27
  * 批量发送机器人消息请求参数
28
28
  * @see POST /v1.0/robot/oToMessages/batchSend
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chen0825/aiapp-ability",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "aiapp能力包",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "scripts": {
8
8
  "start": "tsc -w",
9
9
  "build": "tsc",
10
- "release": "npm version patch --no-git-tag-version && npm publish"
10
+ "release": "npm version patch --no-git-tag-version && npm publish --access public"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",