New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bridge

Package Overview
Dependencies
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

android/build.gradle

88

package.json
{
"author": "",
"name": "bridge",
"description": "Bridge for JS",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "git://github.com/Flotype/mqb-prototype.git"
"version": "0.2.0",
"license": "APACHE-2.0",
"description": "Bring your React Native JS code into Node.js and test it mock-free and native code free. Perfect for React Native module developers wanting full CI.",
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
"keywords": [
"react-native",
"react native module",
"detox",
"debugger",
"mocha",
"coverage",
"node",
"nodejs",
"protocol",
"batched bridge",
"istanbul",
"ci",
"integration",
"test",
"testing"
],
"scripts": {
"precommit": "lint-staged",
"lint": "eslint ./src ./server ",
"lint-fix": "eslint --fix ./src ./server",
"postinstall": "opencollective postinstall || exit 0"
},
"main": "lib/bridge.js",
"engines": {
"node": "~0.6.1"
"optionalDependencies": {
"detox": "^7.2.0",
"mocha": "^4.0.0"
},
"peerDependencies": {
"detox": "^7.2.0",
"mocha": "^4.0.0"
},
"dependencies": {
"chalk": "^2.3.2",
"error-stack-parser": "^2.0.1",
"istanbul-lib-coverage": "^1.2.0",
"opencollective": "^1.0.3",
"source-map": "^0.7.2",
"ws": "^5.1.0"
},
"rnpm": {
"android": {
"buildPatch": "compile project(':bridge')",
"packageImportPath": "import io.invertase.bridge.RNBridgePackage;",
"packageInstance": "new RNBridgePackage()"
}
},
"devDependencies": {
"uglify-js": "*"
"eslint": "^4.18.2",
"prettier": "^1.11.1",
"lint-staged": "^7.0.0",
"babel-eslint": "^8.2.2",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-import": "^2.9.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-prettier": "^2.5.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-flowtype": "^2.46.1"
},
"lint-staged": {
"src/{components|helpers|pages}/**/*.js": [
"eslint --fix",
"git add"
],
"server/**/*.js": [
"eslint --fix",
"git add"
],
"*.{json,md,scss}": [
"prettier --write",
"git add"
]
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/react-native-firebase"
}
}

69

README.md

@@ -1,33 +0,58 @@

#Flotype Bridge for Javascript
Flotype Bridge is a unified messaging system that allows you to easily build cross-language services to share data and realtime updates among your servers and your clients
<p align="center">
<a href="https://github.com/invertase/bridge">
<img src="https://i.imgur.com/Srik55r.png"><br/>
</a>
<h2 align="center">Bridge</h2>
</p>
##Node.js Installation
Quick install: Using the [Node Package Manager](http://npmjs.org).
<p align="center">
<a href="https://www.npmjs.com/package/bridge"><img src="https://img.shields.io/npm/dm/bridge.svg?style=flat-square" alt="NPM downloads"></a>
<a href="https://www.npmjs.com/package/bridge"><img src="https://img.shields.io/npm/v/bridge.svg?style=flat-square" alt="NPM version"></a>
<a href="/LICENSE"><img src="https://img.shields.io/npm/l/bridge.svg?style=flat-square" alt="License"></a>
<a href="#backers"><img src="https://opencollective.com/react-native-firebase/backers/badge.svg" alt="Backers on Open Collective"></a>
<a href="#sponsors"><img src="https://opencollective.com/react-native-firebase/sponsors/badge.svg" alt="Sponsors on Open Collective"></a>
<a href="https://discord.gg/C9aK28N"><img src="https://img.shields.io/discord/295953187817521152.svg?logo=discord&style=flat-square&colorA=7289da&label=discord" alt="Chat"></a>
<a href="https://twitter.com/invertaseio"><img src="https://img.shields.io/twitter/follow/invertaseio.svg?style=social&label=Follow" alt="Follow on Twitter"></a>
</p>
npm install bridge
Source install: Clone this repository using `git clone git@bitbucket.org:flotype/bridge-js.git` and install using the npm installer, `npm install bridge-js/`
Bridge lets you bring your React Native JS code into Nodejs and test it mock free and native testing code free. Perfect for React Native module developers who want to fully test their packages end-to-end and setup continuous integration services (including coverage 💯).
##Browser Use
Flotype Bridge for Javascript can be used in the browser. The javascript is hosted on Flotype servers, but can be served from your own server or CDN of your choice.
Bridge extends upon [`wix/detox`](https://github.com/wix/detox) and by default the [Mocha testing framework](https://mochajs.org/) (we'd also like to add Jest support).
http://flotype.com/js/bridge.min.js
To use Bridge in the browser, simply add a script tag in your html. `<script type="text/javascript" src=" http://flotype.com/js/bridge.min.js
"></script>`
###Dependencies
This library has no external dependencies.
Detox provides all the functionality you'll need to control your testing app, device and it's UI (if you have one) whilst Bridge allows JS code execution in the context of your RN app - giving you full access to all the Native api's exactly like you'd have inside your app.
##Documentation and Support
* API Reference: http://flotype.com/docs/api/js/
* Getting Started: http://www.flotype.com/docs/gettingstarted/js/
* About Flotype and Flotype Bridge: http://www.flotype.com/
The `examples` directory of this library contains sample applications for Flotype Bridge.
----
Support is available in #flotype on Freenode IRC or the Flotype Bridge Google Group.
**Discord** (`bridge` channel): https://discord.gg/C9aK28N
----
##License
Flotype Bridge is made available under the MIT/X11 license. See LICENSE file for details.
## Documentation
Sorry the docs are still to be written up - but an idea of what you can do with it can been seen in the early [bridge testing suite here.](https://github.com/invertase/react-native-firebase/blob/master/bridge/e2e/bridge.spec.js) We also have [this example testing project.](https://github.com/invertase/react-native-firebase/tree/master/bridge)
The alpha is available on the `next` tag:
```bash
npm i bridge@next
```
## How can I help?
For now please see the open issues tracking work that needs doing. Full contributing docs will be written.
## Previews
The below previews are from [this example testing project](https://github.com/invertase/react-native-firebase/tree/master/bridge) and are running a small batch of Mocha tests for [react-native-firebase](https://github.com/invertase/react-native-firebase) inside Nodejs:
### iOS
![ios](https://cdn.discordapp.com/attachments/362967412175405059/428355596073435137/2018-03-28_01.46.19.gif)
----
### Android
![android](https://cdn.discordapp.com/attachments/362967412175405059/428357262055178240/2018-03-28_01.55.43.gif)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc