Socket
Socket
Sign inDemoInstall

@opentelemetry/sdk-trace-base

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/sdk-trace-base - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

14

build/esm/platform/browser/export/BatchSpanProcessor.js

@@ -41,3 +41,3 @@ /*

var _this = this;
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && document != null) {
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && typeof document !== 'undefined') {
this._visibilityChangeListener = function () {

@@ -57,8 +57,10 @@ if (document.visibilityState === 'hidden') {

BatchSpanProcessor.prototype.onShutdown = function () {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
if (typeof document !== 'undefined') {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
};

@@ -65,0 +67,0 @@ return BatchSpanProcessor;

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

export declare const VERSION = "1.3.1";
export declare const VERSION = "1.4.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -23,3 +23,3 @@ /*

onInit(config) {
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && document != null) {
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && typeof document !== 'undefined') {
this._visibilityChangeListener = () => {

@@ -39,10 +39,12 @@ if (document.visibilityState === 'hidden') {

onShutdown() {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
if (typeof document !== 'undefined') {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
}
}
//# sourceMappingURL=BatchSpanProcessor.js.map

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

export declare const VERSION = "1.3.1";
export declare const VERSION = "1.4.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

onInit(config) {
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && document != null) {
if ((config === null || config === void 0 ? void 0 : config.disableAutoFlushOnDocumentHide) !== true && typeof document !== 'undefined') {
this._visibilityChangeListener = () => {

@@ -42,8 +42,10 @@ if (document.visibilityState === 'hidden') {

onShutdown() {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
if (typeof document !== 'undefined') {
if (this._visibilityChangeListener) {
document.removeEventListener('visibilitychange', this._visibilityChangeListener);
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
}
if (this._pageHideListener) {
document.removeEventListener('pagehide', this._pageHideListener);
}
}

@@ -50,0 +52,0 @@ }

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

export declare const VERSION = "1.3.1";
export declare const VERSION = "1.4.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.3.1';
exports.VERSION = '1.4.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/sdk-trace-base",
"version": "1.3.1",
"version": "1.4.0",
"description": "OpenTelemetry Tracing",

@@ -22,2 +22,3 @@ "main": "build/src/index.js",

"test:browser": "nyc karma start --single-run",
"test:webworker": "nyc karma start karma.worker.js --single-run",
"tdd": "npm run tdd:node",

@@ -29,2 +30,3 @@ "tdd:node": "npm run test -- --watch-extensions ts --watch",

"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"version": "node ../../scripts/version-update.js",

@@ -47,3 +49,3 @@ "watch": "tsc --build --watch tsconfig.all.json",

"engines": {
"node": ">=8.12.0"
"node": ">=14"
},

@@ -79,2 +81,3 @@ "files": [

"karma-mocha": "2.0.1",
"karma-mocha-webworker": "1.3.0",
"karma-spec-reporter": "0.0.32",

@@ -95,7 +98,7 @@ "karma-webpack": "4.0.2",

"dependencies": {
"@opentelemetry/core": "1.3.1",
"@opentelemetry/resources": "1.3.1",
"@opentelemetry/semantic-conventions": "1.3.1"
"@opentelemetry/core": "1.4.0",
"@opentelemetry/resources": "1.4.0",
"@opentelemetry/semantic-conventions": "1.4.0"
},
"gitHead": "51afd54bd63e46d5d530266761144c7be2f6b3a7"
"gitHead": "e39ab883b18636238ef0fd741df4ce5ed53e8d04"
}

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