@adobe/alloy 2.31.1-beta.0 → 2.31.1-beta.1
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/Advertising/createComponent.js +8 -0
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs6/components/Advertising/createComponent.js +8 -0
- package/libEs6/constants/libraryVersion.js +1 -1
- package/package.json +1 -1
- package/types/components/Advertising/createComponent.d.ts.map +1 -1
|
@@ -44,6 +44,14 @@ var _default = ({
|
|
|
44
44
|
event,
|
|
45
45
|
advertising = {}
|
|
46
46
|
}) => {
|
|
47
|
+
const {
|
|
48
|
+
state
|
|
49
|
+
} = consent.current();
|
|
50
|
+
if (state !== "in") {
|
|
51
|
+
// Consent not yet granted — skip advertising ID resolution
|
|
52
|
+
// but don't block the sendEvent call.
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
47
55
|
return (0, _onBeforeSendEventHandler.default)({
|
|
48
56
|
cookieManager,
|
|
49
57
|
logger,
|
|
@@ -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.31.1-beta.
|
|
17
|
+
var _default = exports.default = "2.31.1-beta.1";
|
|
@@ -42,6 +42,14 @@ export default ({
|
|
|
42
42
|
event,
|
|
43
43
|
advertising = {}
|
|
44
44
|
}) => {
|
|
45
|
+
const {
|
|
46
|
+
state
|
|
47
|
+
} = consent.current();
|
|
48
|
+
if (state !== "in") {
|
|
49
|
+
// Consent not yet granted — skip advertising ID resolution
|
|
50
|
+
// but don't block the sendEvent call.
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
45
53
|
return handleOnBeforeSendEvent({
|
|
46
54
|
cookieManager,
|
|
47
55
|
logger,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Advertising/createComponent.js"],"names":[],"mappings":"AAee;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Advertising/createComponent.js"],"names":[],"mappings":"AAee;;;;;;;;;;;;;;;;EA8Cd"}
|