@adobe/alloy 2.11.0-alpha.3 → 2.11.0-alpha.4

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.
@@ -44,7 +44,7 @@ var _default = function _default(_ref) {
44
44
  orgId = _ref.orgId;
45
45
  return function (ecid, url) {
46
46
  var ts = Math.round(dateProvider().getTime() / 1000);
47
- var adobemc = encodeURIComponent("TS=" + ts + "|MCMID=" + ecid + "|MCORGID=" + orgId);
47
+ var adobemc = encodeURIComponent("TS=" + ts + "|MCMID=" + ecid + "|MCORGID=" + encodeURIComponent(orgId));
48
48
 
49
49
  var _url$match = url.match(URL_REGEX),
50
50
  _url$match2 = _slicedToArray(_url$match, 4),
@@ -53,7 +53,7 @@ var _default = function _default(_ref) {
53
53
 
54
54
  var ts = parseInt(properties.TS, 10);
55
55
  var mcmid = properties.MCMID;
56
- var mcorgid = properties.MCORGID;
56
+ var mcorgid = decodeURIComponent(properties.MCORGID);
57
57
 
58
58
  if ( // When TS is not specified or not a number, the following inequality returns false.
59
59
  // All inequalities with NaN variables are false.
@@ -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.3";
18
+ var _default = "2.11.0-alpha.4";
19
19
  exports.default = _default;
@@ -28,7 +28,7 @@ export default (({
28
28
  orgId
29
29
  }) => (ecid, url) => {
30
30
  const ts = Math.round(dateProvider().getTime() / 1000);
31
- const adobemc = encodeURIComponent(`TS=${ts}|MCMID=${ecid}|MCORGID=${orgId}`);
31
+ const adobemc = encodeURIComponent(`TS=${ts}|MCMID=${ecid}|MCORGID=${encodeURIComponent(orgId)}`);
32
32
  const [, location, queryString, fragment] = url.match(URL_REGEX);
33
33
  const separator = getSeparator(queryString);
34
34
  return `${location}${queryString}${separator}adobe_mc=${adobemc}${fragment}`;
@@ -31,7 +31,7 @@ export default (({
31
31
 
32
32
  const ts = parseInt(properties.TS, 10);
33
33
  const mcmid = properties.MCMID;
34
- const mcorgid = properties.MCORGID;
34
+ const mcorgid = decodeURIComponent(properties.MCORGID);
35
35
 
36
36
  if ( // When TS is not specified or not a number, the following inequality returns false.
37
37
  // All inequalities with NaN variables are false.
@@ -11,4 +11,4 @@ governing permissions and limitations under the License.
11
11
  */
12
12
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
13
13
  // see babel-plugin-version
14
- export default "2.11.0-alpha.3";
14
+ export default "2.11.0-alpha.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.11.0-alpha.3",
3
+ "version": "2.11.0-alpha.4",
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.2",
67
+ "@adobe/alloy": "^2.11.0-alpha.3",
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",