Files
flipper/flipper-js-client-sdk
dependabot[bot] 55519d5195 Bump eslint-config-prettier from 6.11.0 to 6.12.0 in /flipper-js-client-sdk (#1549)
Summary:
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.11.0 to 6.12.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md">eslint-config-prettier's changelog</a>.</em></p>
<blockquote>
<h3>Version 6.12.0 (2020-09-25)</h3>
<ul>
<li>Added: [typescript-eslint/comma-dangle]. Thanks to Masafumi Koba (<a href="https://github.com/ybiquitous">ybiquitous</a>)!!</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="37a62901a3"><code>37a6290</code></a> eslint-config-prettier v6.12.0</li>
<li><a href="3ea5ad584a"><code>3ea5ad5</code></a> Update npm packages</li>
<li><a href="84dfbd5fa6"><code>84dfbd5</code></a> Turn off <code>typescript-eslint/comma-dangle</code> (<a href="https://github-redirect.dependabot.com/prettier/eslint-config-prettier/issues/159">https://github.com/facebook/flipper/issues/159</a>)</li>
<li><a href="9444ee0b20"><code>9444ee0</code></a> Bump lodash from 4.17.15 to 4.17.19 (<a href="https://github-redirect.dependabot.com/prettier/eslint-config-prettier/issues/153">https://github.com/facebook/flipper/issues/153</a>)</li>
<li><a href="1504761368"><code>1504761</code></a> Update npm packages</li>
<li><a href="7cad28d09a"><code>7cad28d</code></a> Remove extra exclamation mark</li>
<li>See full diff in <a href="https://github.com/prettier/eslint-config-prettier/compare/v6.11.0...v6.12.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-config-prettier&package-manager=npm_and_yarn&previous-version=6.11.0&new-version=6.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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>

Pull Request resolved: https://github.com/facebook/flipper/pull/1549

Reviewed By: cekkaewnumchai

Differential Revision: D24112971

Pulled By: mweststrate

fbshipit-source-id: af3a409c3f61124de6cd158365c372d206cb4bb5
2020-10-06 04:23:08 -07:00
..
2020-09-10 08:18:14 -07:00
2020-06-11 08:45:35 -07:00
2020-06-11 08:45:35 -07:00

flipper-sdk-api

SDK to build Flipper clients for JS based apps

Installation

yarn add flipper-client-sdk

Usage

Example

class SeaMammalPlugin extends AbsctractFlipperPlugin {
  getId(): string {
    return 'sea-mammals';
  }

  runInBackground(): boolean {
    return true;
  }

  newRow(row: {id: string, url: string, title: string}) {
    this.connection?.send("newRow", row)
  }
}

const flipperClient = newWebviewClient();
cosnt plugin = new SeaMammalPlugin();
flipperClient.addPlugin();
flipperClient.start('Example JS App');
plugin.newRow({id: '1', title: 'Dolphin', url: 'example.com'})