@tachybase/module-env-secrets 1.6.0 → 1.6.1

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,9 +1,9 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.6.0",
4
- "@tachybase/schema": "1.3.52",
5
- "@tego/server": "1.3.52",
6
- "@ant-design/icons": "5.6.1",
7
- "@tego/client": "1.3.52",
3
+ "@tachybase/client": "1.6.1",
4
+ "@tachybase/schema": "1.6.0-alpha.9",
5
+ "@tego/server": "1.6.0-alpha.9",
6
+ "@ant-design/icons": "6.1.0",
7
+ "@tego/client": "1.6.0-alpha.9",
8
8
  "antd": "5.22.5"
9
9
  };
@@ -99,13 +99,13 @@ class PluginEnvironmentVariablesServer extends import_server.Plugin {
99
99
  for (const line of lines) {
100
100
  const equalIndex = line.indexOf("=");
101
101
  if (equalIndex === -1) {
102
- this.app.log.warn(`Invalid environment variable format: ${line}`);
102
+ this.app.logger.warn(`Invalid environment variable format: ${line}`);
103
103
  continue;
104
104
  }
105
105
  const key = line.slice(0, equalIndex).trim();
106
106
  const value = line.slice(equalIndex + 1).trim();
107
107
  if (!key) {
108
- this.app.log.warn(`Empty key found: ${line}`);
108
+ this.app.logger.warn(`Empty key found: ${line}`);
109
109
  continue;
110
110
  }
111
111
  if (!value) {
@@ -160,7 +160,7 @@ class PluginEnvironmentVariablesServer extends import_server.Plugin {
160
160
  const decrypted = await this.aesEncryptor.decrypt(model.value);
161
161
  model.set("value", decrypted);
162
162
  } catch (error) {
163
- this.app.log.error(error);
163
+ this.app.logger.error(error);
164
164
  }
165
165
  }
166
166
  this.app.environment.setVariable(model.name, model.value);
@@ -185,7 +185,7 @@ class PluginEnvironmentVariablesServer extends import_server.Plugin {
185
185
  const decrypted = await this.aesEncryptor.decrypt(model.value);
186
186
  model.set("value", decrypted);
187
187
  } catch (error) {
188
- this.app.log.error(error);
188
+ this.app.logger.error(error);
189
189
  }
190
190
  }
191
191
  this.app.environment.setVariable(model.name, model.value);
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@tachybase/module-env-secrets",
3
3
  "displayName": "Variables and secrets",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "description": "Centralized management of environment variables and secrets, used for sensitive data storage, configuration data reuse, multi-environment isolation, and more.",
6
6
  "keywords": [
7
7
  "System management"
8
8
  ],
9
9
  "main": "dist/server/index.js",
10
10
  "devDependencies": {
11
- "@ant-design/icons": "^5.6.1",
12
- "@tachybase/schema": "1.3.52",
13
- "@tachybase/test": "1.3.52",
14
- "@tego/client": "1.3.52",
15
- "@tego/server": "1.3.52",
11
+ "@ant-design/icons": "^6.1.0",
12
+ "@tachybase/schema": "1.6.0-alpha.9",
13
+ "@tachybase/test": "1.6.0-alpha.9",
14
+ "@tego/client": "1.6.0-alpha.9",
15
+ "@tego/server": "1.6.0-alpha.9",
16
16
  "antd": "5.22.5",
17
- "@tachybase/client": "1.6.0"
17
+ "@tachybase/client": "1.6.1"
18
18
  },
19
19
  "description.zh-CN": "集中管理环境变量和密钥,用于敏感数据存储、配置数据重用、多环境隔离等。",
20
20
  "displayName.zh-CN": "变量和密钥"