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

Dropped isomorphic-fetch in favor of cross-fetch (React Native compatible). #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion dummy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"classnames": "^2.1.5",
"config": "^1.17.1",
"cookie": "^0.2.2",
"cross-fetch": "1.1.0",
"exports-loader": "^0.6.2",
"extend": "^3.0.0",
"h2o2": "4.0.1",
Expand All @@ -47,7 +48,6 @@
"immutable": "^3.7.5",
"imports-loader": "^0.6.4",
"inert": "3.0.1",
"isomorphic-fetch": "2.1.1",
"jquery-deparam": "^0.4.2",
"less": "^2.5.3",
"less-loader": "^2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions index.js

Large diffs are not rendered by default.

248 changes: 124 additions & 124 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
{
"name": "redux-auth",
"description": "Complete token authentication system for react + redux.",
"version": "0.0.5-beta5",
"license": "WTFPL",
"repository": {
"type": "git",
"url": "https://github.com/lynndylanhurley/redux-auth.git"
},
"homepage": "https://github.com/lynndylanhurley/redux-auth",
"keywords": [
"react",
"isomorphic",
"universal",
"starter",
"boilerplate",
"template",
"webpack",
"koa",
"transmit"
],
"main": "index.js",
"scripts": {
"release": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.release.js",
"test": "node_modules/.bin/_mocha --timeout 5000 --compilers .:test/compiler.js test/runner.js",
"test-coverage": "node_modules/.bin/babel-node node_modules/.bin/isparta cover --root ./src node_modules/.bin/_mocha -- --timeout 5000 test/runner.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"files": [
"src",
"default-theme.js",
"bootstrap-theme.js",
"material-ui-theme.js",
"index.js",
"LICENSE.md",
"README.md"
],
"dependencies": {
"browser-cookies": "^1.0.8",
"classnames": "^2.1.5",
"cookie": "^0.2.3",
"extend": "^3.0.0",
"immutable": "^3.7.5",
"isomorphic-fetch": "^2.1.1",
"query-string": "^2.4.2",
"rc-dialog": "^6.1.1",
"react-bootstrap": "^0.29.5",
"react-loader": "^2.4.0",
"redux-immutablejs": "0.0.8"
},
"devDependencies": {
"babel-cli": "6.3.13",
"babel-core": "6.3.13",
"babel-loader": "6.1.0",
"babel-polyfill": "6.3.13",
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"babel-preset-stage-0": "6.3.13",
"babel-register": "6.3.13",
"bootstrap": "^3.3.5",
"bootstrap-sass": "^3.3.5",
"bootstrap-webpack": "0.0.5",
"chai": "^3.3.0",
"chai-as-promised": "^5.1.0",
"concurrently": "0.1.1",
"coveralls": "^2.11.4",
"css-loader": "^0.19.0",
"exports-loader": "^0.6.2",
"extract-text-webpack-plugin": "0.9.1",
"fetch-mock": "^2.1.0",
"file-loader": "0.8.5",
"h2o2": "4.0.1",
"hapi": "9.3.1",
"highlight.js": "^8.8.0",
"imports-loader": "^0.6.4",
"inert": "3.0.1",
"install": "^0.3.0",
"invariant": "^2.2.0",
"isparta": "^4.0.0",
"istanbul": "^0.3.22",
"istanbul-instrumenter-loader": "^0.1.3",
"jquery": "^2.1.4",
"jquery-deparam": "^0.4.2",
"jsdom": "^9.4.1",
"jsdomify": "^2.1.0",
"json-loader": "0.5.4",
"material-ui": "0.15.2",
"mocha": "^2.3.4",
"mockery": "^1.4.0",
"nock": "^3.3.2",
"node-sass": "^3.3.3",
"nodemon": "^1.7.2",
"piping": "0.2.0",
"react": "^15.2.1",
"react-addons-test-utils": "^0.14.3",
"react-dom": "^15.2.1",
"react-hot-loader": "1.3.0",
"react-redux": "^3.1.2",
"react-router": "^2.5.2",
"react-router-bootstrap": "^0.19.0",
"react-router-redux": "^4.0.5",
"react-select": "^1.0.0-beta13",
"react-tap-event-plugin": "^0.2.1",
"react-transmit": "3.0.6",
"redux": "^3.3.1",
"redux-thunk": "^1.0.0",
"require-subvert": "^0.1.0",
"rewire": "^2.5.1",
"sass-loader": "^3.0.0",
"serialize-javascript": "^1.1.2",
"sinon": "1.17.0",
"style-loader": "^0.12.4",
"thunk": "^0.0.1",
"url-loader": "^0.5.6",
"warning": "^2.1.0",
"webpack": "1.12.9",
"webpack-dev-server": "1.14.0"
},
"peerDependencies": {
"react-router-bootstrap": "*"
},
"engines": {
"node": ">=0.10.32"
}
}
{
"name": "redux-auth",
"description": "Complete token authentication system for react + redux.",
"version": "0.0.5-beta5",
"license": "WTFPL",
"repository": {
"type": "git",
"url": "https://github.com/lynndylanhurley/redux-auth.git"
},
"homepage": "https://github.com/lynndylanhurley/redux-auth",
"keywords": [
"react",
"isomorphic",
"universal",
"starter",
"boilerplate",
"template",
"webpack",
"koa",
"transmit"
],
"main": "index.js",
"scripts": {
"release": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.release.js",
"test": "node_modules/.bin/_mocha --timeout 5000 --compilers .:test/compiler.js test/runner.js",
"test-coverage": "node_modules/.bin/babel-node node_modules/.bin/isparta cover --root ./src node_modules/.bin/_mocha -- --timeout 5000 test/runner.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"files": [
"src",
"default-theme.js",
"bootstrap-theme.js",
"material-ui-theme.js",
"index.js",
"LICENSE.md",
"README.md"
],
"dependencies": {
"browser-cookies": "^1.0.8",
"classnames": "^2.1.5",
"cookie": "^0.2.3",
"cross-fetch": "^1.1.0",
"extend": "^3.0.0",
"immutable": "^3.7.5",
"query-string": "^2.4.2",
"rc-dialog": "^6.1.1",
"react-bootstrap": "^0.29.5",
"react-loader": "^2.4.0",
"redux-immutablejs": "0.0.8"
},
"devDependencies": {
"babel-cli": "6.3.13",
"babel-core": "6.3.13",
"babel-loader": "6.1.0",
"babel-polyfill": "6.3.13",
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"babel-preset-stage-0": "6.3.13",
"babel-register": "6.3.13",
"bootstrap": "^3.3.5",
"bootstrap-sass": "^3.3.5",
"bootstrap-webpack": "0.0.5",
"chai": "^3.3.0",
"chai-as-promised": "^5.1.0",
"concurrently": "0.1.1",
"coveralls": "^2.11.4",
"css-loader": "^0.19.0",
"exports-loader": "^0.6.2",
"extract-text-webpack-plugin": "0.9.1",
"fetch-mock": "^2.1.0",
"file-loader": "0.8.5",
"h2o2": "4.0.1",
"hapi": "9.3.1",
"highlight.js": "^8.8.0",
"imports-loader": "^0.6.4",
"inert": "3.0.1",
"install": "^0.3.0",
"invariant": "^2.2.0",
"isparta": "^4.0.0",
"istanbul": "^0.3.22",
"istanbul-instrumenter-loader": "^0.1.3",
"jquery": "^2.1.4",
"jquery-deparam": "^0.4.2",
"jsdom": "^9.4.1",
"jsdomify": "^2.1.0",
"json-loader": "0.5.4",
"material-ui": "0.15.2",
"mocha": "^2.3.4",
"mockery": "^1.4.0",
"nock": "^3.3.2",
"node-sass": "^3.3.3",
"nodemon": "^1.7.2",
"piping": "0.2.0",
"react": "^15.2.1",
"react-addons-test-utils": "^0.14.3",
"react-dom": "^15.2.1",
"react-hot-loader": "1.3.0",
"react-redux": "^3.1.2",
"react-router": "^2.5.2",
"react-router-bootstrap": "^0.19.0",
"react-router-redux": "^4.0.5",
"react-select": "^1.0.0-beta13",
"react-tap-event-plugin": "^0.2.1",
"react-transmit": "3.0.6",
"redux": "^3.3.1",
"redux-thunk": "^1.0.0",
"require-subvert": "^0.1.0",
"rewire": "^2.5.1",
"sass-loader": "^3.0.0",
"serialize-javascript": "^1.1.2",
"sinon": "1.17.0",
"style-loader": "^0.12.4",
"thunk": "^0.0.1",
"url-loader": "^0.5.6",
"warning": "^2.1.0",
"webpack": "1.12.9",
"webpack-dev-server": "1.14.0"
},
"peerDependencies": {
"react-router-bootstrap": "*"
},
"engines": {
"node": ">=0.10.32"
}
}
2 changes: 1 addition & 1 deletion src/utils/fetch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import originalFetch from "isomorphic-fetch";
import originalFetch from "cross-fetch";
import * as C from "./constants";
import extend from "extend";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/verify-auth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fetch from "isomorphic-fetch";
import fetch from "cross-fetch";
import cookie from "cookie";
import getRedirectInfo from "../utils/parse-url";
import * as C from "../utils/constants";
Expand Down
2 changes: 1 addition & 1 deletion webpack.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
"extend": "commonjs extend",
"history": "commonjs history",
"immutable": "commonjs immutable",
"isomorphic-fetch": "commonjs isomorphic-fetch",
"cross-fetch": "commonjs cross-fetch",
"query-string": "commonjs query-string",
"querystring": "commonjs querystring",
"react-dom": "commonjs react-dom",
Expand Down