@adobe/alloy 2.11.0-alpha.1 → 2.11.0-alpha.2
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/Identity/configValidators.js +1 -2
- package/libEs5/components/Identity/index.js +2 -4
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +1 -10
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs6/components/Identity/configValidators.js +1 -2
- package/libEs6/components/Identity/index.js +2 -4
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +1 -10
- package/libEs6/constants/libraryVersion.js +1 -1
- package/package.json +2 -2
|
@@ -17,8 +17,7 @@ governing permissions and limitations under the License.
|
|
|
17
17
|
*/
|
|
18
18
|
var configValidators = {
|
|
19
19
|
thirdPartyCookiesEnabled: (0, _validation.boolean)().default(true),
|
|
20
|
-
idMigrationEnabled: (0, _validation.boolean)().default(true)
|
|
21
|
-
idOverwriteEnabled: (0, _validation.boolean)().default(false)
|
|
20
|
+
idMigrationEnabled: (0, _validation.boolean)().default(true)
|
|
22
21
|
};
|
|
23
22
|
var _default = configValidators;
|
|
24
23
|
exports.default = _default;
|
|
@@ -60,8 +60,7 @@ var createIdentity = function createIdentity(_ref) {
|
|
|
60
60
|
fireReferrerHideableImage = _ref.fireReferrerHideableImage,
|
|
61
61
|
sendEdgeNetworkRequest = _ref.sendEdgeNetworkRequest;
|
|
62
62
|
var orgId = config.orgId,
|
|
63
|
-
thirdPartyCookiesEnabled = config.thirdPartyCookiesEnabled
|
|
64
|
-
idOverwriteEnabled = config.idOverwriteEnabled;
|
|
63
|
+
thirdPartyCookiesEnabled = config.thirdPartyCookiesEnabled;
|
|
65
64
|
var getEcidFromVisitor = (0, _injectGetEcidFromVisitor.default)({
|
|
66
65
|
logger: logger,
|
|
67
66
|
orgId: orgId,
|
|
@@ -93,8 +92,7 @@ var createIdentity = function createIdentity(_ref) {
|
|
|
93
92
|
return new Date();
|
|
94
93
|
},
|
|
95
94
|
orgId: orgId,
|
|
96
|
-
logger: logger
|
|
97
|
-
idOverwriteEnabled: idOverwriteEnabled
|
|
95
|
+
logger: logger
|
|
98
96
|
});
|
|
99
97
|
var awaitIdentityCookie = (0, _injectAwaitIdentityCookie.default)({
|
|
100
98
|
doesIdentityCookieExist: doesIdentityCookieExist,
|
|
@@ -26,8 +26,7 @@ var _default = function _default(_ref) {
|
|
|
26
26
|
var locationSearch = _ref.locationSearch,
|
|
27
27
|
dateProvider = _ref.dateProvider,
|
|
28
28
|
orgId = _ref.orgId,
|
|
29
|
-
logger = _ref.logger
|
|
30
|
-
idOverwriteEnabled = _ref.idOverwriteEnabled;
|
|
29
|
+
logger = _ref.logger;
|
|
31
30
|
return function (payload) {
|
|
32
31
|
if (payload.hasIdentity(_ecidNamespace.default)) {
|
|
33
32
|
// don't overwrite a user provided ecid identity
|
|
@@ -63,14 +62,6 @@ var _default = function _default(_ref) {
|
|
|
63
62
|
payload.addIdentity(_ecidNamespace.default, {
|
|
64
63
|
id: mcmid
|
|
65
64
|
});
|
|
66
|
-
|
|
67
|
-
if (idOverwriteEnabled) {
|
|
68
|
-
payload.mergeQuery({
|
|
69
|
-
identity: {
|
|
70
|
-
overwriteExisting: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
65
|
} else {
|
|
75
66
|
logger.info("Detected invalid or expired adobe_mc query string parameter.");
|
|
76
67
|
}
|
|
@@ -15,5 +15,5 @@ governing permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
// The __VERSION__ keyword will be replace at alloy build time with the package.json version.
|
|
17
17
|
// see babel-plugin-version
|
|
18
|
-
var _default = "2.11.0-alpha.
|
|
18
|
+
var _default = "2.11.0-alpha.2";
|
|
19
19
|
exports.default = _default;
|
|
@@ -12,7 +12,6 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
import { boolean } from "../../utils/validation";
|
|
13
13
|
const configValidators = {
|
|
14
14
|
thirdPartyCookiesEnabled: boolean().default(true),
|
|
15
|
-
idMigrationEnabled: boolean().default(true)
|
|
16
|
-
idOverwriteEnabled: boolean().default(false)
|
|
15
|
+
idMigrationEnabled: boolean().default(true)
|
|
17
16
|
};
|
|
18
17
|
export default configValidators;
|
|
@@ -39,8 +39,7 @@ const createIdentity = ({
|
|
|
39
39
|
}) => {
|
|
40
40
|
const {
|
|
41
41
|
orgId,
|
|
42
|
-
thirdPartyCookiesEnabled
|
|
43
|
-
idOverwriteEnabled
|
|
42
|
+
thirdPartyCookiesEnabled
|
|
44
43
|
} = config;
|
|
45
44
|
const getEcidFromVisitor = injectGetEcidFromVisitor({
|
|
46
45
|
logger,
|
|
@@ -71,8 +70,7 @@ const createIdentity = ({
|
|
|
71
70
|
locationSearch: window.document.location.search,
|
|
72
71
|
dateProvider: () => new Date(),
|
|
73
72
|
orgId,
|
|
74
|
-
logger
|
|
75
|
-
idOverwriteEnabled
|
|
73
|
+
logger
|
|
76
74
|
});
|
|
77
75
|
const awaitIdentityCookie = injectAwaitIdentityCookie({
|
|
78
76
|
doesIdentityCookieExist,
|
|
@@ -9,8 +9,7 @@ export default (({
|
|
|
9
9
|
locationSearch,
|
|
10
10
|
dateProvider,
|
|
11
11
|
orgId,
|
|
12
|
-
logger
|
|
13
|
-
idOverwriteEnabled
|
|
12
|
+
logger
|
|
14
13
|
}) => payload => {
|
|
15
14
|
if (payload.hasIdentity(ecidNamespace)) {
|
|
16
15
|
// don't overwrite a user provided ecid identity
|
|
@@ -41,14 +40,6 @@ export default (({
|
|
|
41
40
|
payload.addIdentity(ecidNamespace, {
|
|
42
41
|
id: mcmid
|
|
43
42
|
});
|
|
44
|
-
|
|
45
|
-
if (idOverwriteEnabled) {
|
|
46
|
-
payload.mergeQuery({
|
|
47
|
-
identity: {
|
|
48
|
-
overwriteExisting: true
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
43
|
} else {
|
|
53
44
|
logger.info("Detected invalid or expired adobe_mc query string parameter.");
|
|
54
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.11.0-alpha.
|
|
3
|
+
"version": "2.11.0-alpha.2",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"main": "libEs5/index.js",
|
|
6
6
|
"module": "libEs6/index.js",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"uuid": "^3.3.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@adobe/alloy": "^2.11.0-alpha.
|
|
67
|
+
"@adobe/alloy": "^2.11.0-alpha.1",
|
|
68
68
|
"@babel/cli": "^7.12.8",
|
|
69
69
|
"@babel/core": "^7.2.2",
|
|
70
70
|
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|