@dereekb/util 9.24.24 → 9.24.26

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [9.24.26](https://github.com/dereekb/dbx-components/compare/v9.24.25-dev...v9.24.26) (2023-08-10)
6
+
7
+
8
+
9
+ ## [9.24.25](https://github.com/dereekb/dbx-components/compare/v9.24.24-dev...v9.24.25) (2023-08-07)
10
+
11
+
12
+
5
13
  ## [9.24.24](https://github.com/dereekb/dbx-components/compare/v9.24.23-dev...v9.24.24) (2023-08-05)
6
14
 
7
15
 
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [9.24.26](https://github.com/dereekb/dbx-components/compare/v9.24.25-dev...v9.24.26) (2023-08-10)
6
+
7
+
8
+
9
+ ## [9.24.25](https://github.com/dereekb/dbx-components/compare/v9.24.24-dev...v9.24.25) (2023-08-07)
10
+
11
+
12
+
5
13
  ## [9.24.24](https://github.com/dereekb/dbx-components/compare/v9.24.23-dev...v9.24.24) (2023-08-05)
6
14
 
7
15
 
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "9.24.24",
3
+ "version": "9.24.26",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
- "@dereekb/util": "9.24.24",
8
+ "@dereekb/util": "9.24.26",
9
9
  "lodash.isequal": "^4.5.0",
10
10
  "make-error": "^1.3.0",
11
11
  "class-validator": "^0.13.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "9.24.24",
3
+ "version": "9.24.26",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  ".": {
@@ -15,6 +15,7 @@ export interface ServerErrorResponseData extends ReadableError {
15
15
  export interface ServerError<T = ServerErrorResponseData> extends ReadableDataError<T> {
16
16
  status: number;
17
17
  }
18
+ export declare function isServerError(input: unknown): input is ServerError;
18
19
  export declare type ErrorMessageOrPartialServerError<T = ServerErrorResponseData> = string | Partial<ReadableDataError | ServerError<T>>;
19
20
  /**
20
21
  * Converts the input to a Partial ServerError
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnauthorizedServerErrorResponse = exports.ServerErrorResponse = exports.serverError = exports.partialServerError = void 0;
3
+ exports.UnauthorizedServerErrorResponse = exports.ServerErrorResponse = exports.serverError = exports.partialServerError = exports.isServerError = void 0;
4
+ function isServerError(input) {
5
+ return typeof input === 'object' && input.status != null && input.code != null;
6
+ }
7
+ exports.isServerError = isServerError;
4
8
  function partialServerError(messageOrError) {
5
9
  var _a;
6
10
  let serverError;
@@ -1 +1 @@
1
- {"version":3,"file":"error.server.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/error/error.server.ts"],"names":[],"mappings":";;;AA8BA,SAAgB,kBAAkB,CAA8B,cAA0D;;IACxH,IAAI,WAA2C,CAAC;IAEhD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,WAAW,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;KAC3C;SAAM;QACL,WAAW,GAAG,MAAC,cAA0C,mCAAI,EAAE,CAAC;KACjE;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAVD,gDAUC;AAID,SAAgB,WAAW,CAAI,MAAgC;IAC7D,uCACK,MAAM,KACT,IAAI,EAAE,MAAM,CAAC,IAAI,IACjB;AACJ,CAAC;AALD,kCAKC;AAED;;GAEG;AACH,MAAa,mBAAmB;IAM9B,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAkB;QACzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAZD,kDAYC;AAED,MAAa,+BAAgC,SAAQ,mBAAmB;IACtE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAwB;QACvD,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAJD,0EAIC"}
1
+ {"version":3,"file":"error.server.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/error/error.server.ts"],"names":[],"mappings":";;;AAoBA,SAAgB,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,KAAqB,CAAC,MAAM,IAAI,IAAI,IAAK,KAAqB,CAAC,IAAI,IAAI,IAAI,CAAC;AACnH,CAAC;AAFD,sCAEC;AAYD,SAAgB,kBAAkB,CAA8B,cAA0D;;IACxH,IAAI,WAA2C,CAAC;IAEhD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,WAAW,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;KAC3C;SAAM;QACL,WAAW,GAAG,MAAC,cAA0C,mCAAI,EAAE,CAAC;KACjE;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAVD,gDAUC;AAID,SAAgB,WAAW,CAAI,MAAgC;IAC7D,uCACK,MAAM,KACT,IAAI,EAAE,MAAM,CAAC,IAAI,IACjB;AACJ,CAAC;AALD,kCAKC;AAED;;GAEG;AACH,MAAa,mBAAmB;IAM9B,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAkB;QACzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAZD,kDAYC;AAED,MAAa,+BAAgC,SAAQ,mBAAmB;IACtE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAwB;QACvD,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAJD,0EAIC"}
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [9.24.26](https://github.com/dereekb/dbx-components/compare/v9.24.25-dev...v9.24.26) (2023-08-10)
6
+
7
+
8
+
9
+ ## [9.24.25](https://github.com/dereekb/dbx-components/compare/v9.24.24-dev...v9.24.25) (2023-08-07)
10
+
11
+
12
+
5
13
  ## [9.24.24](https://github.com/dereekb/dbx-components/compare/v9.24.23-dev...v9.24.24) (2023-08-05)
6
14
 
7
15
 
package/test/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "9.24.24",
3
+ "version": "9.24.26",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {},
8
8
  "peerDependencies": {
9
- "@dereekb/util": "9.24.24",
9
+ "@dereekb/util": "9.24.26",
10
10
  "lodash.isequal": "^4.5.0",
11
11
  "make-error": "^1.3.0",
12
12
  "class-validator": "^0.13.2",