Merge pull request #11798 from backstage/renovate/typescript-4.x

chore(deps): update dependency typescript to ~4.7.0
This commit is contained in:
Fredrik Adelöw
2022-06-08 15:59:47 +02:00
committed by GitHub
5 changed files with 24 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Handle URLs as the first argument to `fetchApi`, when using the `plugin:` protocol
+1 -1
View File
@@ -76,7 +76,7 @@
"semver": "^7.3.2",
"shx": "^0.3.2",
"ts-node": "^10.4.0",
"typescript": "~4.6.4",
"typescript": "~4.7.0",
"yarn-lock-check": "^1.0.5"
},
"prettier": "@spotify/prettier-config",
@@ -55,7 +55,14 @@ export class PluginProtocolResolverFetchMiddleware implements FetchMiddleware {
}
const target = `${join(base, pathname)}${search}${hash}`;
return next(target, typeof input === 'string' ? init : input);
return next(
target,
typeof input === 'string' || isUrl(input) ? init : input,
);
};
}
}
function isUrl(a: unknown): a is URL {
return typeof a === 'object' && a?.constructor === URL;
}
+4 -6
View File
@@ -73,12 +73,10 @@ export class Generators implements GeneratorBuilder {
export const getDocFilesFromRepository: (
reader: UrlReader,
entity: Entity,
opts?:
| {
etag?: string | undefined;
logger?: Logger | undefined;
}
| undefined,
opts?: {
etag?: string;
logger?: Logger;
},
) => Promise<PreparerResponse>;
// @public
+6 -1
View File
@@ -24959,11 +24959,16 @@ typescript-json-schema@^0.53.0:
typescript "~4.6.0"
yargs "^17.1.1"
typescript@~4.6.0, typescript@~4.6.3, typescript@~4.6.4:
typescript@~4.6.0, typescript@~4.6.3:
version "4.6.4"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
typescript@~4.7.0:
version "4.7.2"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.7.2.tgz#1f9aa2ceb9af87cca227813b4310fff0b51593c4"
integrity sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==
ua-parser-js@^0.7.18:
version "0.7.28"
resolved "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31"