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

@opentelemetry/opentelemetry-browser-detector

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/opentelemetry-browser-detector - npm Package Compare versions

Comparing version 0.34.0 to 0.35.0

8

build/esm/BrowserDetector.js

@@ -53,3 +53,3 @@ /*

import { diag } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';
import { Resource, } from '@opentelemetry/resources';
import { BROWSER_ATTRIBUTES } from './types';

@@ -83,3 +83,4 @@ /**

BrowserDetector.prototype._getResourceAttributes = function (browserResource, _config) {
if (!browserResource[BROWSER_ATTRIBUTES.USER_AGENT] && !browserResource[BROWSER_ATTRIBUTES.PLATFORM]) {
if (!browserResource[BROWSER_ATTRIBUTES.USER_AGENT] &&
!browserResource[BROWSER_ATTRIBUTES.PLATFORM]) {
diag.debug('BrowserDetector failed: Unable to find required browser resources. ');

@@ -97,3 +98,4 @@ return Resource.empty();

var browserAttribs = {};
var userAgentData = navigator.userAgentData;
var userAgentData = navigator
.userAgentData;
if (userAgentData) {

@@ -100,0 +102,0 @@ browserAttribs[BROWSER_ATTRIBUTES.PLATFORM] = userAgentData.platform;

@@ -6,4 +6,4 @@ export var BROWSER_ATTRIBUTES = {

LANGUAGE: 'browser.language',
USER_AGENT: 'browser.user_agent'
USER_AGENT: 'browser.user_agent',
};
//# sourceMappingURL=types.js.map

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '0.34.0';
export var VERSION = '0.35.0';
//# sourceMappingURL=version.js.map

@@ -17,3 +17,3 @@ /*

import { diag } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';
import { Resource, } from '@opentelemetry/resources';
import { BROWSER_ATTRIBUTES } from './types';

@@ -40,3 +40,4 @@ /**

_getResourceAttributes(browserResource, _config) {
if (!browserResource[BROWSER_ATTRIBUTES.USER_AGENT] && !browserResource[BROWSER_ATTRIBUTES.PLATFORM]) {
if (!browserResource[BROWSER_ATTRIBUTES.USER_AGENT] &&
!browserResource[BROWSER_ATTRIBUTES.PLATFORM]) {
diag.debug('BrowserDetector failed: Unable to find required browser resources. ');

@@ -53,3 +54,4 @@ return Resource.empty();

const browserAttribs = {};
const userAgentData = navigator.userAgentData;
const userAgentData = navigator
.userAgentData;
if (userAgentData) {

@@ -56,0 +58,0 @@ browserAttribs[BROWSER_ATTRIBUTES.PLATFORM] = userAgentData.platform;

@@ -6,4 +6,4 @@ export const BROWSER_ATTRIBUTES = {

LANGUAGE: 'browser.language',
USER_AGENT: 'browser.user_agent'
USER_AGENT: 'browser.user_agent',
};
//# sourceMappingURL=types.js.map

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '0.34.0';
export const VERSION = '0.35.0';
//# sourceMappingURL=version.js.map

@@ -42,3 +42,4 @@ "use strict";

_getResourceAttributes(browserResource, _config) {
if (!browserResource[types_1.BROWSER_ATTRIBUTES.USER_AGENT] && !browserResource[types_1.BROWSER_ATTRIBUTES.PLATFORM]) {
if (!browserResource[types_1.BROWSER_ATTRIBUTES.USER_AGENT] &&
!browserResource[types_1.BROWSER_ATTRIBUTES.PLATFORM]) {
api_1.diag.debug('BrowserDetector failed: Unable to find required browser resources. ');

@@ -55,3 +56,4 @@ return resources_1.Resource.empty();

const browserAttribs = {};
const userAgentData = navigator.userAgentData;
const userAgentData = navigator
.userAgentData;
if (userAgentData) {

@@ -58,0 +60,0 @@ browserAttribs[types_1.BROWSER_ATTRIBUTES.PLATFORM] = userAgentData.platform;

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

LANGUAGE: 'browser.language',
USER_AGENT: 'browser.user_agent'
USER_AGENT: 'browser.user_agent',
};
//# sourceMappingURL=types.js.map

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.34.0';
exports.VERSION = '0.35.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/opentelemetry-browser-detector",
"version": "0.34.0",
"version": "0.35.0",
"description": "OpenTelemetry Resource Detector for Browser",

@@ -12,4 +12,4 @@ "main": "build/src/index.js",

"prepublishOnly": "npm run compile",
"compile": "tsc --build tsconfig.all.json",
"clean": "tsc --build --clean tsconfig.all.json",
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"lint": "eslint . --ext .ts",

@@ -23,3 +23,3 @@ "lint:fix": "eslint . --ext .ts --fix",

"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.all.json",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",

@@ -66,3 +66,3 @@ "prewatch": "npm run precompile",

"nyc": "15.1.0",
"sinon": "14.0.0",
"sinon": "15.0.0",
"ts-loader": "8.4.0",

@@ -76,7 +76,7 @@ "ts-mocha": "10.0.0",

"dependencies": {
"@opentelemetry/resources": "1.8.0",
"@opentelemetry/semantic-conventions": "1.8.0"
"@opentelemetry/resources": "1.9.0",
"@opentelemetry/semantic-conventions": "1.9.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/browser-detector",
"gitHead": "7972edf6659fb6e0d5928a5cf7a35f26683e168f"
"gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121"
}

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

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