Sha256: 29d4b1e1cb7084f4d95062c83808a5f16c6974848f5a1f3e5c9969a4a153de19

Contents?: true

Size: 562 Bytes

Versions: 21

Compression:

Stored size: 562 Bytes

Contents

/* eslint-disable class-methods-use-this */
const Unique = require('./unique');

class Canonicalize extends Unique {
  httpServerRequest(event) {
    const status = event.httpServerResponse
      ? event.httpServerResponse.status || event.httpServerResponse.status_code
      : null;
    const parameterNames = event.message
      ? event.message.map((m) => m.name)
      : [];
    const parameters = `(${parameterNames.join(',')})`;

    return { route: event.route, parameters, status };
  }
}

module.exports = (appmap) => new Canonicalize(appmap).execute();

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
appmap-0.72.2 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.72.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.72.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.71.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.70.2 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.70.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.70.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.69.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.68.2 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.68.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.68.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.67.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.67.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.66.2 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.66.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.66.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.65.1 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.65.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.64.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js
appmap-0.63.0 ./node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js