Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twreporter/universal-header

Package Overview
Dependencies
Maintainers
5
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twreporter/universal-header - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7-rc.0

lib/actions/auth.js

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [2.1.7-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/universal-header@2.1.6...@twreporter/universal-header@2.1.7-rc.0) (2020-02-14)
### Bug Fixes
* **universal-header:** standalone header cannot work normally ([40fb08c](https://github.com/twreporter/twreporter-npm-packages/commit/40fb08c8df12b6b2a98cbe5890b41e7d181608b1))
## [2.1.6](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/universal-header@2.1.6-rc.0...@twreporter/universal-header@2.1.6) (2020-02-13)

@@ -8,0 +19,0 @@

26

lib/standalone-header.js

@@ -8,4 +8,2 @@ "use strict";

var _reactRedux = require("react-redux");
var _header = _interopRequireDefault(require("./containers/header"));

@@ -17,8 +15,16 @@

var _requestOrigins = _interopRequireDefault(require("@twreporter/core/lib/constants/request-origins"));
var _index = _interopRequireDefault(require("./reducers/index"));
var _reduxThunk = _interopRequireDefault(require("redux-thunk"));
var _propTypes2 = _interopRequireDefault(require("./constants/prop-types"));
var _redux = _interopRequireDefault(require("@twreporter/redux"));
var _reactRedux = require("react-redux");
var _requestOrigins = _interopRequireDefault(require("@twreporter/core/lib/constants/request-origins"));
var _redux = require("redux");
var _auth = require("./actions/auth");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -48,4 +54,2 @@

var isDev = process && process.env && process.env.NODE_ENV === 'development';
var StandaloneHeader =

@@ -63,4 +67,6 @@ /*#__PURE__*/

var releaseBranch = _this.props.releaseBranch;
var cookie = '';
_this.store = _redux["default"].createStore(_defineProperty({}, _redux["default"].reduxStateFields.origins, _requestOrigins["default"].forClientSideRendering[releaseBranch]), cookie, isDev);
_this.store = (0, _redux.createStore)(_index["default"], {
origins: _requestOrigins["default"].forClientSideRendering[releaseBranch],
auth: {}
}, (0, _redux.applyMiddleware)(_reduxThunk["default"]));
return _this;

@@ -72,3 +78,5 @@ }

value: function componentDidMount() {
this.store.actions.getAccessToken();
this.store.dispatch((0, _auth.getAccessToken)())["catch"](function (failAction) {
console.log(failAction);
});
}

@@ -75,0 +83,0 @@ }, {

{
"name": "@twreporter/universal-header",
"version": "2.1.6",
"version": "2.1.7-rc.0",
"description": "Universal header of TWReporter sites",

@@ -22,3 +22,2 @@ "main": "lib/index.js",

"@twreporter/core": "^1.2.0",
"@twreporter/redux": "^6.0.1",
"lodash": "^4.17.11",

@@ -31,2 +30,4 @@ "prop-types": "^15.6.2",

"react-transition-group": "^2.0.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"styled-components": "^4.0.0"

@@ -37,3 +38,3 @@ },

],
"gitHead": "a9b951d0d00aa57f9facf1b3242eba4b8dea40b1"
"gitHead": "910f166a4c4472a2abf919ee6aab6c7723a51d79"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc