@adobe/alloy 2.26.0-beta.5 → 2.26.0-beta.7
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/createComponent.js +6 -2
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +1 -1
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs6/components/Identity/createComponent.js +6 -2
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +1 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/package.json +2 -2
|
@@ -83,12 +83,16 @@ var _default = ({
|
|
|
83
83
|
return undefined;
|
|
84
84
|
}
|
|
85
85
|
const ecidFromCookie = decodeKndctrCookie();
|
|
86
|
-
if (ecidFromCookie) {
|
|
86
|
+
if (ecidFromCookie && requestedNamespaces.includes(_ecidNamespace.default)) {
|
|
87
87
|
if (!namespaces) {
|
|
88
88
|
namespaces = {};
|
|
89
89
|
}
|
|
90
90
|
namespaces[_ecidNamespace.default] = ecidFromCookie;
|
|
91
|
-
|
|
91
|
+
if (requestedNamespaces.length === 1) {
|
|
92
|
+
// If only ECID is requested, we don't need to make an acquire request
|
|
93
|
+
// and can return immediately
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
92
96
|
}
|
|
93
97
|
return getIdentity(options);
|
|
94
98
|
}).then(() => {
|
|
@@ -42,7 +42,7 @@ var _default = ({
|
|
|
42
42
|
const properties = queryStringValue.split("|").reduce((memo, keyValue) => {
|
|
43
43
|
const [key, value] = keyValue.split("=");
|
|
44
44
|
memo[key] = (0, _decodeUriComponentSafely.default)(value);
|
|
45
|
-
memo[key] = memo[key].replace(/[^a-zA-Z0-9
|
|
45
|
+
memo[key] = memo[key].replace(/[^a-zA-Z0-9@.]/g, ""); // sanitization
|
|
46
46
|
return memo;
|
|
47
47
|
}, {});
|
|
48
48
|
// We are using MCMID and MCORGID to be compatible with Visitor.
|
|
@@ -14,4 +14,4 @@ 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 = exports.default = "2.26.0-beta.
|
|
17
|
+
var _default = exports.default = "2.26.0-beta.7";
|
|
@@ -80,12 +80,16 @@ export default ({
|
|
|
80
80
|
return undefined;
|
|
81
81
|
}
|
|
82
82
|
const ecidFromCookie = decodeKndctrCookie();
|
|
83
|
-
if (ecidFromCookie) {
|
|
83
|
+
if (ecidFromCookie && requestedNamespaces.includes(ecidNamespace)) {
|
|
84
84
|
if (!namespaces) {
|
|
85
85
|
namespaces = {};
|
|
86
86
|
}
|
|
87
87
|
namespaces[ecidNamespace] = ecidFromCookie;
|
|
88
|
-
|
|
88
|
+
if (requestedNamespaces.length === 1) {
|
|
89
|
+
// If only ECID is requested, we don't need to make an acquire request
|
|
90
|
+
// and can return immediately
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
89
93
|
}
|
|
90
94
|
return getIdentity(options);
|
|
91
95
|
}).then(() => {
|
|
@@ -40,7 +40,7 @@ export default ({
|
|
|
40
40
|
const properties = queryStringValue.split("|").reduce((memo, keyValue) => {
|
|
41
41
|
const [key, value] = keyValue.split("=");
|
|
42
42
|
memo[key] = decodeUriComponentSafely(value);
|
|
43
|
-
memo[key] = memo[key].replace(/[^a-zA-Z0-9
|
|
43
|
+
memo[key] = memo[key].replace(/[^a-zA-Z0-9@.]/g, ""); // sanitization
|
|
44
44
|
return memo;
|
|
45
45
|
}, {});
|
|
46
46
|
// We are using MCMID and MCORGID to be compatible with Visitor.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.26.0-beta.
|
|
3
|
+
"version": "2.26.0-beta.7",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "libEs5/index.js",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"uuid": "^11.1.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@adobe/alloy": "^2.26.0-beta.
|
|
90
|
+
"@adobe/alloy": "^2.26.0-beta.6",
|
|
91
91
|
"@babel/cli": "^7.26.4",
|
|
92
92
|
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
93
93
|
"@eslint/js": "^9.20.0",
|