@twreporter/universal-header
Advanced tools
Comparing version 2.1.6 to 2.1.7-rc.0
@@ -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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
162208
32
2894
3
11
2
+ Addedredux@^4.0.1
+ Addedredux-thunk@^2.3.0
- Removed@twreporter/redux@^6.0.1
- Removed@twreporter/redux@6.0.1(transitive)
- Removedaxios@0.19.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedes6-error@4.1.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhumps@0.6.0(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedlie@3.1.1(transitive)
- Removedlocalforage@1.10.0(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removednormalizr@3.6.2(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedqs@6.13.1(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)