summit-registration-lite 3.0.16 → 3.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -18
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1030,22 +1030,8 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
1030
1030
  const external_react_spring_namespaceObject = require("react-spring");
1031
1031
  ;// CONCATENATED MODULE: external "react-use"
1032
1032
  const external_react_use_namespaceObject = require("react-use");
1033
- ;// CONCATENATED MODULE: ./src/utils/constants.js
1034
- /**
1035
- * Copyright 2022 OpenStack Foundation
1036
- * Licensed under the Apache License, Version 2.0 (the "License");
1037
- * you may not use this file except in compliance with the License.
1038
- * You may obtain a copy of the License at
1039
- * http://www.apache.org/licenses/LICENSE-2.0
1040
- * Unless required by applicable law or agreed to in writing, software
1041
- * distributed under the License is distributed on an "AS IS" BASIS,
1042
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1043
- * See the License for the specific language governing permissions and
1044
- * limitations under the License.
1045
- **/
1046
- const AUTH_ERROR_MESSAGE = 'Missing Auth info';
1047
- const AUTH_ERROR_MISSING_REFRESH_TOKEN = "missing Refresh Token";
1048
- const AUTH_ERROR_REQUEST_FAILED = 'Request failed';
1033
+ ;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/security/constants"
1034
+ const constants_namespaceObject = require("openstack-uicore-foundation/lib/security/constants");
1049
1035
  ;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/ajaxloader"
1050
1036
  const ajaxloader_namespaceObject = require("openstack-uicore-foundation/lib/components/ajaxloader");
1051
1037
  var ajaxloader_default = /*#__PURE__*/__webpack_require__.n(ajaxloader_namespaceObject);
@@ -2874,7 +2860,7 @@ const RegistrationLite = _ref => {
2874
2860
  message
2875
2861
  } = error;
2876
2862
 
2877
- if (message.includes(AUTH_ERROR_MESSAGE) || message.includes(AUTH_ERROR_MISSING_REFRESH_TOKEN) || message.includes(AUTH_ERROR_REQUEST_FAILED)) {
2863
+ if (message && (message.includes(constants_namespaceObject.AUTH_ERROR_MISSING_AUTH_INFO) || message.includes(constants_namespaceObject.AUTH_ERROR_MISSING_REFRESH_TOKEN) || message.includes(constants_namespaceObject.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR))) {
2878
2864
  // we dont have an access token, init log out process
2879
2865
  clearWidgetState();
2880
2866
  return authErrorCallback(error);
@@ -2916,7 +2902,7 @@ const RegistrationLite = _ref => {
2916
2902
  message
2917
2903
  } = error;
2918
2904
 
2919
- if (message.includes(AUTH_ERROR_MESSAGE) || message.includes(AUTH_ERROR_MISSING_REFRESH_TOKEN) || message.includes(AUTH_ERROR_REQUEST_FAILED)) {
2905
+ if (message && (message.includes(constants_namespaceObject.AUTH_ERROR_MISSING_AUTH_INFO) || message.includes(constants_namespaceObject.AUTH_ERROR_MISSING_REFRESH_TOKEN) || message.includes(constants_namespaceObject.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR))) {
2920
2906
  // we dont have an access token, init log out process
2921
2907
  clearWidgetState();
2922
2908
  return authErrorCallback(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "summit-registration-lite",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "description": "Summit Registration Lite",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -60,7 +60,7 @@
60
60
  "moment": "^2.22.2",
61
61
  "moment-timezone": "^0.5.21",
62
62
  "node-sass": "^7.0.1",
63
- "openstack-uicore-foundation": "^4.0.43",
63
+ "openstack-uicore-foundation": "^4.0.49",
64
64
  "optimize-css-assets-webpack-plugin": "^6.0.1",
65
65
  "path": "^0.12.7",
66
66
  "react": "^16.8.4",
@@ -109,7 +109,7 @@
109
109
  "lodash": "^4.17.14",
110
110
  "moment": "^2.22.2",
111
111
  "moment-timezone": "^0.5.21",
112
- "openstack-uicore-foundation": "^4.0.35",
112
+ "openstack-uicore-foundation": "^4.0.49",
113
113
  "react": "^16.8.4",
114
114
  "react-bootstrap": "^0.31.5",
115
115
  "react-datetime": "^2.16.2",