Skip to content

Commit 5109f9b

Browse files
chore(deps): update dependency typescript to v4.8.4 (#17988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jamie Magee <[email protected]>
1 parent 1eee2a4 commit 5109f9b

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

lib/modules/datasource/docker/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export class DockerDatasource extends Datasource {
570570
// OCI image lists are not required to specify a mediaType
571571
if (
572572
manifest.mediaType === MediaType.ociManifestIndexV1 ||
573-
(!manifest.mediaType && hasKey('manifests', manifest))
573+
(!manifest.mediaType && 'manifests' in manifest)
574574
) {
575575
if (manifest.manifests.length) {
576576
logger.trace(
@@ -594,7 +594,7 @@ export class DockerDatasource extends Datasource {
594594
// OCI manifests are not required to specify a mediaType
595595
if (
596596
(manifest.mediaType === MediaType.ociManifestV1 ||
597-
(!manifest.mediaType && hasKey('config', manifest))) &&
597+
(!manifest.mediaType && 'config' in manifest)) &&
598598
is.string(manifest.config?.digest)
599599
) {
600600
return manifest.config?.digest;
@@ -1042,7 +1042,7 @@ export class DockerDatasource extends Datasource {
10421042
manifestList.schemaVersion === 2 &&
10431043
(manifestList.mediaType === MediaType.manifestListV2 ||
10441044
manifestList.mediaType === MediaType.ociManifestIndexV1 ||
1045-
(!manifestList.mediaType && hasKey('manifests', manifestList)))
1045+
(!manifestList.mediaType && 'manifests' in manifestList))
10461046
) {
10471047
for (const manifest of manifestList.manifests) {
10481048
if (manifest.platform['architecture'] === architecture) {

lib/modules/platform/github/massage-markdown-links.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Content } from 'mdast';
22
import remark from 'remark';
33
import type { Plugin, Transformer } from 'unified';
44
import { logger } from '../../../logger';
5-
import { hasKey } from '../../../util/object';
65
import { regEx } from '../../../util/regex';
76

87
interface UrlMatch {
@@ -44,7 +43,7 @@ function collectLinkPosition(input: string, matches: UrlMatch[]): Plugin {
4443
const newUrl = massageLink(url);
4544
matches.push({ start, end, replaceTo: `[${url}](${newUrl})` });
4645
}
47-
} else if (hasKey('children', tree)) {
46+
} else if ('children' in tree) {
4847
tree.children.forEach((child: Content) => {
4948
transformer(child);
5049
});

lib/util/http/github.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,8 @@ export class GithubHttp extends Http<GithubHttpOptions> {
430430
});
431431
const repositoryData = res?.data?.repository;
432432
if (
433-
repositoryData &&
434-
is.plainObject(repositoryData) &&
435-
repositoryData[fieldName]
433+
is.nonEmptyObject(repositoryData) &&
434+
!is.nullOrUndefined(repositoryData[fieldName])
436435
) {
437436
optimalCount = count;
438437

lib/util/object.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export function hasKey<K extends string, T>(
99
k: K,
1010
o: T
1111
): o is T & Record<K, unknown> {
12-
return typeof o === 'object' && k in o;
12+
return o && typeof o === 'object' && k in o;
1313
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"ts-jest": "29.0.3",
308308
"ts-node": "10.9.1",
309309
"type-fest": "2.19.0",
310-
"typescript": "4.7.4",
310+
"typescript": "4.8.4",
311311
"unified": "9.2.2"
312312
},
313313
"resolutions": {

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -9259,10 +9259,10 @@ typedarray-to-buffer@^3.1.5:
92599259
dependencies:
92609260
is-typedarray "^1.0.0"
92619261

9262-
typescript@4.7.4:
9263-
version "4.7.4"
9264-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
9265-
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==
9262+
typescript@4.8.4:
9263+
version "4.8.4"
9264+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
9265+
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
92669266

92679267
uc.micro@^1.0.1, uc.micro@^1.0.5:
92689268
version "1.0.6"

0 commit comments

Comments
 (0)