@clipboard-health/util-ts 0.11.6 → 1.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.7...util-ts-1.0.0) (2024-01-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* Add 422 response code to CbhError (#497)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* Add 422 response code to CbhError ([#497](https://github.com/ClipboardHealth/cbh-core/issues/497)) ([e1695bb](https://github.com/ClipboardHealth/cbh-core/commit/e1695bbcd31ec6db50ac4c07f3d49588999bc436)), closes [4#f184ccb3923a4af4bbb6ee82914a4ff5](https://github.com/ClipboardHealth/4/issues/f184ccb3923a4af4bbb6ee82914a4ff5)
|
|
15
|
+
|
|
16
|
+
## [0.11.7](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.6...util-ts-0.11.7) (2023-12-07)
|
|
17
|
+
|
|
5
18
|
## [0.11.6](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.5...util-ts-0.11.6) (2023-12-07)
|
|
6
19
|
|
|
7
20
|
## [0.11.5](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.4...util-ts-0.11.5) (2023-12-04)
|
package/package.json
CHANGED
package/src/lib/attributes.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type AttributeValue = boolean | Date | number | string | Uint8Array;
|
|
1
|
+
export type AttributeValue = boolean | Date | number | string | Uint8Array | undefined;
|
|
2
2
|
export type Attributes = Record<string, AttributeValue>;
|
|
3
|
-
export type MaybeAttributes = Record<string, AttributeValue | undefined>;
|
|
4
3
|
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/attributes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/attributes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
|
package/src/lib/cbh-error.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type OneOrNonEmptyArray } from "./non-empty-array";
|
|
2
|
-
declare const ERROR_STATUS_CODES: readonly [400, 401, 403, 404, 409, 429, 500];
|
|
2
|
+
declare const ERROR_STATUS_CODES: readonly [400, 401, 403, 404, 409, 422, 429, 500];
|
|
3
3
|
export type ErrorStatusCode = (typeof ERROR_STATUS_CODES)[number];
|
|
4
4
|
export interface CbhIssue {
|
|
5
5
|
cause?: Error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cbh-error.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAE7E,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"cbh-error.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAE7E,QAAA,MAAM,kBAAkB,mDAAoD,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,MAAM,EAAE,QAAQ,EAAE,CAAC;gBAEvB,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC;CAUjD"}
|
package/src/lib/cbh-error.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CbhError = void 0;
|
|
4
4
|
const non_empty_array_1 = require("./non-empty-array");
|
|
5
|
-
const ERROR_STATUS_CODES = [400, 401, 403, 404, 409, 429, 500];
|
|
5
|
+
const ERROR_STATUS_CODES = [400, 401, 403, 404, 409, 422, 429, 500];
|
|
6
6
|
class CbhError extends Error {
|
|
7
7
|
issues;
|
|
8
8
|
constructor(issues) {
|
package/src/lib/cbh-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cbh-error.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":";;;AAAA,uDAA6E;AAE7E,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cbh-error.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":";;;AAAA,uDAA6E;AAE7E,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;AAU7E,MAAa,QAAS,SAAQ,KAAK;IACjB,MAAM,CAAa;IAEnC,YAAY,MAAoC;QAC9C,MAAM,EAAE,GAAG,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC;QACnC,MAAM,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/C,6FAA6F;QAC7F,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAElD,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAbD,4BAaC"}
|