We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having cacheString in global make unexpected behavior.
Example:
const {ConsentString} = require('consent-string'); const globalVendorList = {vendorListVersion: 1, purposes: [{id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}], vendors: [{id: 10, name: 'vendor1'}, {id: 20, name: 'vendor2'}]}; const test1 = new ConsentString(); test1.setGlobalVendorList(globalVendorList); test1.setCmpId(7); const test2 = new ConsentString(); test2.setGlobalVendorList(globalVendorList); test2.setCmpId(45); console.log('TEST1:', test1.getConsentString(false)); console.log('TEST2:', test2.getConsentString(false)); console.log(test1.getConsentString(false) === test2.getConsentString(false)) ;
In that case the consentString of the first object is returned on the second object!
The text was updated successfully, but these errors were encountered:
no issue on 1.4.2
Sorry, something went wrong.
I have created a PR: #50
No branches or pull requests
Having cacheString in global make unexpected behavior.
Example:
In that case the consentString of the first object is returned on the second object!
The text was updated successfully, but these errors were encountered: