@uptrace/web
Advanced tools
Comparing version 0.25.0 to 1.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
10941
139
+ Added@opentelemetry/api@1.0.31.9.0(transitive)
+ Added@opentelemetry/api-logs@0.55.0(transitive)
+ Added@opentelemetry/core@1.0.01.28.0(transitive)
+ Added@opentelemetry/instrumentation@0.55.0(transitive)
+ Added@opentelemetry/resources@1.0.01.28.0(transitive)
+ Added@opentelemetry/sdk-trace-base@1.0.01.28.0(transitive)
+ Added@opentelemetry/sdk-trace-web@1.0.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.0.01.27.0(transitive)
+ Added@types/shimmer@1.2.0(transitive)
+ Added@uptrace/core@1.22.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedcjs-module-lexer@1.4.1(transitive)
+ Addedcross-fetch@4.0.0(transitive)
+ Addedimport-in-the-middle@1.11.2(transitive)
+ Addedrequire-in-the-middle@7.4.0(transitive)
- Removed@opentelemetry/api@1.0.2(transitive)
- Removed@opentelemetry/instrumentation@0.25.0(transitive)
- Removed@opentelemetry/sdk-trace-web@0.25.0(transitive)
- Removed@uptrace/core@0.25.0(transitive)
- Removedcross-fetch@3.1.8(transitive)
- Removedrequire-in-the-middle@5.2.0(transitive)
Updated@opentelemetry/api@1.0.3
Updated@uptrace/core@^1.0.0