@uptrace/core
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -16,2 +16,3 @@ import { TracerProvider, Attributes } from '@opentelemetry/api'; | ||
} | ||
export declare function createClient(cfg?: Config): Client; | ||
//# sourceMappingURL=client.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Client = void 0; | ||
exports.createClient = exports.Client = void 0; | ||
var tracing_1 = require("@opentelemetry/tracing"); | ||
@@ -67,2 +67,13 @@ var exporter_1 = require("./exporter"); | ||
exports.Client = Client; | ||
function createClient(cfg) { | ||
if (cfg === void 0) { cfg = {}; } | ||
if (!cfg.filters) { | ||
cfg.filters = []; | ||
} | ||
if (cfg.filter) { | ||
cfg.filters.push(cfg.filter); | ||
} | ||
return new Client(cfg); | ||
} | ||
exports.createClient = createClient; | ||
//# sourceMappingURL=client.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/core", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Uptrace JS core", | ||
@@ -59,5 +59,5 @@ "main": "build/src/index.js", | ||
"@types/mocha": "8.0.3", | ||
"@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", | ||
@@ -69,4 +69,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
17870
296