Skip to content

Commit

Permalink
fix: Webpack v5 complain about named export from JSON modules (#6755)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiermarinros authored and idettman committed May 21, 2021
1 parent 855bff0 commit 8141214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/gdprEnforcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { registerSyncInner } from '../src/adapters/bidderFactory.js';
import { getHook } from '../src/hook.js';
import { validateStorageEnforcement } from '../src/storageManager.js';
import events from '../src/events.js';
import { EVENTS } from '../src/constants.json';
import CONSTANTS from '../src/constants.json';

const TCF2 = {
'purpose1': { id: 1, name: 'storage' },
Expand Down Expand Up @@ -345,10 +345,10 @@ function emitTCF2FinalResults() {
analyticsBlocked: formatArray(analyticsBlocked)
};

events.emit(EVENTS.TCF2_ENFORCEMENT, tcf2FinalResults);
events.emit(CONSTANTS.EVENTS.TCF2_ENFORCEMENT, tcf2FinalResults);
}

events.on(EVENTS.AUCTION_END, emitTCF2FinalResults);
events.on(CONSTANTS.EVENTS.AUCTION_END, emitTCF2FinalResults);

/*
Set of callback functions used to detect presence of a TCF rule, passed as the second argument to find().
Expand Down

0 comments on commit 8141214

Please sign in to comment.