@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.
@@ -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.0";
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,
@@ -13,4 +13,4 @@ governing permissions and limitations under the License.
13
13
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
14
14
  // see babel-plugin-version
15
15
 
16
- export default "2.31.1-beta.0";
16
+ export default "2.31.1-beta.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.31.1-beta.0",
3
+ "version": "2.31.1-beta.1",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "type": "module",
6
6
  "main": "libEs5/index.js",
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Advertising/createComponent.js"],"names":[],"mappings":"AAee;;;;;;;;;;;;;;;;EAwCd"}
1
+ {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Advertising/createComponent.js"],"names":[],"mappings":"AAee;;;;;;;;;;;;;;;;EA8Cd"}