@dereekb/util 13.9.0 → 13.10.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/fetch/index.cjs.js +1 -1
- package/fetch/index.esm.js +1 -1
- package/fetch/package.json +2 -2
- package/index.cjs.js +491 -324
- package/index.esm.js +488 -325
- package/package.json +1 -1
- package/src/lib/array/array.boolean.d.ts +4 -0
- package/src/lib/array/array.number.d.ts +3 -0
- package/src/lib/auth/auth.role.claims.d.ts +5 -0
- package/src/lib/auth/auth.role.d.ts +5 -0
- package/src/lib/boolean.d.ts +4 -0
- package/src/lib/contact/domain.d.ts +5 -0
- package/src/lib/contact/email.d.ts +10 -0
- package/src/lib/contact/phone.d.ts +10 -0
- package/src/lib/date/date.d.ts +77 -0
- package/src/lib/date/date.time.d.ts +4 -0
- package/src/lib/date/date.unix.d.ts +4 -0
- package/src/lib/date/hour.d.ts +8 -0
- package/src/lib/encryption/encryption.object.d.ts +4 -0
- package/src/lib/error/error.d.ts +4 -0
- package/src/lib/file/file.d.ts +4 -0
- package/src/lib/file/xml.d.ts +4 -0
- package/src/lib/hash.d.ts +4 -0
- package/src/lib/model/model.d.ts +20 -0
- package/src/lib/number/bitwise.dencoder.d.ts +8 -0
- package/src/lib/number/dollar.d.ts +31 -0
- package/src/lib/number/encoded.d.ts +8 -0
- package/src/lib/number/number.d.ts +15 -0
- package/src/lib/number/pay.d.ts +8 -0
- package/src/lib/number/round.d.ts +10 -0
- package/src/lib/object/object.d.ts +4 -0
- package/src/lib/page/page.d.ts +5 -0
- package/src/lib/path/path.d.ts +8 -0
- package/src/lib/promise/promise.d.ts +5 -0
- package/src/lib/relation/relation.d.ts +10 -0
- package/src/lib/sort.d.ts +3 -0
- package/src/lib/storage/storage.d.ts +9 -0
- package/src/lib/string/case.d.ts +28 -0
- package/src/lib/string/dencoder.d.ts +12 -0
- package/src/lib/string/html.d.ts +20 -0
- package/src/lib/string/index.d.ts +1 -0
- package/src/lib/string/json.d.ts +4 -0
- package/src/lib/string/mimetype.d.ts +12 -0
- package/src/lib/string/password.d.ts +4 -0
- package/src/lib/string/prefix.d.ts +36 -0
- package/src/lib/string/tree.d.ts +4 -0
- package/src/lib/string/url.d.ts +32 -0
- package/src/lib/value/address.d.ts +35 -0
- package/src/lib/value/cron.d.ts +4 -0
- package/src/lib/value/indexed.d.ts +4 -0
- package/src/lib/value/modifier.d.ts +4 -0
- package/src/lib/value/pixel.d.ts +14 -0
- package/src/lib/value/point.d.ts +11 -0
- package/src/lib/value/zoom.d.ts +4 -0
- package/test/package.json +2 -2
package/fetch/index.cjs.js
CHANGED
|
@@ -1122,7 +1122,7 @@ function fetchFileFromUrl(input, safe) {
|
|
|
1122
1122
|
*/ function parseFetchFileResponse(response) {
|
|
1123
1123
|
var rawContentType = response.headers.get('content-type');
|
|
1124
1124
|
var parseContentTypeResult = fastContentTypeParse.safeParse(rawContentType !== null && rawContentType !== void 0 ? rawContentType : '');
|
|
1125
|
-
var contentType = parseContentTypeResult.type
|
|
1125
|
+
var contentType = parseContentTypeResult.type === '' ? undefined : parseContentTypeResult;
|
|
1126
1126
|
return {
|
|
1127
1127
|
response: response,
|
|
1128
1128
|
rawContentType: rawContentType,
|
package/fetch/index.esm.js
CHANGED
|
@@ -1120,7 +1120,7 @@ function fetchFileFromUrl(input, safe) {
|
|
|
1120
1120
|
*/ function parseFetchFileResponse(response) {
|
|
1121
1121
|
var rawContentType = response.headers.get('content-type');
|
|
1122
1122
|
var parseContentTypeResult = safeParse(rawContentType !== null && rawContentType !== void 0 ? rawContentType : '');
|
|
1123
|
-
var contentType = parseContentTypeResult.type
|
|
1123
|
+
var contentType = parseContentTypeResult.type === '' ? undefined : parseContentTypeResult;
|
|
1124
1124
|
return {
|
|
1125
1125
|
response: response,
|
|
1126
1126
|
rawContentType: rawContentType,
|
package/fetch/package.json
CHANGED