@tachybase/module-env-secrets 1.5.1 → 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.
- package/dist/externalVersion.js +5 -5
- package/dist/server/plugin.js +4 -4
- package/package.json +7 -7
package/dist/externalVersion.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.
|
|
4
|
-
"@tachybase/schema": "1.
|
|
5
|
-
"@tego/server": "1.
|
|
6
|
-
"@ant-design/icons": "
|
|
7
|
-
"@tego/client": "1.
|
|
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
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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": "^
|
|
12
|
-
"@tachybase/schema": "1.
|
|
13
|
-
"@tachybase/test": "1.
|
|
14
|
-
"@tego/client": "1.
|
|
15
|
-
"@tego/server": "1.
|
|
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.
|
|
17
|
+
"@tachybase/client": "1.6.1"
|
|
18
18
|
},
|
|
19
19
|
"description.zh-CN": "集中管理环境变量和密钥,用于敏感数据存储、配置数据重用、多环境隔离等。",
|
|
20
20
|
"displayName.zh-CN": "变量和密钥"
|