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

@opentelemetry/otlp-exporter-base

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/otlp-exporter-base - npm Package Compare versions

Comparing version 0.33.0 to 0.34.0

3

build/esm/util.d.ts

@@ -16,6 +16,5 @@ /**

* @param url
* @param path
* @returns url
*/
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string;
export declare function appendRootPathToUrlIfNeeded(url: string): string;
/**

@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables

@@ -68,10 +68,16 @@ /*

* @param url
* @param path
* @returns url
*/
export function appendRootPathToUrlIfNeeded(url, path) {
if (!url.includes(path) && !url.endsWith('/')) {
url = url + '/';
export function appendRootPathToUrlIfNeeded(url) {
try {
var parsedUrl = new URL(url);
if (parsedUrl.pathname === '') {
parsedUrl.pathname = parsedUrl.pathname + '/';
}
return parsedUrl.toString();
}
return url;
catch (_a) {
diag.warn("Could not parse export URL: '" + url + "'");
return url;
}
}

@@ -78,0 +84,0 @@ /**

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

export declare const VERSION = "0.33.0";
export declare const VERSION = "0.34.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -16,6 +16,5 @@ /**

* @param url
* @param path
* @returns url
*/
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string;
export declare function appendRootPathToUrlIfNeeded(url: string): string;
/**

@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables

@@ -50,10 +50,16 @@ /*

* @param url
* @param path
* @returns url
*/
export function appendRootPathToUrlIfNeeded(url, path) {
if (!url.includes(path) && !url.endsWith('/')) {
url = url + '/';
export function appendRootPathToUrlIfNeeded(url) {
try {
const parsedUrl = new URL(url);
if (parsedUrl.pathname === '') {
parsedUrl.pathname = parsedUrl.pathname + '/';
}
return parsedUrl.toString();
}
return url;
catch (_a) {
diag.warn(`Could not parse export URL: '${url}'`);
return url;
}
}

@@ -60,0 +66,0 @@ /**

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

export declare const VERSION = "0.33.0";
export declare const VERSION = "0.34.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -16,6 +16,5 @@ /**

* @param url
* @param path
* @returns url
*/
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string;
export declare function appendRootPathToUrlIfNeeded(url: string): string;
/**

@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables

@@ -55,10 +55,16 @@ "use strict";

* @param url
* @param path
* @returns url
*/
function appendRootPathToUrlIfNeeded(url, path) {
if (!url.includes(path) && !url.endsWith('/')) {
url = url + '/';
function appendRootPathToUrlIfNeeded(url) {
try {
const parsedUrl = new URL(url);
if (parsedUrl.pathname === '') {
parsedUrl.pathname = parsedUrl.pathname + '/';
}
return parsedUrl.toString();
}
return url;
catch (_a) {
api_1.diag.warn(`Could not parse export URL: '${url}'`);
return url;
}
}

@@ -65,0 +71,0 @@ exports.appendRootPathToUrlIfNeeded = appendRootPathToUrlIfNeeded;

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

export declare const VERSION = "0.33.0";
export declare const VERSION = "0.34.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.33.0';
exports.VERSION = '0.34.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/otlp-exporter-base",
"version": "0.33.0",
"version": "0.34.0",
"description": "OpenTelemetry OTLP Exporter base (for internal use only)",

@@ -64,7 +64,7 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/core": "1.7.0"
"@opentelemetry/core": "1.8.0"
},
"devDependencies": {
"@opentelemetry/api": "^1.0.0",
"@types/mocha": "9.1.1",
"@types/mocha": "10.0.0",
"@types/node": "18.6.5",

@@ -86,3 +86,4 @@ "@types/sinon": "10.0.13",

"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-exporter-base",
"gitHead": "ad88c3d9aa0100fe259b93f4b660e84417b757ac"
"sideEffects": false,
"gitHead": "7972edf6659fb6e0d5928a5cf7a35f26683e168f"
}

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