auth-n-roll-dev-tools
Advanced tools
Comparing version 0.0.11 to 0.1.0
@@ -12,2 +12,4 @@ "use strict"; | ||
var _SignUp = require("./SignUp"); | ||
var _Refresh = require("./Refresh"); | ||
@@ -66,8 +68,10 @@ | ||
var getLoggedUser = function getLoggedUser() { | ||
return null; // { | ||
// username: 'davide' | ||
// } | ||
return null; | ||
}; | ||
return { | ||
signOut: function signOut() { | ||
console.log('In memory signout'); | ||
}, | ||
signUp: _SignUp.SignUp, | ||
signIn: _SignIn.SignIn, | ||
@@ -74,0 +78,0 @@ refresh: _Refresh.Refresh, |
@@ -173,2 +173,22 @@ "use strict"; | ||
update: this.handleUpdate | ||
})), _react.default.createElement("div", null, "SignUP"), _react.default.createElement("div", null, _react.default.createElement(SwitchButton, { | ||
name: "signupResponse", | ||
checkValue: '', | ||
label: "Success", | ||
update: this.handleUpdate | ||
}), _react.default.createElement(SwitchButton, { | ||
name: "signupResponse", | ||
checkValue: _authNRoll.USERNAME_EXISTS_ERROR, | ||
label: "User name exists", | ||
update: this.handleUpdate | ||
}), _react.default.createElement(SwitchButton, { | ||
name: "signupResponse", | ||
checkValue: _authNRoll.INVALID_PASSWORD_ERROR, | ||
label: "Invalid password", | ||
update: this.handleUpdate | ||
}), _react.default.createElement(SwitchButton, { | ||
name: "signupResponse", | ||
checkValue: _authNRoll.GENERIC_ERROR, | ||
label: "Error on change", | ||
update: this.handleUpdate | ||
})))); | ||
@@ -175,0 +195,0 @@ } |
{ | ||
"name": "auth-n-roll-dev-tools", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"auth-n-roll": "^0.0.11" | ||
"auth-n-roll": "^0.1.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -6,2 +6,3 @@ import { | ||
import { SignIn } from './SignIn' | ||
import { SignUp } from './SignUp' | ||
import { Refresh } from './Refresh' | ||
@@ -48,8 +49,9 @@ import { ResendValidationCode } from './ResendValidationCode' | ||
return null | ||
// { | ||
// username: 'davide' | ||
// } | ||
} | ||
return { | ||
signOut: () => { | ||
console.log('In memory signout') | ||
}, | ||
signUp: SignUp, | ||
signIn: SignIn, | ||
@@ -56,0 +58,0 @@ refresh: Refresh, |
@@ -15,3 +15,4 @@ import React from 'react' | ||
UNMANAGED_ERROR, | ||
INVALID_PASSWORD_ERROR | ||
INVALID_PASSWORD_ERROR, | ||
USERNAME_EXISTS_ERROR | ||
} from 'auth-n-roll' | ||
@@ -175,2 +176,29 @@ | ||
</div> | ||
<div>SignUP</div> | ||
<div> | ||
<SwitchButton | ||
name="signupResponse" | ||
checkValue={''} | ||
label="Success" | ||
update={this.handleUpdate} | ||
/> | ||
<SwitchButton | ||
name="signupResponse" | ||
checkValue={USERNAME_EXISTS_ERROR} | ||
label="User name exists" | ||
update={this.handleUpdate} | ||
/> | ||
<SwitchButton | ||
name="signupResponse" | ||
checkValue={INVALID_PASSWORD_ERROR} | ||
label="Invalid password" | ||
update={this.handleUpdate} | ||
/> | ||
<SwitchButton | ||
name="signupResponse" | ||
checkValue={GENERIC_ERROR} | ||
label="Error on change" | ||
update={this.handleUpdate} | ||
/> | ||
</div> | ||
</div> | ||
@@ -177,0 +205,0 @@ </div> |
59846
20
1169
+ Addedasap@2.0.6(transitive)
+ Addedauth-n-roll@0.1.21(transitive)
+ Addedbabel-polyfill@6.26.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedbuffer-equal-constant-time@1.0.1(transitive)
+ Addedcore-js@1.2.72.6.12(transitive)
+ Addedcreate-react-context@0.2.3(transitive)
+ Addeddeepmerge@2.2.1(transitive)
+ Addedecdsa-sig-formatter@1.0.11(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addedformik@1.5.8(transitive)
+ Addedgud@1.0.0(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addedjsonwebtoken@8.5.1(transitive)
+ Addedjwa@1.4.1(transitive)
+ Addedjws@3.2.2(transitive)
+ Addedlodash-es@4.17.21(transitive)
+ Addedlodash.includes@4.3.0(transitive)
+ Addedlodash.isboolean@3.0.3(transitive)
+ Addedlodash.isinteger@4.0.4(transitive)
+ Addedlodash.isnumber@3.0.3(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedlodash.isstring@4.0.1(transitive)
+ Addedlodash.once@4.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedreact-fast-compare@2.0.4(transitive)
+ Addedregenerator-runtime@0.10.50.11.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedtiny-warning@1.0.3(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedua-parser-js@0.7.40(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
- Removedauth-n-roll@0.0.11(transitive)
- Removedformik@0.11.11(transitive)
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.topath@4.5.2(transitive)
- Removedwarning@3.0.0(transitive)
Updatedauth-n-roll@^0.1.0