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

@datadog/browser-core

Package Overview
Dependencies
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/browser-core - npm Package Compare versions

Comparing version 1.15.3 to 1.16.0

1

cjs/configuration.d.ts

@@ -61,2 +61,3 @@ import { BuildEnv, Datacenter } from './init';

internalMonitoringEndpoint?: string;
service?: string;
isEnabled: (feature: string) => boolean;

@@ -63,0 +64,0 @@ replica?: ReplicaConfiguration;

4

cjs/cookie.js
"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

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