Socket
Socket
Sign inDemoInstall

@financial-times/privacy-us-privacy

Package Overview
Dependencies
1
Maintainers
18
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.8 to 0.3.9

1

dist/cjs/main.d.ts

@@ -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 @@ /**

3

dist/cjs/main.js
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc