@dnax/core 0.29.0 → 0.30.0

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/app/index.ts CHANGED
@@ -117,7 +117,7 @@ async function runApp(config?: configRunApp, clb?: Function) {
117
117
  if (config?.afterStart) {
118
118
  for (const fn of config?.afterStart) {
119
119
  await fn({
120
- config: Object.freeze(Cfg),
120
+ config: utils.copy(Cfg),
121
121
  });
122
122
  }
123
123
  }
package/config/index.ts CHANGED
@@ -50,7 +50,9 @@ async function setCfg(config: Config) {
50
50
  }
51
51
 
52
52
  if (!Cfg?.server?.jwt?.secret) {
53
- let jwtSecret = await systemCache.get(".jwt.json");
53
+ let jwtSecret = await systemCache.get({
54
+ key: ".jwt.json",
55
+ });
54
56
  if (!jwtSecret) {
55
57
  jwtSecret = v4().replaceAll("-", "");
56
58
  await systemCache.set({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {