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.25.0 to 1.0.0

11

build/src/uptrace.js

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

var hasWindow = typeof window !== undefined;
var _CLIENT = core_1.createClient(core_1.parseDSN('https://TOKEN@api.uptrace.dev/PROJECT_ID'));
var _CLIENT = (0, core_1.createClient)((0, core_1.parseDSN)('https://TOKEN@api.uptrace.dev/PROJECT_ID'));
function traceUrl(span) {

@@ -30,6 +30,5 @@ return _CLIENT.traceUrl(span);

var _a, _b;
cfg.resource = core_1.createResource(cfg.resource, cfg.resourceAttributes, (_a = cfg.serviceName) !== null && _a !== void 0 ? _a : '', (_b = cfg.serviceVersion) !== null && _b !== void 0 ? _b : '');
cfg.resource = (0, core_1.createResource)(cfg.resource, cfg.resourceAttributes, (_a = cfg.serviceName) !== null && _a !== void 0 ? _a : '', (_b = cfg.serviceVersion) !== null && _b !== void 0 ? _b : '');
}
function configureTracing(cfg) {
var _a;
if (!cfg.dsn && hasWindow && window.UPTRACE_DSN) {

@@ -40,9 +39,9 @@ cfg.dsn = window.UPTRACE_DSN;

try {
dsn = core_1.parseDSN(cfg.dsn);
dsn = (0, core_1.parseDSN)(cfg.dsn);
}
catch (err) {
console.error('Uptrace is disabled:', (_a = err.message) !== null && _a !== void 0 ? _a : err);
console.error('Uptrace is disabled:', String(err));
return;
}
_CLIENT = core_1.createClient(dsn);
_CLIENT = (0, core_1.createClient)(dsn);
// if (hasWindow) {

@@ -49,0 +48,0 @@ // const savedHook = cfg.beforeSpanSend

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

export declare const VERSION = "0.25.0";
export declare const VERSION = "1.0.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -53,20 +53,20 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/api": "1.0.2",
"@opentelemetry/api": "1.0.3",
"@opentelemetry/exporter-collector": "0.25.0",
"@opentelemetry/sdk-trace-base": "0.25.0",
"@opentelemetry/sdk-trace-web": "0.25.0",
"@uptrace/core": "^0.25.0"
"@opentelemetry/sdk-trace-base": "1.0.0",
"@opentelemetry/sdk-trace-web": "1.0.0",
"@uptrace/core": "^1.0.0"
},
"devDependencies": {
"@types/node": "16.7.1",
"@typescript-eslint/eslint-plugin": "4.29.3",
"eslint": "7.32.0",
"@types/node": "16.11.6",
"@typescript-eslint/eslint-plugin": "5.2.0",
"eslint": "8.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-prettier": "4.0.0",
"gts": "3.1.0",
"mocha": "9.1.0",
"mocha": "9.1.3",
"nyc": "15.1.0",
"ts-mocha": "8.0.0",
"typescript": "4.3.5"
"typescript": "4.4.4"
}
}

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