Recompile and bump version
This commit is contained in:
parent
bf5f723f50
commit
c4a7ba7624
50
dist/generate-require-signin-wrapper.js
vendored
Normal file
50
dist/generate-require-signin-wrapper.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var React = require("react");
|
||||
var react_redux_1 = require("react-redux");
|
||||
var generateRequireSignInWrapper = function (_a) {
|
||||
var redirectPathIfNotSignedIn = _a.redirectPathIfNotSignedIn;
|
||||
var requireSignInWrapper = function (PageComponent) {
|
||||
var GatedPage = /** @class */ (function (_super) {
|
||||
__extends(GatedPage, _super);
|
||||
function GatedPage() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
GatedPage.prototype.componentWillMount = function () {
|
||||
var _a = this.props, history = _a.history, isSignedIn = _a.isSignedIn;
|
||||
if (!isSignedIn) {
|
||||
history.replace(redirectPathIfNotSignedIn);
|
||||
}
|
||||
};
|
||||
GatedPage.prototype.render = function () {
|
||||
return React.createElement(PageComponent, __assign({}, this.props));
|
||||
};
|
||||
return GatedPage;
|
||||
}(React.Component));
|
||||
var mapStateToProps = function (state) { return ({
|
||||
isSignedIn: state.reduxTokenAuth.currentUser.isSignedIn
|
||||
}); };
|
||||
return react_redux_1.connect(mapStateToProps)(GatedPage);
|
||||
};
|
||||
return requireSignInWrapper;
|
||||
};
|
||||
exports.default = generateRequireSignInWrapper;
|
||||
//# sourceMappingURL=generate-require-signin-wrapper.js.map
|
1
dist/generate-require-signin-wrapper.js.map
vendored
Normal file
1
dist/generate-require-signin-wrapper.js.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"generate-require-signin-wrapper.js","sourceRoot":"","sources":["../src/generate-require-signin-wrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;AAE9B,2CAAqC;AAOrC,IAAM,4BAA4B,GAAG,UACnC,EAAiE;QAA/D,wDAAyB;IAE3B,IAAM,oBAAoB,GAAG,UAAC,aAA6B;QAQzD;YAAwB,6BAA6B;YAArD;;YAcA,CAAC;YAbQ,sCAAkB,GAAzB;gBACQ,IAAA,eAGQ,EAFZ,oBAAO,EACP,0BAAU,CACE;gBACd,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;oBAChB,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAA;gBAC5C,CAAC;YACH,CAAC;YAEM,0BAAM,GAAb;gBACE,MAAM,CAAC,oBAAC,aAAa,eAAK,IAAI,CAAC,KAAK,EAAI,CAAA;YAC1C,CAAC;YACH,gBAAC;QAAD,CAAC,AAdD,CAAwB,KAAK,CAAC,SAAS,GActC;QAED,IAAM,eAAe,GAAG,UAAC,KAAiB,IAAK,OAAA,CAAC;YAC9C,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,UAAU;SACxD,CAAC,EAF6C,CAE7C,CAAA;QAEF,MAAM,CAAC,qBAAO,CACZ,eAAe,CAChB,CAAC,SAAS,CAAC,CAAA;IACd,CAAC,CAAA;IAED,MAAM,CAAC,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AAED,kBAAe,4BAA4B,CAAA"}
|
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -4,4 +4,6 @@ var actions_1 = require("./actions");
|
|||
exports.generateAuthActions = actions_1.default;
|
||||
var reducers_1 = require("./reducers");
|
||||
exports.reduxTokenAuthReducer = reducers_1.default;
|
||||
var generate_require_signin_wrapper_1 = require("./generate-require-signin-wrapper");
|
||||
exports.generateRequireSignInWrapper = generate_require_signin_wrapper_1.default;
|
||||
//# sourceMappingURL=index.js.map
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,qCAA2C;AAIzC,8BAJK,iBAAmB,CAIL;AAHrB,uCAA8C;AAI5C,gCAJK,kBAAqB,CAIL"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,qCAA2C;AAKzC,8BALK,iBAAmB,CAKL;AAJrB,uCAA8C;AAM5C,gCANK,kBAAqB,CAML;AALvB,qFAA4E;AAI1E,uCAJK,yCAA4B,CAIL"}
|
2
dist/initial-state.js
vendored
2
dist/initial-state.js
vendored
|
@ -8,4 +8,4 @@ var initialState = {
|
|||
},
|
||||
};
|
||||
exports.default = initialState;
|
||||
//# sourceMappingURL=initial-state.js.map
|
||||
//# sourceMappingURL=initial-state.js.map
|
2
dist/initial-state.js.map
vendored
2
dist/initial-state.js.map
vendored
|
@ -1 +1 @@
|
|||
{"version":3,"file":"initial-state.js","sourceRoot":"","sources":["../src/initial-state.ts"],"names":[],"mappings":";;AAIA,IAAM,YAAY,GAAe;IAC/B,WAAW,EAAE;QACX,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,EAAE;KACf;CACF,CAAA;AAED,kBAAe,YAAY,CAAA"}
|
||||
{"version":3,"file":"initial-state.js","sourceRoot":"","sources":["../src/initial-state.ts"],"names":[],"mappings":";;AAIA,IAAM,YAAY,GAAwB;IACxC,WAAW,EAAE;QACX,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,EAAE;KACf;CACF,CAAA;AAED,kBAAe,YAAY,CAAA"}
|
2
dist/reducers/current-user/index.js
vendored
2
dist/reducers/current-user/index.js
vendored
|
@ -42,4 +42,4 @@ var currentUser = function (state, action) {
|
|||
}
|
||||
};
|
||||
exports.default = currentUser;
|
||||
//# sourceMappingURL=index.js.map
|
||||
//# sourceMappingURL=index.js.map
|
2
dist/types.js.map
vendored
2
dist/types.js.map
vendored
|
@ -1 +1 @@
|
|||
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AAyCa,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,8BAA8B,GAAmC,iDAAiD,CAAA;AAGlH,QAAA,2BAA2B,GAAgC,8CAA8C,CAAA;AAGzG,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,8BAA8B,GAAmC,iDAAiD,CAAA;AAGlH,QAAA,2BAA2B,GAAgC,8CAA8C,CAAA;AAGzG,QAAA,mBAAmB,GAAwB,sCAAsC,CAAA;AAGjF,QAAA,wBAAwB,GAA6B,2CAA2C,CAAA;AAGhG,QAAA,qBAAqB,GAA0B,wCAAwC,CAAA;AAGvF,QAAA,oBAAoB,GAAyB,uCAAuC,CAAA;AAGpF,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,sBAAsB,GAA2B,yCAAyC,CAAA"}
|
||||
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AA8Ca,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,8BAA8B,GAAmC,iDAAiD,CAAA;AAGlH,QAAA,2BAA2B,GAAgC,8CAA8C,CAAA;AAGzG,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,8BAA8B,GAAmC,iDAAiD,CAAA;AAGlH,QAAA,2BAA2B,GAAgC,8CAA8C,CAAA;AAGzG,QAAA,mBAAmB,GAAwB,sCAAsC,CAAA;AAGjF,QAAA,wBAAwB,GAA6B,2CAA2C,CAAA;AAGhG,QAAA,qBAAqB,GAA0B,wCAAwC,CAAA;AAGvF,QAAA,oBAAoB,GAAyB,uCAAuC,CAAA;AAGpF,QAAA,yBAAyB,GAA8B,4CAA4C,CAAA;AAGnG,QAAA,sBAAsB,GAA2B,yCAAyC,CAAA"}
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "redux-token-auth",
|
||||
"version": "0.15.0",
|
||||
"version": "0.16.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "redux-token-auth",
|
||||
"version": "0.16.0",
|
||||
"version": "0.18.0",
|
||||
"description": "Redux actions and reducers to integrate with Devise Token Auth",
|
||||
"main": "dist/index.js",
|
||||
"types": "index.d.ts",
|
||||
|
|
Loading…
Reference in New Issue
Block a user