Comparing version 0.1.1 to 0.2.0
{ | ||
"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" | ||
} | ||
} |
@@ -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 | ||
 | ||
---- | ||
### Android | ||
 |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
1
59
3
2
34329
10
11
24
568
1
+ Addedchalk@^2.3.2
+ Addederror-stack-parser@^2.0.1
+ Addedistanbul-lib-coverage@^1.2.0
+ Addedopencollective@^1.0.3
+ Addedsource-map@^0.7.2
+ Addedws@^5.1.0
+ Addedansi-escapes@1.4.0(transitive)
+ Addedansi-regex@2.1.13.0.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedasync-limiter@1.0.1(transitive)
+ Addedbabel-polyfill@6.23.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbluebird@3.5.5(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrowser-stdout@1.3.0(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedchardet@0.4.2(transitive)
+ Addedchild-process-promise@2.2.1(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-width@2.2.1(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommander@2.11.02.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcross-spawn@4.0.2(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddetox@7.4.3(transitive)
+ Addeddetox-server@7.0.0(transitive)
+ Addeddiff@3.3.1(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addederror-stack-parser@2.1.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexternal-editor@2.2.0(transitive)
+ Addedfigures@2.0.0(transitive)
+ Addedfs-extra@4.0.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedget-port@2.1.0(transitive)
+ Addedglob@7.1.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedgrowl@1.10.3(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@2.0.03.0.0(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhe@1.1.1(transitive)
+ Addediconv-lite@0.4.240.6.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedinquirer@3.0.6(transitive)
+ Addedis-fullwidth-code-point@1.0.02.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedistanbul-lib-coverage@1.2.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@0.0.81.2.01.2.8(transitive)
+ Addedmkdirp@0.5.1(transitive)
+ Addedmocha@4.1.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedmute-stream@0.0.7(transitive)
+ Addednode-fetch@1.6.3(transitive)
+ Addednode-version@1.2.0(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedopencollective@1.0.3(transitive)
+ Addedopn@4.0.2(transitive)
+ Addedoptions@0.0.6(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpromise-polyfill@6.1.0(transitive)
+ Addedproper-lockfile@3.2.0(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedregenerator-runtime@0.10.50.11.1(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedrun-async@2.4.1(transitive)
+ Addedrx@4.1.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedshell-utils@1.0.10(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsource-map@0.7.4(transitive)
+ Addedstackframe@1.3.4(transitive)
+ Addedstring-width@1.0.22.1.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.14.0.0(transitive)
+ Addedsupports-color@2.0.04.4.05.5.0(transitive)
+ Addedtail@1.4.0(transitive)
+ Addedtelnet-client@0.15.3(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addedultron@1.0.2(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedws@1.1.55.2.4(transitive)
+ Addedyallist@2.1.2(transitive)