@ives_xxz/framework 2.1.39 → 2.1.40

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/Framework.ts CHANGED
@@ -26,10 +26,7 @@ export class Framework implements FW.Framework {
26
26
  return this.container.get<T>(serviceIdentifier);
27
27
  }
28
28
  } else if (typeof serviceIdentifier === "function") {
29
- const className =
30
- cc.js.getClassName(serviceIdentifier) || serviceIdentifier?.name;
31
-
32
- if (!className) return undefined;
29
+ const className = serviceIdentifier?.name;
33
30
 
34
31
  if (this.container.isBound(serviceIdentifier)) {
35
32
  return this.container.get<T>(serviceIdentifier);
@@ -217,7 +214,9 @@ export class Framework implements FW.Framework {
217
214
  (reg) =>
218
215
  reg.logic === data.logic &&
219
216
  reg.data === data.data &&
220
- reg.config === data.config,
217
+ reg.config === data.config &&
218
+ reg.sender === data.sender &&
219
+ reg.handle === data.handle,
221
220
  );
222
221
 
223
222
  if (!exists) {
@@ -233,7 +232,9 @@ export class Framework implements FW.Framework {
233
232
  (reg) =>
234
233
  reg.logic === data.logic &&
235
234
  reg.data === data.data &&
236
- reg.config === data.config,
235
+ reg.config === data.config &&
236
+ reg.sender === data.sender &&
237
+ reg.handle === data.handle,
237
238
  );
238
239
 
239
240
  if (index !== -1) {
package/FrameworkBase.ts CHANGED
@@ -34,7 +34,7 @@ export abstract class FrameworkBase {
34
34
  }
35
35
 
36
36
  protected get moduleName(): string {
37
- return this.constructor.name;
37
+ return cc.js.getClassName(this);
38
38
  }
39
39
 
40
40
  public getLogic<T extends FW.Logic = FW.Logic>() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "2.1.39",
3
+ "version": "2.1.40",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": [