@adobe/alloy 2.19.0-beta.16 → 2.19.0-beta.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.
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +6 -1
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +1 -1
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs6/components/Personalization/dom-actions/createRedirect.js +6 -2
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +1 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,12 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
*/
|
|
15
15
|
var _default = function _default(window) {
|
|
16
16
|
return function (url) {
|
|
17
|
-
|
|
17
|
+
var preserveHistory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18
|
+
if (preserveHistory) {
|
|
19
|
+
window.location.href = url;
|
|
20
|
+
} else {
|
|
21
|
+
window.location.replace(url);
|
|
22
|
+
}
|
|
18
23
|
// Return a promise that never resolves because redirects never complete
|
|
19
24
|
// within the current page.
|
|
20
25
|
return new Promise(function () {
|
|
@@ -14,5 +14,5 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
*/
|
|
15
15
|
// The __VERSION__ keyword will be replace at alloy build time with the package.json version.
|
|
16
16
|
// see babel-plugin-version
|
|
17
|
-
var _default = "2.19.0-beta.
|
|
17
|
+
var _default = "2.19.0-beta.17";
|
|
18
18
|
exports.default = _default;
|
|
@@ -10,8 +10,12 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default (window => url => {
|
|
14
|
-
|
|
13
|
+
export default (window => (url, preserveHistory = false) => {
|
|
14
|
+
if (preserveHistory) {
|
|
15
|
+
window.location.href = url;
|
|
16
|
+
} else {
|
|
17
|
+
window.location.replace(url);
|
|
18
|
+
}
|
|
15
19
|
// Return a promise that never resolves because redirects never complete
|
|
16
20
|
// within the current page.
|
|
17
21
|
return new Promise(() => undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.19.0-beta.
|
|
3
|
+
"version": "2.19.0-beta.17",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"main": "libEs5/index.js",
|
|
6
6
|
"module": "libEs6/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.3.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/alloy": "^2.19.0-beta.
|
|
73
|
+
"@adobe/alloy": "^2.19.0-beta.16",
|
|
74
74
|
"@babel/cli": "^7.12.8",
|
|
75
75
|
"@babel/core": "^7.2.2",
|
|
76
76
|
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|