@clipboard-health/util-ts 2.1.0 → 2.1.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.
- package/package.json +5 -2
- package/src/lib/head.js +1 -1
- package/src/lib/head.js.map +1 -1
- package/CHANGELOG.md +0 -220
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/util-ts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "restricted"
|
|
7
|
+
},
|
|
5
8
|
"scripts": {
|
|
6
9
|
"build": "nx build util-ts",
|
|
7
10
|
"lint": "nx lint util-ts",
|
|
8
11
|
"test": "nx test util-ts"
|
|
9
12
|
},
|
|
10
13
|
"type": "commonjs"
|
|
11
|
-
}
|
|
14
|
+
}
|
package/src/lib/head.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.head = head;
|
|
4
4
|
function head(value) {
|
|
5
|
-
return Array.isArray(value) ? value[0] : value ?? undefined;
|
|
5
|
+
return Array.isArray(value) ? value[0] : (value ?? undefined);
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=head.js.map
|
package/src/lib/head.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"head.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/head.ts"],"names":[],"mappings":";;AAEA,oBAEC;AAFD,SAAgB,IAAI,CAAI,KAAqB;IAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"head.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/head.ts"],"names":[],"mappings":";;AAEA,oBAEC;AAFD,SAAgB,IAAI,CAAI,KAAqB;IAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC;AAChE,CAAC"}
|
package/CHANGELOG.md
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
|
-
|
|
5
|
-
## [2.1.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-2.0.1...util-ts-2.1.0) (2024-07-30)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* add delay ([0603228](https://github.com/ClipboardHealth/cbh-core/commit/0603228e6e1dce079d251d94744cce728db29135))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
* add delay back to background-jobs-mongo ([07a1709](https://github.com/ClipboardHealth/cbh-core/commit/07a1709c76018b7035f38edaa8cf6b43ef1265af))
|
|
16
|
-
|
|
17
|
-
## [2.0.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-2.0.0...util-ts-2.0.1) (2024-07-18)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Bug Fixes
|
|
21
|
-
|
|
22
|
-
* add build postTarget ([#692](https://github.com/ClipboardHealth/cbh-core/issues/692)) ([3b42efb](https://github.com/ClipboardHealth/cbh-core/commit/3b42efb603572c7a273c8eedd554773c6a364acf))
|
|
23
|
-
|
|
24
|
-
## [2.0.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.2.1...util-ts-2.0.0) (2024-07-18)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### ⚠ BREAKING CHANGES
|
|
28
|
-
|
|
29
|
-
* upgrade Nx to v18 (#690)
|
|
30
|
-
|
|
31
|
-
### Code Refactoring
|
|
32
|
-
|
|
33
|
-
* upgrade Nx to v18 ([#690](https://github.com/ClipboardHealth/cbh-core/issues/690)) ([e6dd982](https://github.com/ClipboardHealth/cbh-core/commit/e6dd982db39022a72dfbf888f707768bae834ccb))
|
|
34
|
-
|
|
35
|
-
## [1.2.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.2.0...util-ts-1.2.1) (2024-07-12)
|
|
36
|
-
|
|
37
|
-
## [1.2.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.2.0...util-ts-1.2.1) (2024-07-11)
|
|
38
|
-
|
|
39
|
-
## [1.2.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.2.0...util-ts-1.2.1) (2024-07-11)
|
|
40
|
-
|
|
41
|
-
## [1.2.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.2.0...util-ts-1.2.1) (2024-07-11)
|
|
42
|
-
|
|
43
|
-
## [1.2.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.1.0...util-ts-1.2.0) (2024-05-08)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
* add more utils ([#624](https://github.com/ClipboardHealth/cbh-core/issues/624)) ([282ec68](https://github.com/ClipboardHealth/cbh-core/commit/282ec68d285ac0007032eb57d5e16177ef380e30))
|
|
49
|
-
|
|
50
|
-
## [1.1.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-1.0.0...util-ts-1.1.0) (2024-01-24)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Features
|
|
54
|
-
|
|
55
|
-
* **money:** add clamp operation ([#515](https://github.com/ClipboardHealth/cbh-core/issues/515)) ([1e92217](https://github.com/ClipboardHealth/cbh-core/commit/1e92217cc5d44762ddaffbe5467398f3b6653744))
|
|
56
|
-
|
|
57
|
-
## [1.0.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.7...util-ts-1.0.0) (2024-01-10)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### ⚠ BREAKING CHANGES
|
|
61
|
-
|
|
62
|
-
* Add 422 response code to CbhError (#497)
|
|
63
|
-
|
|
64
|
-
### Features
|
|
65
|
-
|
|
66
|
-
* 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)
|
|
67
|
-
|
|
68
|
-
## [0.11.7](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.6...util-ts-0.11.7) (2023-12-07)
|
|
69
|
-
|
|
70
|
-
## [0.11.6](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.5...util-ts-0.11.6) (2023-12-07)
|
|
71
|
-
|
|
72
|
-
## [0.11.5](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.4...util-ts-0.11.5) (2023-12-04)
|
|
73
|
-
|
|
74
|
-
## [0.11.4](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.3...util-ts-0.11.4) (2023-11-06)
|
|
75
|
-
|
|
76
|
-
## [0.11.3](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.2...util-ts-0.11.3) (2023-11-06)
|
|
77
|
-
|
|
78
|
-
## [0.11.2](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.1...util-ts-0.11.2) (2023-11-06)
|
|
79
|
-
|
|
80
|
-
## [0.11.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.11.0...util-ts-0.11.1) (2023-09-29)
|
|
81
|
-
|
|
82
|
-
## [0.11.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.10.0...util-ts-0.11.0) (2023-09-24)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
### Features
|
|
86
|
-
|
|
87
|
-
* add api-nestjs ([8e6a1bb](https://github.com/ClipboardHealth/cbh-core/commit/8e6a1bbc2cf24d876ae098f4977f96a70a815b5b))
|
|
88
|
-
|
|
89
|
-
## [0.10.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.9.1...util-ts-0.10.0) (2023-09-14)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Features
|
|
93
|
-
|
|
94
|
-
* add identity function to util-ts ([#314](https://github.com/ClipboardHealth/cbh-core/issues/314)) ([7ba2f98](https://github.com/ClipboardHealth/cbh-core/commit/7ba2f98db8550cef89cd9b1e8631ec6902f46058))
|
|
95
|
-
|
|
96
|
-
## [0.9.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.9.0...util-ts-0.9.1) (2023-08-18)
|
|
97
|
-
|
|
98
|
-
## [0.9.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.8.0...util-ts-0.9.0) (2023-08-14)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Features
|
|
102
|
-
|
|
103
|
-
* add typed API relationships, add pagination and API error examples ([#256](https://github.com/ClipboardHealth/cbh-core/issues/256)) ([81377e3](https://github.com/ClipboardHealth/cbh-core/commit/81377e357af447c764ed668196a5c025e35aff35))
|
|
104
|
-
|
|
105
|
-
## [0.8.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.7.4...util-ts-0.8.0) (2023-08-10)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Features
|
|
109
|
-
|
|
110
|
-
* add API errors with helpers to create them from CbhError ([#252](https://github.com/ClipboardHealth/cbh-core/issues/252)) ([0efb42a](https://github.com/ClipboardHealth/cbh-core/commit/0efb42a9ef44831bf08b05a6ae19a55cfc38742a))
|
|
111
|
-
|
|
112
|
-
## [0.7.4](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.7.3...util-ts-0.7.4) (2023-07-12)
|
|
113
|
-
|
|
114
|
-
## [0.7.3](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.7.2...util-ts-0.7.3) (2023-07-10)
|
|
115
|
-
|
|
116
|
-
## [0.7.2](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.7.1...util-ts-0.7.2) (2023-07-07)
|
|
117
|
-
|
|
118
|
-
## [0.7.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.7.0...util-ts-0.7.1) (2023-07-05)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
### Bug Fixes
|
|
122
|
-
|
|
123
|
-
* export to-error, is-string, and stringify ([#191](https://github.com/ClipboardHealth/cbh-core/issues/191)) ([b89fd79](https://github.com/ClipboardHealth/cbh-core/commit/b89fd79b954c70b4469506ce96982cce9cf40137))
|
|
124
|
-
|
|
125
|
-
## [0.7.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.6.1...util-ts-0.7.0) (2023-07-05)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Features
|
|
129
|
-
|
|
130
|
-
* Add `isDefined` utility function ([#183](https://github.com/ClipboardHealth/cbh-core/issues/183)) ([335e94b](https://github.com/ClipboardHealth/cbh-core/commit/335e94ba37eb969a5c325e012afa86188b3bce59))
|
|
131
|
-
|
|
132
|
-
## [0.6.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.6.0...util-ts-0.6.1) (2023-07-05)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Bug Fixes
|
|
136
|
-
|
|
137
|
-
* sonarcloud code smells, reduce duplication ([#182](https://github.com/ClipboardHealth/cbh-core/issues/182)) ([5fd9bb6](https://github.com/ClipboardHealth/cbh-core/commit/5fd9bb6c2f79033ac0adaa8168a24835e24abc8b))
|
|
138
|
-
|
|
139
|
-
## [0.6.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.9...util-ts-0.6.0) (2023-07-05)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
### Features
|
|
143
|
-
|
|
144
|
-
* add toError, toErrorMessage, stringify, and isString to util-ts ([#181](https://github.com/ClipboardHealth/cbh-core/issues/181)) ([149390a](https://github.com/ClipboardHealth/cbh-core/commit/149390ab5e35852accbcf38245eb69e25a1f5323))
|
|
145
|
-
|
|
146
|
-
## [0.5.9](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.8...util-ts-0.5.9) (2023-06-23)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Bug Fixes
|
|
150
|
-
|
|
151
|
-
* Prevent NX from modifying package.json ([#158](https://github.com/ClipboardHealth/cbh-core/issues/158)) ([9744a00](https://github.com/ClipboardHealth/cbh-core/commit/9744a0028942aa4cfb61646af9153ab1ef8594a2))
|
|
152
|
-
|
|
153
|
-
## [0.5.8](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.7...util-ts-0.5.8) (2023-06-01)
|
|
154
|
-
|
|
155
|
-
## [0.5.7](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.6...util-ts-0.5.7) (2023-05-25)
|
|
156
|
-
|
|
157
|
-
## [0.5.6](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.5...util-ts-0.5.6) (2023-05-24)
|
|
158
|
-
|
|
159
|
-
## [0.5.5](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.4...util-ts-0.5.5) (2023-05-19)
|
|
160
|
-
|
|
161
|
-
## [0.5.4](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.3...util-ts-0.5.4) (2023-05-17)
|
|
162
|
-
|
|
163
|
-
## [0.5.3](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.2...util-ts-0.5.3) (2023-05-16)
|
|
164
|
-
|
|
165
|
-
## [0.5.2](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.1...util-ts-0.5.2) (2023-05-15)
|
|
166
|
-
|
|
167
|
-
## [0.5.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.5.0...util-ts-0.5.1) (2023-05-14)
|
|
168
|
-
|
|
169
|
-
## [0.5.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.4.0...util-ts-0.5.0) (2023-05-09)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
### Features
|
|
173
|
-
|
|
174
|
-
* add TypeDoc ([#44](https://github.com/ClipboardHealth/cbh-core/issues/44)) ([fd3d1ba](https://github.com/ClipboardHealth/cbh-core/commit/fd3d1ba8f38ef61a47ff8163bd1b21e034016484))
|
|
175
|
-
|
|
176
|
-
## [0.4.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.4...util-ts-0.4.0) (2023-05-09)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### Features
|
|
180
|
-
|
|
181
|
-
* allow `message-producer` clients to pass arbitrary message attributes ([#43](https://github.com/ClipboardHealth/cbh-core/issues/43)) ([2e94876](https://github.com/ClipboardHealth/cbh-core/commit/2e94876e286da9bcf08b0345bd36316538843178))
|
|
182
|
-
|
|
183
|
-
## [0.3.4](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.3...util-ts-0.3.4) (2023-04-28)
|
|
184
|
-
|
|
185
|
-
## [0.3.3](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.2...util-ts-0.3.3) (2023-04-26)
|
|
186
|
-
|
|
187
|
-
## [0.3.2](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.1...util-ts-0.3.2) (2023-04-26)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
### Bug Fixes
|
|
191
|
-
|
|
192
|
-
* allow empty array in ConsumeRequest ([2271707](https://github.com/ClipboardHealth/cbh-core/commit/22717070aa8b3ca7158adf6f26afef0b37212fb6))
|
|
193
|
-
|
|
194
|
-
## [0.3.1](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.0...util-ts-0.3.1) (2023-04-24)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Bug Fixes
|
|
198
|
-
|
|
199
|
-
* export types ([565f3a1](https://github.com/ClipboardHealth/cbh-core/commit/565f3a175c96836719a23c5597abec54eeb07362))
|
|
200
|
-
|
|
201
|
-
## [0.3.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.2.0...util-ts-0.3.0) (2023-04-24)
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### Features
|
|
205
|
-
|
|
206
|
-
* use XO ESLint config ([#26](https://github.com/ClipboardHealth/cbh-core/issues/26) ([ae385eb](https://github.com/ClipboardHealth/cbh-core/commit/ae385eb06d02a79f894e2f229731f2cf0aedffbd))
|
|
207
|
-
|
|
208
|
-
## [0.2.0](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.1.0...util-ts-0.2.0) (2023-04-24)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
### Features
|
|
212
|
-
|
|
213
|
-
* Add `MessageProducer` class ([#24](https://github.com/ClipboardHealth/cbh-core/issues/24)) ([6b9ca48](https://github.com/ClipboardHealth/cbh-core/commit/6b9ca4814a7e4e6e9dd876c3a74dc10f018b023b))
|
|
214
|
-
|
|
215
|
-
## 0.1.0 (2023-04-19)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
### Features
|
|
219
|
-
|
|
220
|
-
* **DEV-19:** implement `crypto-kms` lib ([#22](https://github.com/ClipboardHealth/cbh-core/issues/22)) ([79a19d3](https://github.com/ClipboardHealth/cbh-core/commit/79a19d30b340b39e792cb5bb7ee01fe178d6bd27))
|