Socket
Socket
Sign inDemoInstall

opentelemetry-instrumentation-express

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentelemetry-instrumentation-express - npm Package Compare versions

Comparing version 0.21.0 to 0.21.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.21.1](https://github.com/aspecto-io/opentelemetry-ext-js/compare/opentelemetry-instrumentation-express@0.21.0...opentelemetry-instrumentation-express@0.21.1) (2021-06-27)
### Bug Fixes
* **instrumentation-express:** explicitly depend on used express util packages ([#141](https://github.com/aspecto-io/opentelemetry-ext-js/issues/141)) ([2ae18cb](https://github.com/aspecto-io/opentelemetry-ext-js/commit/2ae18cb36b455eedfde5db0e80e05b7529632358))
# [0.21.0](https://github.com/aspecto-io/opentelemetry-ext-js/compare/opentelemetry-instrumentation-express@0.5.1...opentelemetry-instrumentation-express@0.21.0) (2021-06-20)

@@ -8,0 +19,0 @@

11

dist/src/utils/layer-path.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLayerPathFromFirstArg = void 0;
const path_to_regexp_1 = __importDefault(require("path-to-regexp"));
const pathStringToDisplayValue = (pathInput, options) => {

@@ -13,3 +17,2 @@ if (!options.strict && pathInput !== '/' && pathInput.endsWith('/')) {

const getLayerPathAlternativeFromFirstArg = (pathInput, options) => {
const pathRegexp = require('path-to-regexp');
if (typeof pathInput === 'string') {

@@ -19,3 +22,3 @@ return {

displayValue: pathStringToDisplayValue(pathInput, options),
regexp: pathRegexp(pathInput, [], options),
regexp: path_to_regexp_1.default(pathInput, [], options),
};

@@ -27,3 +30,3 @@ }

displayValue: pathInput.toString(),
regexp: pathRegexp(pathInput, [], options),
regexp: path_to_regexp_1.default(pathInput, [], options),
};

@@ -38,3 +41,3 @@ if (Array.isArray(pathInput)) {

: undefined,
regexp: pathRegexp(alternativePath, [], options),
regexp: path_to_regexp_1.default(alternativePath, [], options),
}));

@@ -41,0 +44,0 @@ }

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createInitialRouteState = exports.consumeLayerPathAndUpdateState = exports.getUsedPathFromLayerPath = void 0;
const parseurl_1 = __importDefault(require("parseurl"));
exports.getUsedPathFromLayerPath = (layerPath, actualUrl) => {

@@ -55,6 +59,5 @@ var _a;

// we use parseurl(req).pathname which is exactly what express is doing
const parseurl = require('parseurl');
const path = parseurl(req).pathname;
const path = parseurl_1.default(req).pathname;
return { resolvedRoute: '', remainingRoute: path, configuredRoute: '', params: {} };
};
//# sourceMappingURL=route-context.js.map

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

export declare const VERSION = "0.21.0";
export declare const VERSION = "0.21.1";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.21.0';
exports.VERSION = '0.21.1';
//# sourceMappingURL=version.js.map
{
"name": "opentelemetry-instrumentation-express",
"version": "0.21.0",
"version": "0.21.1",
"description": "enhanced open telemetry instrumentation for the `express` web framework",

@@ -39,3 +39,5 @@ "author": "Aspecto.io",

"@opentelemetry/instrumentation": "^0.21.0",
"@opentelemetry/semantic-conventions": "^0.21.0"
"@opentelemetry/semantic-conventions": "^0.21.0",
"parseurl": "~1.3.3",
"path-to-regexp": "0.1.7"
},

@@ -67,3 +69,3 @@ "devDependencies": {

},
"gitHead": "0eb9c76b2bbcf85cb228e2301ce0cc1346076808"
"gitHead": "5699263e7b682ac99ad34c88c1c822ccf76216c9"
}
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