tf-checkout-react 1.0.69 → 1.0.70
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.
- package/dist/tf-checkout-react.cjs.development.js +3 -3
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +3 -3
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +4 -9
|
@@ -990,7 +990,7 @@ var ErrorFocusInternal = /*#__PURE__*/function (_Component) {
|
|
|
990
990
|
var ErrorFocus = /*#__PURE__*/formik.connect(ErrorFocusInternal);
|
|
991
991
|
|
|
992
992
|
var isWindowDefined = typeof window !== 'undefined';
|
|
993
|
-
var
|
|
993
|
+
var discardedOrigins = ['http://localhost', 'gtsb.io', 'gatsbyjs.io'];
|
|
994
994
|
var origin = isWindowDefined && window.location.origin;
|
|
995
995
|
var ttfHeaders = {
|
|
996
996
|
Accept: 'application/vnd.api+json',
|
|
@@ -1001,7 +1001,7 @@ if (isWindowDefined && localStorage.getItem('auth_guest_token')) {
|
|
|
1001
1001
|
ttfHeaders['Authorization-Guest'] = /*#__PURE__*/localStorage.getItem('auth_guest_token');
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
if (isWindowDefined && !
|
|
1004
|
+
if (isWindowDefined && !discardedOrigins.some(function (el) {
|
|
1005
1005
|
return origin && origin.includes(el);
|
|
1006
1006
|
})) {
|
|
1007
1007
|
ttfHeaders['X-Source-Origin'] = 'houseofx.nyc';
|
|
@@ -1049,7 +1049,7 @@ publicRequest.interceptors.request.use(function (config) {
|
|
|
1049
1049
|
config.headers = _updatedHeaders;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
if (isWindowDefined && !
|
|
1052
|
+
if (isWindowDefined && !discardedOrigins.some(function (el) {
|
|
1053
1053
|
return origin && origin.includes(el);
|
|
1054
1054
|
})) {
|
|
1055
1055
|
var _updatedHeaders2 = _extends({}, config.headers, {
|