Skip to content

Commit

Permalink
chore(deps-dev): Bump typescript from 3.9.10 to 4.6.3 (#585)
Browse files Browse the repository at this point in the history
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.10 to 4.6.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Microsoft/TypeScript/releases">typescript's releases</a>.</em></p>
<blockquote>
<h2>TypeScript 4.6.3</h2>
<p>This release includes fixes for</p>
<ul>
<li><a href="https://github-redirect.dependabot.com/microsoft/TypeScript/issues/47895">an incremental parsing bug caused by faulty error recovery logic</a></li>
<li><a href="https://github-redirect.dependabot.com/microsoft/TypeScript/pull/47657">improved results from the TypeScript API's <code>preProcessFile</code> function</a></li>
</ul>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.0%22+">fixed issues query for Typescript 4.6.0 (Beta)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.1%22+">fixed issues query for Typescript 4.6.1 (RC)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.2%22+">fixed issues query for Typescript 4.6.2 (Stable)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.3%22+">fixed issues query for Typescript 4.6.3 (Stable)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
</ul>
<h2>TypeScript 4.6.2</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.0%22+">fixed issues query for Typescript 4.6.0 (Beta)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.1%22+">fixed issues query for Typescript 4.6.1 (RC)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.2%22+">fixed issues query for Typescript 4.6.2 (Stable)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-46">Visual Studio 2022/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
<h2>TypeScript 4.6 RC</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-6-rc/">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.0%22+">fixed issues query for Typescript 4.5.0 (Beta)</a>.</li>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.1%22+">fixed issues query for Typescript 4.5.1 (RC)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-46rc">Visual Studio 2022/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
<h2>TypeScript 4.6 Beta</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-6-beta/">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.6.0+%28Beta%29%22+">fixed issues query for Typescript 4.6.0 (Beta)</a>.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/commit/2bed482323cda8d081d87084e9bf38aa335c2725"><code>2bed482</code></a> Bump version to 4.6.3 and LKG</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/cfdef9de7235ff9eb80b99be86850a65899d7f81"><code>cfdef9d</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47657">#47657</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/48223">#48223</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/e397ed1e387c19aa9c644fbc48b26dfddcfff8f1"><code>e397ed1</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/48207">#48207</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/48213">#48213</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/014dc3dc89754a738f2f470f8a523db31faade57"><code>014dc3d</code></a> 🤖 Pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/48067">#48067</a> (Fix incorrect parser error assumpti...) into release-4.6 (#...</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/78ee4cacafc20491fca5557da7908580df18db0e"><code>78ee4ca</code></a> 🤖 Pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47927">#47927</a> (Don't error if binding pattern type...) into release-4.6 (#...</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/f4fe064b384e988d8db8456f00c1588d05dfe28c"><code>f4fe064</code></a> Bump version to 4.6.2 and LKG</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/ec6ae0f26c2b8780b41abd74c6d38f9bf65e5ab6"><code>ec6ae0f</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47959">#47959</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47962">#47962</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/ded20c63fe1ccc3be28459e730428a2b70c43ec9"><code>ded20c6</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47953">#47953</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47957">#47957</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/57bd60818cefa8e817819bff6d9cfa5e4e1be03b"><code>57bd608</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47738">#47738</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47907">#47907</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/ea5a43a290d692337faebf044fabafe7eaebff93"><code>ea5a43a</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47830">#47830</a> into release-4.6 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/47928">#47928</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/Microsoft/TypeScript/compare/v3.9.10...v4.6.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=typescript&package-manager=npm_and_yarn&previous-version=3.9.10&new-version=4.6.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
  • Loading branch information
dependabot[bot] authored Apr 24, 2022
1 parent 3cc9000 commit 660ed33
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 34 deletions.
79 changes: 50 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"ts-node": "^10.7.0",
"ts-node-dev": "^1.1.8",
"tslint": "^6.1.3",
"typescript": "^3.9.10"
"typescript": "^4.6.3"
},
"prettier": "@relaycorp/shared-config/.prettierrc.json",
"repository": {
Expand Down
11 changes: 7 additions & 4 deletions src/app/pingSerialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function deserializePing(pingSerialized: Buffer): Ping {
try {
pda = deserializeCertificate(pingJson.pda);
} catch (err) {
throw new PingSerializationError(err, 'Invalid PDA');
throw new PingSerializationError(err as Error, 'Invalid PDA');
}

if (!Array.isArray(pingJson.pda_chain)) {
Expand All @@ -54,7 +54,7 @@ export function deserializePing(pingSerialized: Buffer): Ping {
try {
pdaChain = pingJson.pda_chain.map(deserializeCertificate);
} catch (err) {
throw new PingSerializationError(err, 'PDA chain contains invalid item');
throw new PingSerializationError(err as Error, 'PDA chain contains invalid item');
}

return { id: pingJson.id, pda, pdaChain };
Expand All @@ -72,8 +72,11 @@ function deserializeCertificate(certificateDerBase64: any): Certificate {

try {
return Certificate.deserialize(bufferToArray(certificateDer));
} catch (error) {
throw new PingSerializationError(error, 'Certificate is base64-encoded but not DER-encoded');
} catch (err) {
throw new PingSerializationError(
err as Error,
'Certificate is base64-encoded but not DER-encoded',
);
}
}

Expand Down

0 comments on commit 660ed33

Please sign in to comment.