@takeshape/errors 11.41.0 → 11.43.0

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.
@@ -1,14 +1,14 @@
1
1
  import { BaseError, type BaseErrorOptions } from './base-error';
2
2
  type SchemaBuildErrorOptions = {
3
3
  cause?: Error;
4
- record?: Record<string, unknown>;
4
+ schema?: unknown;
5
5
  };
6
6
  export declare class SchemaBuildError extends BaseError {
7
7
  static code: string;
8
8
  static statusCode: number;
9
- record?: Record<string, unknown>;
9
+ schema?: unknown;
10
10
  cause?: Error;
11
- constructor(message?: string, { cause, record, ...options }?: BaseErrorOptions & SchemaBuildErrorOptions);
11
+ constructor(message?: string, { cause, schema, ...options }?: BaseErrorOptions & SchemaBuildErrorOptions);
12
12
  }
13
13
  export {};
14
14
  //# sourceMappingURL=schema-build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-build.d.ts","sourceRoot":"","sources":["../../src/schema-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9D,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAuB,IAAI,SAAsB;IACjD,OAAuB,UAAU,SAAO;IAEjC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;gBAG5B,OAAO,SAAgD,EACvD,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,EAAC,GAAE,gBAAgB,GAAG,uBAA4B;CAO/E"}
1
+ {"version":3,"file":"schema-build.d.ts","sourceRoot":"","sources":["../../src/schema-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9D,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAuB,IAAI,SAAsB;IACjD,OAAuB,UAAU,SAAO;IAEjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACR,KAAK,CAAC,EAAE,KAAK,CAAC;gBAG5B,OAAO,SAAgD,EACvD,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,EAAC,GAAE,gBAAgB,GAAG,uBAA4B;CAO/E"}
@@ -11,13 +11,13 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
11
11
  class SchemaBuildError extends _baseError.BaseError {
12
12
  constructor(message = 'An error occurred while building the schema', {
13
13
  cause,
14
- record,
14
+ schema,
15
15
  ...options
16
16
  } = {}) {
17
17
  super(message, options);
18
- _defineProperty(this, "record", void 0);
18
+ _defineProperty(this, "schema", void 0);
19
19
  _defineProperty(this, "cause", void 0);
20
- this.record = record;
20
+ this.schema = schema;
21
21
  this.cause = cause;
22
22
  this.stack = cause?.stack;
23
23
  }
@@ -5,13 +5,13 @@ import { BaseError } from './base-error';
5
5
  export class SchemaBuildError extends BaseError {
6
6
  constructor(message = 'An error occurred while building the schema', {
7
7
  cause,
8
- record,
8
+ schema,
9
9
  ...options
10
10
  } = {}) {
11
11
  super(message, options);
12
- _defineProperty(this, "record", void 0);
12
+ _defineProperty(this, "schema", void 0);
13
13
  _defineProperty(this, "cause", void 0);
14
- this.record = record;
14
+ this.schema = schema;
15
15
  this.cause = cause;
16
16
  this.stack = cause?.stack;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/errors",
3
- "version": "11.41.0",
3
+ "version": "11.43.0",
4
4
  "description": "Custom error objects.",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {