@peax/consent-core 0.9.3 → 0.10.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.
|
@@ -253,7 +253,7 @@ function createXhrInterceptor(target, rules, permissions, report) {
|
|
|
253
253
|
if (args.length < 2) return Reflect.apply(nativeOpen, this, args);
|
|
254
254
|
const method = domString(args[0]);
|
|
255
255
|
const urlInput = domString(args[1]);
|
|
256
|
-
const rest = args.slice(2, 5).map((value, index) => index === 0 ?
|
|
256
|
+
const rest = args.slice(2, 5).map((value, index) => index === 0 ? Boolean(value) : value == null ? null : domString(value));
|
|
257
257
|
let url;
|
|
258
258
|
try {
|
|
259
259
|
url = new target.URL(urlInput, target.document.baseURI);
|
package/dist/index.js
CHANGED
|
@@ -355,7 +355,7 @@ function indexSnapshot({ currentAppPolicy, state }) {
|
|
|
355
355
|
function snapshotRequirements(snapshot) {
|
|
356
356
|
return Object.freeze(getMismatchedConsent(snapshot).map((requirement) => Object.freeze(requirement)));
|
|
357
357
|
}
|
|
358
|
-
var maxReentrantCommits =
|
|
358
|
+
var maxReentrantCommits = 1e3;
|
|
359
359
|
/** Creates an isolated runtime from decoded data; invalid input creates no instance. */
|
|
360
360
|
function createConsent(input) {
|
|
361
361
|
const result = validateWithSchema(createConsentOptionsSchema, input);
|