kind-adt 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -505,10 +505,10 @@ ADTProto[Symbol.for("showify.inspect.custom")] = inspect;
505
505
 
506
506
  export const ADTConstructorProto = Object.create(PipeableFunctionProto);
507
507
  ADTConstructorProto.toJSON = function toJSON() {
508
- return { _tag: this.tag };
508
+ return { _tag: this._tag };
509
509
  };
510
510
  ADTConstructorProto[Symbol.for("nodejs.util.inspect.custom")] =
511
511
  function inspect() {
512
- return { _tag: this.tag };
512
+ return { _tag: this._tag };
513
513
  };
514
514
  ADTConstructorProto[Symbol.for("showify.inspect.custom")] = inspect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kind-adt",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "🪴 The kind of ADTs you can count on in TypeScript",
5
5
  "keywords": [
6
6
  "typescript",