@nattyjs/common 0.0.1-beta.41 → 0.0.1-beta.43

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/index.cjs CHANGED
@@ -284,9 +284,6 @@ class AuthorizationFilter {
284
284
  }
285
285
 
286
286
  class ActionFilter {
287
- onModelBinding(context) {
288
- return;
289
- }
290
287
  onActionExecuting(context) {
291
288
  return;
292
289
  }
@@ -687,13 +684,19 @@ class ConsoleLogger extends AbstractConsoleLogger {
687
684
 
688
685
  function typed() {
689
686
  return function(OriginalClass) {
690
- return class extends OriginalClass {
687
+ const extendedClass = class extends OriginalClass {
691
688
  constructor(...args) {
692
689
  super(...args);
693
690
  const typeInfo = commonContainer.types[OriginalClass.name];
694
691
  defineProps(this, typeInfo?.props, OriginalClass.name);
695
692
  }
696
693
  };
694
+ delete extendedClass.name;
695
+ Object.defineProperty(extendedClass, "name", {
696
+ value: OriginalClass.name,
697
+ writable: false
698
+ });
699
+ return extendedClass;
697
700
  };
698
701
  }
699
702
  const types = ["string", "number", "boolean"];
package/dist/index.d.ts CHANGED
@@ -34,7 +34,6 @@ interface IActionExecutingContext extends IExecutionContext {
34
34
  }
35
35
 
36
36
  declare abstract class ActionFilter {
37
- onModelBinding(context: IActionExecutingContext): Promise<void>;
38
37
  onActionExecuting(context: IActionExecutingContext): Promise<void>;
39
38
  onActionExecuted(context: IActionExecutedContext): Promise<void>;
40
39
  }
package/dist/index.mjs CHANGED
@@ -267,9 +267,6 @@ class AuthorizationFilter {
267
267
  }
268
268
 
269
269
  class ActionFilter {
270
- onModelBinding(context) {
271
- return;
272
- }
273
270
  onActionExecuting(context) {
274
271
  return;
275
272
  }
@@ -670,13 +667,19 @@ class ConsoleLogger extends AbstractConsoleLogger {
670
667
 
671
668
  function typed() {
672
669
  return function(OriginalClass) {
673
- return class extends OriginalClass {
670
+ const extendedClass = class extends OriginalClass {
674
671
  constructor(...args) {
675
672
  super(...args);
676
673
  const typeInfo = commonContainer.types[OriginalClass.name];
677
674
  defineProps(this, typeInfo?.props, OriginalClass.name);
678
675
  }
679
676
  };
677
+ delete extendedClass.name;
678
+ Object.defineProperty(extendedClass, "name", {
679
+ value: OriginalClass.name,
680
+ writable: false
681
+ });
682
+ return extendedClass;
680
683
  };
681
684
  }
682
685
  const types = ["string", "number", "boolean"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.41",
3
+ "version": "0.0.1-beta.43",
4
4
  "description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
5
5
  "keywords": [],
6
6
  "author": "ajayojha <ojhaajay@outlook.com>",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "20.3.1",
24
- "@nattyjs/types": "0.0.1-beta.41",
24
+ "@nattyjs/types": "0.0.1-beta.43",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }