@coinbase/cookie-manager
Advanced tools
Comparing version 1.1.5 to 1.1.6
# 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'; |
@@ -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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141984
2939
553