@datadog/browser-core
Advanced tools
Comparing version 1.15.3 to 1.16.0
@@ -61,2 +61,3 @@ import { BuildEnv, Datacenter } from './init'; | ||
internalMonitoringEndpoint?: string; | ||
service?: string; | ||
isEnabled: (feature: string) => boolean; | ||
@@ -63,0 +64,0 @@ replica?: ReplicaConfiguration; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var utils_1 = require("./utils"); | ||
exports.COOKIE_ACCESS_DELAY = 1000; | ||
@@ -40,4 +41,3 @@ function cacheCookieAccess(name) { | ||
function getCookie(name) { | ||
var matches = document.cookie.match("(^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); | ||
return matches ? matches.pop() : undefined; | ||
return utils_1.findCommaSeparatedValue(document.cookie, name); | ||
} | ||
@@ -44,0 +44,0 @@ exports.getCookie = getCookie; |
@@ -115,2 +115,3 @@ export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export declare function getLinkElementOrigin(element: Location | HTMLAnchorElement | URL): string; | ||
export declare function findCommaSeparatedValue(rawString: string, name: string): string | undefined; | ||
export {}; |
@@ -347,2 +347,7 @@ "use strict"; | ||
exports.getLinkElementOrigin = getLinkElementOrigin; | ||
function findCommaSeparatedValue(rawString, name) { | ||
var matches = rawString.match("(?:^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); | ||
return matches ? matches[1] : undefined; | ||
} | ||
exports.findCommaSeparatedValue = findCommaSeparatedValue; | ||
//# sourceMappingURL=utils.js.map |
@@ -61,2 +61,3 @@ import { BuildEnv, Datacenter } from './init'; | ||
internalMonitoringEndpoint?: string; | ||
service?: string; | ||
isEnabled: (feature: string) => boolean; | ||
@@ -63,0 +64,0 @@ replica?: ReplicaConfiguration; |
@@ -0,1 +1,2 @@ | ||
import { findCommaSeparatedValue } from './utils'; | ||
export var COOKIE_ACCESS_DELAY = 1000; | ||
@@ -36,4 +37,3 @@ export function cacheCookieAccess(name) { | ||
export function getCookie(name) { | ||
var matches = document.cookie.match("(^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); | ||
return matches ? matches.pop() : undefined; | ||
return findCommaSeparatedValue(document.cookie, name); | ||
} | ||
@@ -40,0 +40,0 @@ export function areCookiesAuthorized() { |
@@ -115,2 +115,3 @@ export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export declare function getLinkElementOrigin(element: Location | HTMLAnchorElement | URL): string; | ||
export declare function findCommaSeparatedValue(rawString: string, name: string): string | undefined; | ||
export {}; |
@@ -319,2 +319,6 @@ import { __assign, __spreadArrays } from "tslib"; | ||
} | ||
export function findCommaSeparatedValue(rawString, name) { | ||
var matches = rawString.match("(?:^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); | ||
return matches ? matches[1] : undefined; | ||
} | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "1.15.3", | ||
"version": "1.16.0", | ||
"license": "Apache-2.0", | ||
@@ -15,3 +15,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"tslib": "1.10.0" | ||
"tslib": "^1.10.0" | ||
}, | ||
@@ -27,3 +27,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "ffddd2d8dc1127c8b7d19c12d5a30385e316b80a" | ||
"gitHead": "1c0b7cfc6d3d7d3f43a9d6b4a6e89f2b5173af36" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
380718
6334
+ Addedtslib@1.14.1(transitive)
- Removedtslib@1.10.0(transitive)
Updatedtslib@^1.10.0