Socket
Socket
Sign inDemoInstall

@datadog/browser-core

Package Overview
Dependencies
Maintainers
1
Versions
256
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 5.13.0 to 5.14.0

2

cjs/boot/init.js

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

var publicApi = (0, polyfills_1.assign)({
version: "5.13.0",
version: "5.14.0",
// This API method is intentionally not monitored, since the only thing executed is the

@@ -12,0 +12,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and

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

var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding;
var tags = ["sdk_version:".concat("5.13.0"), "api:".concat(api)].concat(configurationTags);
var tags = ["sdk_version:".concat("5.14.0"), "api:".concat(api)].concat(configurationTags);
if (flushReason && (0, experimentalFeatures_1.isExperimentalFeatureEnabled)(experimentalFeatures_1.ExperimentalFeature.COLLECT_FLUSH_REASON)) {

@@ -73,3 +73,3 @@ tags.push("flush_reason:".concat(flushReason));

"dd-api-key=".concat(clientToken),
"dd-evp-origin-version=".concat(encodeURIComponent("5.13.0")),
"dd-evp-origin-version=".concat(encodeURIComponent("5.14.0")),
'dd-evp-origin=browser',

@@ -76,0 +76,0 @@ "dd-request-id=".concat((0, stringUtils_1.generateUUID)()),

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

service: telemetryService,
version: "5.13.0",
version: "5.14.0",
source: 'browser',

@@ -58,0 +58,0 @@ _dd: {

@@ -9,2 +9,1 @@ export declare function throttle<T extends (...args: any[]) => void>(fn: T, wait: number, options?: {

export declare function noop(): void;
export type ListenerHandler = () => void;

@@ -18,8 +18,4 @@ export declare function includes(candidate: string, search: string): boolean;

export declare function endsWith(candidate: string, search: string): boolean;
export declare function elementMatches(element: Element & {
msMatchesSelector?(selector: string): boolean;
}, selector: string): boolean;
export declare function cssEscape(str: string): string;
export declare function assign<T, U>(target: T, source: U): T & U;
export declare function assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
export declare function assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assign = exports.cssEscape = exports.elementMatches = exports.endsWith = exports.startsWith = exports.objectEntries = exports.objectValues = exports.forEach = exports.findLast = exports.find = exports.arrayFrom = exports.includes = void 0;
exports.assign = exports.endsWith = exports.startsWith = exports.objectEntries = exports.objectValues = exports.forEach = exports.findLast = exports.find = exports.arrayFrom = exports.includes = void 0;
function includes(candidate, search) {

@@ -64,33 +64,2 @@ return candidate.indexOf(search) !== -1;

exports.endsWith = endsWith;
function elementMatches(element, selector) {
if (element.matches) {
return element.matches(selector);
}
// IE11 support
if (element.msMatchesSelector) {
return element.msMatchesSelector(selector);
}
return false;
}
exports.elementMatches = elementMatches;
// https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/selector/escapeSelector.js
function cssEscape(str) {
if (window.CSS && window.CSS.escape) {
return window.CSS.escape(str);
}
// eslint-disable-next-line no-control-regex
return str.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, function (ch, asCodePoint) {
if (asCodePoint) {
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
if (ch === '\0') {
return '\uFFFD';
}
// Control characters and (dependent upon position) numbers get escaped as code points
return "".concat(ch.slice(0, -1), "\\").concat(ch.charCodeAt(ch.length - 1).toString(16), " ");
}
// Other potentially-special ASCII characters get backslash-escaped
return "\\".concat(ch);
});
}
exports.cssEscape = cssEscape;
function assign(target) {

@@ -97,0 +66,0 @@ var toAssign = [];

@@ -6,3 +6,3 @@ import { catchUserErrors } from '../tools/catchUserErrors';

var publicApi = assign({
version: "5.13.0",
version: "5.14.0",
// This API method is intentionally not monitored, since the only thing executed is the

@@ -9,0 +9,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and

@@ -57,3 +57,3 @@ import { timeStampNow } from '../../tools/utils/timeUtils';

var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding;
var tags = ["sdk_version:".concat("5.13.0"), "api:".concat(api)].concat(configurationTags);
var tags = ["sdk_version:".concat("5.14.0"), "api:".concat(api)].concat(configurationTags);
if (flushReason && isExperimentalFeatureEnabled(ExperimentalFeature.COLLECT_FLUSH_REASON)) {

@@ -69,3 +69,3 @@ tags.push("flush_reason:".concat(flushReason));

"dd-api-key=".concat(clientToken),
"dd-evp-origin-version=".concat(encodeURIComponent("5.13.0")),
"dd-evp-origin-version=".concat(encodeURIComponent("5.14.0")),
'dd-evp-origin=browser',

@@ -72,0 +72,0 @@ "dd-request-id=".concat(generateUUID()),

@@ -52,3 +52,3 @@ import { ConsoleApiName } from '../../tools/display';

service: telemetryService,
version: "5.13.0",
version: "5.14.0",
source: 'browser',

@@ -55,0 +55,0 @@ _dd: {

@@ -9,2 +9,1 @@ export declare function throttle<T extends (...args: any[]) => void>(fn: T, wait: number, options?: {

export declare function noop(): void;
export type ListenerHandler = () => void;

@@ -18,8 +18,4 @@ export declare function includes(candidate: string, search: string): boolean;

export declare function endsWith(candidate: string, search: string): boolean;
export declare function elementMatches(element: Element & {
msMatchesSelector?(selector: string): boolean;
}, selector: string): boolean;
export declare function cssEscape(str: string): string;
export declare function assign<T, U>(target: T, source: U): T & U;
export declare function assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
export declare function assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;

@@ -52,31 +52,2 @@ export function includes(candidate, search) {

}
export function elementMatches(element, selector) {
if (element.matches) {
return element.matches(selector);
}
// IE11 support
if (element.msMatchesSelector) {
return element.msMatchesSelector(selector);
}
return false;
}
// https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/selector/escapeSelector.js
export function cssEscape(str) {
if (window.CSS && window.CSS.escape) {
return window.CSS.escape(str);
}
// eslint-disable-next-line no-control-regex
return str.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, function (ch, asCodePoint) {
if (asCodePoint) {
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
if (ch === '\0') {
return '\uFFFD';
}
// Control characters and (dependent upon position) numbers get escaped as code points
return "".concat(ch.slice(0, -1), "\\").concat(ch.charCodeAt(ch.length - 1).toString(16), " ");
}
// Other potentially-special ASCII characters get backslash-escaped
return "\\".concat(ch);
});
}
export function assign(target) {

@@ -83,0 +54,0 @@ var toAssign = [];

{
"name": "@datadog/browser-core",
"version": "5.13.0",
"version": "5.14.0",
"license": "Apache-2.0",

@@ -26,3 +26,3 @@ "main": "cjs/index.js",

},
"gitHead": "b703afd5ef260f5b6b023e42c3696771cd8976e9"
"gitHead": "4b81ddc33d4b3b137f9bbf7d0478845c74ae8d50"
}

@@ -46,3 +46,1 @@ import type { TimeoutId } from '../timer'

export function noop() {}
export type ListenerHandler = () => void

@@ -76,34 +76,2 @@ export function includes(candidate: string, search: string): boolean

export function elementMatches(element: Element & { msMatchesSelector?(selector: string): boolean }, selector: string) {
if (element.matches) {
return element.matches(selector)
}
// IE11 support
if (element.msMatchesSelector) {
return element.msMatchesSelector(selector)
}
return false
}
// https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/selector/escapeSelector.js
export function cssEscape(str: string) {
if (window.CSS && window.CSS.escape) {
return window.CSS.escape(str)
}
// eslint-disable-next-line no-control-regex
return str.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, function (ch, asCodePoint) {
if (asCodePoint) {
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
if (ch === '\0') {
return '\uFFFD'
}
// Control characters and (dependent upon position) numbers get escaped as code points
return `${ch.slice(0, -1)}\\${ch.charCodeAt(ch.length - 1).toString(16)} `
}
// Other potentially-special ASCII characters get backslash-escaped
return `\\${ch}`
})
}
interface Assignable {

@@ -110,0 +78,0 @@ [key: string]: any

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