@tego/core 1.6.0-alpha.9 → 1.6.1-alpha.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/lib/helper.js CHANGED
@@ -76,6 +76,7 @@ function registerMiddlewares(app, options) {
76
76
  async (ctx, next) => {
77
77
  ctx.reqId = (0, import_node_crypto.randomUUID)();
78
78
  ctx.tego = app;
79
+ ctx.app = app;
79
80
  await next();
80
81
  },
81
82
  { tag: "UUID" }
package/lib/plugin.js CHANGED
@@ -202,7 +202,7 @@ const _Plugin = class _Plugin {
202
202
  (0, import_node_path.resolve)(resolvedPath, "../server/collections"),
203
203
  // src/index.ts -> src/server/collections
204
204
  (0, import_node_path.resolve)(resolvedPath, "../../server/collections"),
205
- // dist/index.js -> dist/../server/collections
205
+ // dist/index.js -> <project-root>/server/collections
206
206
  (0, import_node_path.resolve)(resolvedPath, "../../src/server/collections")
207
207
  // dist/index.js -> dist/../src/server/collections
208
208
  ];
@@ -233,7 +233,7 @@ const _Plugin = class _Plugin {
233
233
  });
234
234
  } else {
235
235
  this.app.logger.warn(
236
- `[Plugin.loadCollections] Collections directory for ${this.options.packageName} not found, skipping import. Notice this may a mistake.`,
236
+ `[Plugin.loadCollections] Collections directory for ${this.options.packageName} not found, skipping import. Notice this may be a mistake.`,
237
237
  {
238
238
  submodule: "Plugin",
239
239
  method: "loadCollections",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tego/core",
3
- "version": "1.6.0-alpha.9",
3
+ "version": "1.6.1-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -31,18 +31,18 @@
31
31
  "winston": "^3.17.0",
32
32
  "ws": "^8.18.3",
33
33
  "xpipe": "^1.0.8",
34
- "@tachybase/acl": "1.6.0-alpha.9",
35
- "@tachybase/auth": "1.6.0-alpha.9",
36
- "@tachybase/cache": "1.6.0-alpha.9",
37
- "@tachybase/data-source": "1.6.0-alpha.9",
38
- "@tachybase/actions": "1.6.0-alpha.9",
39
- "@tachybase/di": "1.6.0-alpha.9",
40
- "@tachybase/globals": "1.6.0-alpha.9",
41
- "@tachybase/database": "1.6.0-alpha.9",
42
- "@tachybase/loader": "1.6.0-alpha.9",
43
- "@tachybase/resourcer": "1.6.0-alpha.9",
44
- "@tachybase/logger": "1.6.0-alpha.9",
45
- "@tachybase/utils": "1.6.0-alpha.9"
34
+ "@tachybase/acl": "1.6.1-alpha.0",
35
+ "@tachybase/auth": "1.6.1-alpha.0",
36
+ "@tachybase/actions": "1.6.1-alpha.0",
37
+ "@tachybase/data-source": "1.6.1-alpha.0",
38
+ "@tachybase/database": "1.6.1-alpha.0",
39
+ "@tachybase/cache": "1.6.1-alpha.0",
40
+ "@tachybase/di": "1.6.1-alpha.0",
41
+ "@tachybase/globals": "1.6.1-alpha.0",
42
+ "@tachybase/loader": "1.6.1-alpha.0",
43
+ "@tachybase/utils": "1.6.1-alpha.0",
44
+ "@tachybase/logger": "1.6.1-alpha.0",
45
+ "@tachybase/resourcer": "1.6.1-alpha.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/fs-extra": "11.0.4",