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

@uptrace/web

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uptrace/web - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

build/src/client.d.ts

@@ -1,3 +0,3 @@

import { Client, Config } from '@uptrace/core';
import { Config, Client } from '@uptrace/core';
export declare function createClient(cfg?: Config): Client;
//# sourceMappingURL=client.d.ts.map

@@ -15,6 +15,12 @@ "use strict";

if (!cfg.provider) {
var provider = new web_1.WebTracerProvider({
resource: cfg.resource,
sampler: cfg.sampler,
});
var webConfig = {
//plugins: [new DocumentLoad()],
};
if (cfg.resource) {
webConfig.resource = cfg.resource;
}
if (cfg.sampler) {
webConfig.sampler = cfg.sampler;
}
var provider = new web_1.WebTracerProvider(webConfig);
provider.register({

@@ -28,5 +34,2 @@ //contextManager: new ZoneContextManager(),

}
if (cfg.filter) {
cfg.filters.push(cfg.filter);
}
cfg.filters.unshift(function (span) {

@@ -44,3 +47,3 @@ if (!hasWindow) {

});
var client = new core_1.Client(cfg);
var client = core_1.createClient(cfg);
if (hasWindow) {

@@ -47,0 +50,0 @@ setupOnError(client);

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

export * from '@uptrace/core';
export * from './client';
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("@uptrace/core"), exports);
__exportStar(require("./client"), exports);
//# sourceMappingURL=index.js.map

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

export declare const VERSION = "0.1.1";
export declare const VERSION = "0.1.2";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.1.1';
exports.VERSION = '0.1.2';
//# sourceMappingURL=version.js.map
{
"name": "@uptrace/web",
"version": "0.1.1",
"version": "0.1.2",
"description": "Uptrace JS exporter for browsers",

@@ -54,11 +54,11 @@ "main": "build/src/index.js",

"@opentelemetry/context-zone": "^0.11.0",
"@opentelemetry/plugin-document-load": "^0.9.0",
"@opentelemetry/plugin-document-load": "^0.10.0",
"@opentelemetry/tracing": "^0.11.0",
"@opentelemetry/web": "^0.11.0",
"@uptrace/core": "^0.1.1"
"@uptrace/core": "^0.1.2"
},
"devDependencies": {
"@types/node": "14.6.4",
"@typescript-eslint/eslint-plugin": "4.0.1",
"eslint": "7.8.1",
"@types/node": "14.11.1",
"@typescript-eslint/eslint-plugin": "4.1.1",
"eslint": "7.9.0",
"eslint-plugin-node": "11.1.0",

@@ -70,4 +70,4 @@ "eslint-plugin-prettier": "3.1.4",

"ts-mocha": "7.0.0",
"typescript": "4.0.2"
"typescript": "4.0.3"
}
}

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