Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #111

Open
wants to merge 42 commits into
base: devbackup1
Choose a base branch
from
Open

Dev #111

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d3e46cd
update crypto section of shim
mvayngrib Jan 20, 2017
48f57b1
update rn-bundler hack to prevent function name mangling
mvayngrib Jul 13, 2016
e6e4e08
fix crypto shim
mvayngrib Jan 22, 2017
81fd8bf
don't overwrite window.crypto if not necessary
mvayngrib Jan 23, 2017
a48a4fc
package: add github url
dcousens Feb 14, 2017
ca5f196
Merge pull request #29 from dcousens/patch-1
mvayngrib Feb 17, 2017
5fd5b7d
add explanation
mvayngrib Feb 17, 2017
1c0f166
fix readme
mvayngrib Feb 18, 2017
68977eb
:pencil: Make the `./shims.js` links clicable.
mistersourcerer Feb 23, 2017
8d291f4
Merge pull request #31 from ricardovaleriano/rv-little-readme-love
mvayngrib Feb 23, 2017
9db38f5
Support npm5
staltz Jun 5, 2017
3df639a
Merge pull request #40 from staltz/patch-1
mvayngrib Jun 5, 2017
1898500
pkg-hacks.js now converts Windows path separators to POSIX, so that h…
Mar 15, 2017
5d9ed9c
Update readme.md
mvayngrib Jun 29, 2017
71aabdd
fix ./pkg-hacks.js link (quotes)
laurion Mar 15, 2017
00ea356
another levelup hack
mvayngrib May 28, 2017
4f9cc9b
Hack versions
gabceb Sep 28, 2016
c426753
prevent uglify from mangling things (latest packager)
mvayngrib May 28, 2017
97012a8
exclude tls, as there is no shim for it
mvayngrib Jun 6, 2017
56e8fde
fix inconsistent main mappings (e.g. in mqtt and websocket-stream)
mvayngrib Jul 20, 2017
6d4d7db
hack for constants-browserify
mvayngrib Aug 22, 2017
04dbc55
bumps constants-broswerify to ~1.0.0
TheJoeSchr Aug 19, 2017
78652de
bumps constants-broswerify to ^1.0.0
TheJoeSchr Aug 19, 2017
66593df
rm 'q', fix no-param --install
mvayngrib Sep 5, 2017
1a2da7e
add --overwrite flag
mvayngrib Sep 5, 2017
b39690e
upgrade react-native-randombytes
mvayngrib Sep 5, 2017
6ee2f9a
improve logging
mvayngrib Sep 5, 2017
274f86b
improve readme
mvayngrib Sep 5, 2017
441e28b
update react-native-udp for RN>0.40
mvayngrib Sep 5, 2017
7eb2614
update the version of react-native-tcp to support react-native >= 0.40.0
mcarter00 Mar 23, 2017
a659f24
fix arg parsing
mvayngrib Sep 5, 2017
c70957c
fix typo
mvayngrib Sep 5, 2017
eb33e96
8.0.0
mvayngrib Sep 13, 2017
91913e1
add precommit lint
mvayngrib Sep 15, 2017
55575c0
Basic yarn support (#51)
jd20 Sep 20, 2017
14999e3
8.1.0
mvayngrib Sep 20, 2017
02225a2
Cleanup crypto code in shim.js (#54)
jd20 Sep 20, 2017
77bb54a
opinionate: replace q with bluebird
mvayngrib Feb 3, 2016
05ab035
Load local hacks prototype
gabceb Jul 5, 2016
76fda04
Added docs
gabceb Oct 5, 2016
d0be8ec
rm mangling in latest rn
mvayngrib Mar 20, 2018
f223a6a
update mangling opts for rn 0.55
mvayngrib Aug 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
283 changes: 283 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
module.exports = {
"env": {
"es6": true,
"node": true
},
"globals": {
// react native
"window": true,
"__DEV__": true,
"localStorage": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": "warn",
"array-callback-return": "warn",
"arrow-body-style": "warn",
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"callback-return": "error",
"camelcase": "warn",
"capitalized-comments": "off",
"class-methods-use-this": "error",
"comma-dangle": "off",
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": [
"error",
"last"
],
"complexity": "error",
"computed-property-spacing": "error",
"consistent-return": "warn",
"consistent-this": "warn",
"curly": "off",
"default-case": "error",
"dot-location": "off",
"dot-notation": "warn",
"eol-last": "warn",
"eqeqeq": "warn",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": "warn",
"func-style": "warn",
"generator-star-spacing": "off",
"global-require": "off",
"guard-for-in": "warn",
"handle-callback-err": "warn",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"indent": "off",
"init-declarations": "off",
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"line-comment-position": "warn",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": "warn",
"lines-around-directive": "error",
"max-depth": "error",
"max-len": "off",
"max-lines": "warn",
"max-nested-callbacks": "error",
"max-params": "warn",
"max-statements": "off",
"max-statements-per-line": "error",
"multiline-ternary": "warn",
"new-cap": "error",
"new-parens": "error",
"newline-after-var": "off",
"newline-before-return": "off",
"newline-per-chained-call": "warn",
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-case-declarations": "warn",
"no-catch-shadow": "warn",
"no-cond-assign": "warn",
"no-confusing-arrow": "error",
"no-console": "warn",
"no-constant-condition": "warn",
"no-continue": "warn",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-ex-assign": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-empty-function": "off",
"no-eq-null": "warn",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-parens": "warn",
"no-extra-semi": "warn",
"no-floating-decimal": "error",
"no-implicit-coercion": "warn",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-inner-declarations": "warn",
"no-invalid-this": "warn",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "warn",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-operators": "error",
"no-mixed-requires": "error",
"no-multi-assign": "warn",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-native-reassign": "error",
"no-negated-condition": "warn",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "warn",
"no-path-concat": "error",
"no-process-env": "off",
"no-process-exit": "off",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-assign": "warn",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "warn",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-sync": "off",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-ternary": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "warn",
"no-undefined": "warn",
"no-underscore-dangle": "warn",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-unused-vars": "warn",
"no-use-before-define": "off",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "warn",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "warn",
"no-void": "error",
"no-warning-comments": "warn",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-newline": "off",
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": [
"error",
{
"allowMultiplePropertiesPerLine": true
}
],
"object-shorthand": "warn",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": "off",
"prefer-const": "warn",
"prefer-destructuring": "warn",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-reflect": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "error",
"require-await": "error",
"require-jsdoc": "off",
"require-yield": "off",
"rest-spread-spacing": [
"error",
"never"
],
"semi": "off",
"semi-spacing": "error",
"sort-imports": "error",
"sort-keys": "off",
"sort-vars": "error",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": "off",
"space-unary-ops": "error",
"spaced-comment": [
"error",
"always"
],
"strict": "error",
"symbol-description": "error",
"template-curly-spacing": [
"error",
"never"
],
"unicode-bom": [
"error",
"never"
],
"valid-jsdoc": "warn",
"vars-on-top": "off",
"wrap-iife": "error",
"wrap-regex": "warn",
"yield-star-spacing": "error",
"yoda": [
"error",
"never"
]
}
};
4 changes: 3 additions & 1 deletion browser.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"q": "bluebird-q",
"zlib": "browserify-zlib",
"console": "console-browserify",
"constants": "constants-browserify",
Expand All @@ -21,5 +22,6 @@
"stream": "stream-browserify",
"timers": "timers-browserify",
"tty": "tty-browserify",
"vm": "vm-browserify"
"vm": "vm-browserify",
"tls": false
}
Loading