@financial-times/privacy-us-privacy
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -6,2 +6,3 @@ declare global { | ||
} | ||
export declare function getUsPrivacyCookie(): string | null; | ||
export declare function __uspapi(command: string, version: number, callback?: Function): Promise<void>; | ||
@@ -8,0 +9,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setUSPrivacyCookie = exports.setUSPrivacy = exports.__uspapi = void 0; | ||
exports.setUSPrivacyCookie = exports.setUSPrivacy = exports.__uspapi = exports.getUsPrivacyCookie = void 0; | ||
const privacy_legislation_client_1 = require("@financial-times/privacy-legislation-client"); | ||
@@ -12,2 +12,3 @@ function getUsPrivacyCookie() { | ||
} | ||
exports.getUsPrivacyCookie = getUsPrivacyCookie; | ||
async function __uspapi(command, version, callback) { | ||
@@ -14,0 +15,0 @@ if (typeof callback !== "function") { |
@@ -6,2 +6,3 @@ declare global { | ||
} | ||
export declare function getUsPrivacyCookie(): string | null; | ||
export declare function __uspapi(command: string, version: number, callback?: Function): Promise<void>; | ||
@@ -8,0 +9,0 @@ /** |
import { fetchLegislation } from "@financial-times/privacy-legislation-client"; | ||
function getUsPrivacyCookie() { | ||
export function getUsPrivacyCookie() { | ||
const uspCookie = document.cookie.split("; ").find((row) => row.startsWith("usprivacy")); | ||
@@ -4,0 +4,0 @@ if (!uspCookie) { |
{ | ||
"name": "@financial-times/privacy-us-privacy", | ||
"description": "", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"main": "dist/cjs/main.js", | ||
@@ -15,3 +15,3 @@ "module": "dist/esm/main.js", | ||
"dependencies": { | ||
"@financial-times/privacy-legislation-client": "^0.3.8" | ||
"@financial-times/privacy-legislation-client": "^0.3.9" | ||
}, | ||
@@ -18,0 +18,0 @@ "scripts": { |
@@ -9,3 +9,3 @@ import { fetchLegislation } from "@financial-times/privacy-legislation-client"; | ||
function getUsPrivacyCookie(): string | null { | ||
export function getUsPrivacyCookie(): string | null { | ||
const uspCookie = document.cookie.split("; ").find((row) => row.startsWith("usprivacy")); | ||
@@ -12,0 +12,0 @@ if (!uspCookie) { |
17706
463