Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coinbase/cookie-manager

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinbase/cookie-manager - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

4

CHANGELOG.md
# Changelog
## 1.1.6 (07/17/2024)
- Include trackerMatches in the list of exported methods
## 1.1.5 (06/12/2024)

@@ -4,0 +8,0 @@

@@ -16,1 +16,2 @@ export { TRACKER_CATEGORIES } from './constants';

export { getAppTrackingTransparencyFromQueryParams, persistMobileAppPreferences, } from './utils/persistMobileAppPreferences';
export { default as trackerMatches } from './utils/trackerMatches';

4

dist/index.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.persistMobileAppPreferences = exports.getAppTrackingTransparencyFromQueryParams = exports.isOptOut = exports.getDomainWithoutSubdomain = exports.getDefaultTrackingPreference = exports.areCookiesEnabled = exports.TrackingCategory = exports.TrackerType = exports.Region = exports.Framework = exports.useTrackingManager = exports.Provider = exports.useTrackingPreference = exports.useSetTrackingPreference = exports.useSavedTrackingPreferenceFromMobileApp = exports.useSavedTrackingPreference = exports.useRequiredCategories = exports.useHasConsent = exports.useCookie = exports.TRACKER_CATEGORIES = void 0;
exports.trackerMatches = exports.persistMobileAppPreferences = exports.getAppTrackingTransparencyFromQueryParams = exports.isOptOut = exports.getDomainWithoutSubdomain = exports.getDefaultTrackingPreference = exports.areCookiesEnabled = exports.TrackingCategory = exports.TrackerType = exports.Region = exports.Framework = exports.useTrackingManager = exports.Provider = exports.useTrackingPreference = exports.useSetTrackingPreference = exports.useSavedTrackingPreferenceFromMobileApp = exports.useSavedTrackingPreference = exports.useRequiredCategories = exports.useHasConsent = exports.useCookie = exports.TRACKER_CATEGORIES = void 0;
var constants_1 = require("./constants");

@@ -43,1 +43,3 @@ Object.defineProperty(exports, "TRACKER_CATEGORIES", { enumerable: true, get: function () { return constants_1.TRACKER_CATEGORIES; } });

Object.defineProperty(exports, "persistMobileAppPreferences", { enumerable: true, get: function () { return persistMobileAppPreferences_1.persistMobileAppPreferences; } });
var trackerMatches_1 = require("./utils/trackerMatches");
Object.defineProperty(exports, "trackerMatches", { enumerable: true, get: function () { return __importDefault(trackerMatches_1).default; } });
{
"name": "@coinbase/cookie-manager",
"version": "1.1.5",
"version": "1.1.6",
"description": "Coinbase Cookie Manager",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -528,4 +528,26 @@ # Cookie Manager

### trackerMatches
Used for determining if the passed value matches the tracker criteria.
This will match the if the value or regex produces a match on the passed value
Example usage:
```typescript
import { trackerMatches } from '@coinbase/cookie-manager';
const tracker: Tracker = {
id: 'id-regex',
type: TrackerType.COOKIE,
regex: 'id(?:_[a-f0-9]{32}|undefined)(?:.*)',
};
trackerMatches(tracker, 'id_ac7a5c3da45e3612b44543a702e42b01')
```
## License
Licensed under the Apache License. See [LICENSE](./LICENSE.md) for more information.

@@ -22,1 +22,2 @@ export { TRACKER_CATEGORIES } from './constants';

} from './utils/persistMobileAppPreferences';
export { default as trackerMatches } from './utils/trackerMatches';
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc