@archtx/procedures 1.1.18 → 2.0.1

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.
@@ -11,7 +11,7 @@ export class ProcedureError extends Error {
11
11
  this.message = message;
12
12
  this.meta = meta;
13
13
  this.name = 'ProcedureError';
14
- // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
14
+ // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
15
15
  Object.setPrototypeOf(this, ProcedureError.prototype);
16
16
  }
17
17
  }
@@ -21,7 +21,7 @@ export class ProcedureHookError extends ProcedureError {
21
21
  super(procedureName, ProcedureCodes.PRECONDITION_FAILED, message);
22
22
  this.procedureName = procedureName;
23
23
  this.name = 'ProcedureHookError';
24
- // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
24
+ // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
25
25
  Object.setPrototypeOf(this, ProcedureHookError.prototype);
26
26
  }
27
27
  }
@@ -33,7 +33,7 @@ export class ProcedureValidationError extends ProcedureError {
33
33
  this.procedureName = procedureName;
34
34
  this.errors = errors;
35
35
  this.name = 'ProcedureValidationError';
36
- // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
36
+ // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
37
37
  Object.setPrototypeOf(this, ProcedureValidationError.prototype);
38
38
  }
39
39
  }
@@ -43,7 +43,7 @@ export class ProcedureRegistrationError extends Error {
43
43
  super(message);
44
44
  this.procedureName = procedureName;
45
45
  this.name = 'ProcedureRegistrationError';
46
- // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
46
+ // https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
47
47
  Object.setPrototypeOf(this, ProcedureRegistrationError.prototype);
48
48
  }
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,cAAe,SAAQ,KAAK;IAE5B;IACA;IACA;IACA;IAJX,YACW,aAAqB,EACrB,IAA6B,EAC7B,OAAe,EACf,IAAa;QAEtB,KAAK,CAAC,OAAO,CAAC,CAAA;QALL,kBAAa,GAAb,aAAa,CAAQ;QACrB,SAAI,GAAJ,IAAI,CAAyB;QAC7B,YAAO,GAAP,OAAO,CAAQ;QACf,SAAI,GAAJ,IAAI,CAAS;QAGtB,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAA;QAE5B,mMAAmM;QACnM,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACvD,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IAEzC;IADX,YACW,aAAqB,EAC9B,OAAe;QAEf,KAAK,CAAC,aAAa,EAAE,cAAc,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;QAHxD,kBAAa,GAAb,aAAa,CAAQ;QAI9B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAA;QAEhC,mMAAmM;QACnM,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAA;IAC3D,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAE/C;IAEA;IAHX,YACW,aAAqB,EAC9B,OAAe,EACN,M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