@adobe/alloy 2.16.0-alpha.1 → 2.17.0-beta.0
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/Audiences/index.js +9 -1
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/utils/cookieJar.js +7 -2
- package/libEs6/components/Audiences/index.js +7 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/utils/cookieJar.js +7 -2
- package/package.json +3 -3
|
@@ -22,9 +22,17 @@ governing permissions and limitations under the License.
|
|
|
22
22
|
var createAudiences = function createAudiences(_ref) {
|
|
23
23
|
var logger = _ref.logger,
|
|
24
24
|
fireReferrerHideableImage = _ref.fireReferrerHideableImage;
|
|
25
|
+
|
|
26
|
+
// we override the js-cookie converter to encode the cookie value similar on how it is in DIL (PDCL-10238)
|
|
27
|
+
var cookieJarWithEncoding = _utils.cookieJar.withConverter({
|
|
28
|
+
write: function write(value) {
|
|
29
|
+
return encodeURIComponent(value);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
25
33
|
var loggingCookieJar = (0, _utils.createLoggingCookieJar)({
|
|
26
34
|
logger: logger,
|
|
27
|
-
cookieJar:
|
|
35
|
+
cookieJar: cookieJarWithEncoding
|
|
28
36
|
});
|
|
29
37
|
var processDestinations = (0, _injectProcessDestinations.default)({
|
|
30
38
|
fireReferrerHideableImage: fireReferrerHideableImage,
|
|
@@ -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.
|
|
18
|
+
var _default = "2.17.0-beta.0";
|
|
19
19
|
exports.default = _default;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _jsCookie = require("js-cookie");
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Copyright 2019 Adobe. All rights reserved.
|
|
@@ -15,5 +15,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
15
15
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
16
|
governing permissions and limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
var _default =
|
|
18
|
+
var _default = {
|
|
19
|
+
get: _jsCookie.default.get,
|
|
20
|
+
set: _jsCookie.default.set,
|
|
21
|
+
remove: _jsCookie.default.remove,
|
|
22
|
+
withConverter: _jsCookie.default.withConverter
|
|
23
|
+
};
|
|
19
24
|
exports.default = _default;
|
|
@@ -17,9 +17,15 @@ const createAudiences = ({
|
|
|
17
17
|
logger,
|
|
18
18
|
fireReferrerHideableImage
|
|
19
19
|
}) => {
|
|
20
|
+
// we override the js-cookie converter to encode the cookie value similar on how it is in DIL (PDCL-10238)
|
|
21
|
+
const cookieJarWithEncoding = cookieJar.withConverter({
|
|
22
|
+
write: value => {
|
|
23
|
+
return encodeURIComponent(value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
20
26
|
const loggingCookieJar = createLoggingCookieJar({
|
|
21
27
|
logger,
|
|
22
|
-
cookieJar
|
|
28
|
+
cookieJar: cookieJarWithEncoding
|
|
23
29
|
});
|
|
24
30
|
const processDestinations = injectProcessDestinations({
|
|
25
31
|
fireReferrerHideableImage,
|
|
@@ -9,5 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import cookie from "
|
|
13
|
-
export default
|
|
12
|
+
import cookie from "js-cookie";
|
|
13
|
+
export default {
|
|
14
|
+
get: cookie.get,
|
|
15
|
+
set: cookie.set,
|
|
16
|
+
remove: cookie.remove,
|
|
17
|
+
withConverter: cookie.withConverter
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0-beta.0",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"main": "libEs5/index.js",
|
|
6
6
|
"module": "libEs6/index.js",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
}
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@adobe/reactor-cookie": "^1.0.0",
|
|
61
60
|
"@adobe/reactor-load-script": "^1.1.1",
|
|
62
61
|
"@adobe/reactor-object-assign": "^1.0.0",
|
|
63
62
|
"@adobe/reactor-query-string": "^1.0.0",
|
|
64
63
|
"css.escape": "^1.5.1",
|
|
64
|
+
"js-cookie": "2.2.1",
|
|
65
65
|
"uuid": "^3.3.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@adobe/alloy": "^2.16.0
|
|
68
|
+
"@adobe/alloy": "^2.16.0",
|
|
69
69
|
"@babel/cli": "^7.12.8",
|
|
70
70
|
"@babel/core": "^7.2.2",
|
|
71
71
|
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|