@valu/3rdparty
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -11,2 +11,3 @@ /// <reference types="react" /> | ||
export declare function BlockIFrames(props: BlockIframesProps): JSX.Element; | ||
export declare function LazyScriptGlobal(): JSX.Element; | ||
export {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BlockIFrames = void 0; | ||
exports.LazyScriptGlobal = exports.BlockIFrames = void 0; | ||
var fs_1 = __importDefault(require("fs")); | ||
@@ -42,2 +42,8 @@ var react_1 = __importDefault(require("react")); | ||
exports.BlockIFrames = BlockIFrames; | ||
function LazyScriptGlobal() { | ||
return (react_1.default.createElement("script", { dangerouslySetInnerHTML: { | ||
__html: "if(!window.LSU){window.LSU=[]}", | ||
} })); | ||
} | ||
exports.LazyScriptGlobal = LazyScriptGlobal; | ||
//# sourceMappingURL=react-ssr.js.map |
@@ -11,2 +11,3 @@ /// <reference types="react" /> | ||
export declare function BlockIFrames(props: BlockIframesProps): JSX.Element; | ||
export declare function LazyScriptGlobal(): JSX.Element; | ||
export {}; |
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TrackingConsent = void 0; | ||
var STATUSES = ["not-given", "declined", "consented"]; | ||
function debug() { | ||
var args = []; | ||
var debug = function () { | ||
var _args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
_args[_i] = arguments[_i]; | ||
} | ||
console.log.apply(console, args); | ||
}; | ||
if (typeof window !== "undefined" && | ||
window.localStorage.valuTrackingConsentDebug) { | ||
debug = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
console.log.apply(console, __spreadArray(["[ValuTrackingConsent]"], args)); | ||
}; | ||
} | ||
@@ -12,0 +26,0 @@ var TrackingConsent = /** @class */ (function () { |
{ | ||
"name": "@valu/3rdparty", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Tools for managing 3rd party scripts and tracking consents (aka. cookie prompts) optionally via Google Tag Manager and/or Cookiebot.", | ||
@@ -5,0 +5,0 @@ "main": "dist/lazy-script.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60042
1103