From 609d1f75b32a11f04c39432c82477ee3d5505289 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:32:31 -0700 Subject: [PATCH] Bump typescript from 4.7.4 to 4.8.4 in /js/js-flipper (#4147) Summary: Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.4.
Release notes

Sourced from typescript's releases.

TypeScript 4.8.4

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

TypeScript 4.8.3

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

TypeScript 4.8

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

TypeScript 4.8 RC

For release notes, check out the release announcement.

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=typescript&package-manager=npm_and_yarn&previous-version=4.7.4&new-version=4.8.4)](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) ---
Dependabot commands and options
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)
Pull Request resolved: https://github.com/facebook/flipper/pull/4147 Reviewed By: aigoncharov Differential Revision: D40022430 Pulled By: aigoncharov fbshipit-source-id: 5e30af94a98109503798167a81fa1ce830150be5 --- js/js-flipper/src/connection.ts | 20 ++++++++++++++++---- js/js-flipper/yarn.lock | 6 +++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/js/js-flipper/src/connection.ts b/js/js-flipper/src/connection.ts index 8f9a1f48c..ecc5cca26 100644 --- a/js/js-flipper/src/connection.ts +++ b/js/js-flipper/src/connection.ts @@ -8,11 +8,18 @@ */ import {FlipperErrorMessage, FlipperMessageBus} from './message'; -import {FlipperPluginConnection, FlipperPluginReceiver} from './plugin'; +import { + FlipperPluginConnection, + FlipperPluginReceiver, + FlipperPluginReceiverRes, +} from './plugin'; import {FlipperResponder} from './responder'; import {isPromise, safeJSONStringify} from './util'; -type FlipperReceiver = (data: unknown, responder: FlipperResponder) => void; +type FlipperReceiver = ( + data: FlipperPluginReceiverRes, + responder: FlipperResponder, +) => void; export class FlipperConnection implements FlipperPluginConnection { pluginId: string; @@ -36,7 +43,10 @@ export class FlipperConnection implements FlipperPluginConnection { } receive(method: string, receiver: FlipperPluginReceiver) { - const wrappedReceiver: FlipperReceiver = (data, responder) => { + const wrappedReceiver: FlipperReceiver = ( + data: FlipperPluginReceiverRes, + responder, + ) => { const handleError = (e: unknown) => { const errorMessage: FlipperErrorMessage = e instanceof Error @@ -47,7 +57,9 @@ export class FlipperConnection implements FlipperPluginConnection { try { const response = receiver(data); if (isPromise(response)) { - response.then((data) => responder.success(data)).catch(handleError); + response + .then((data: FlipperPluginReceiverRes) => responder.success(data)) + .catch(handleError); return; } responder.success(response); diff --git a/js/js-flipper/yarn.lock b/js/js-flipper/yarn.lock index 9d8108522..bb39505c8 100644 --- a/js/js-flipper/yarn.lock +++ b/js/js-flipper/yarn.lock @@ -3635,9 +3635,9 @@ type-fest@^0.21.3: integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== typescript@^4.7.3: - version "4.7.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" - integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== + version "4.8.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== unbox-primitive@^1.0.2: version "1.0.2"