@nattyjs/common 0.0.1-beta.42 → 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
@@ -684,13 +684,19 @@ class ConsoleLogger extends AbstractConsoleLogger {
684
684
 
685
685
  function typed() {
686
686
  return function(OriginalClass) {
687
- return class extends OriginalClass {
687
+ const extendedClass = class extends OriginalClass {
688
688
  constructor(...args) {
689
689
  super(...args);
690
690
  const typeInfo = commonContainer.types[OriginalClass.name];
691
691
  defineProps(this, typeInfo?.props, OriginalClass.name);
692
692
  }
693
693
  };
694
+ delete extendedClass.name;
695
+ Object.defineProperty(extendedClass, "name", {
696
+ value: OriginalClass.name,
697
+ writable: false
698
+ });
699
+ return extendedClass;
694
700
  };
695
701
  }
696
702
  const types = ["string", "number", "boolean"];
package/dist/index.mjs CHANGED
@@ -667,13 +667,19 @@ class ConsoleLogger extends AbstractConsoleLogger {
667
667
 
668
668
  function typed() {
669
669
  return function(OriginalClass) {
670
- return class extends OriginalClass {
670
+ const extendedClass = class extends OriginalClass {
671
671
  constructor(...args) {
672
672
  super(...args);
673
673
  const typeInfo = commonContainer.types[OriginalClass.name];
674
674
  defineProps(this, typeInfo?.props, OriginalClass.name);
675
675
  }
676
676
  };
677
+ delete extendedClass.name;
678
+ Object.defineProperty(extendedClass, "name", {
679
+ value: OriginalClass.name,
680
+ writable: false
681
+ });
682
+ return extendedClass;
677
683
  };
678
684
  }
679
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.42",
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.42",
24
+ "@nattyjs/types": "0.0.1-beta.43",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }