Sha256: 96f0d8fd6245439d2acaf01847fa2b7535a6725967be17a391ed2fe898da40ac
Contents?: true
Size: 527 Bytes
Versions: 21
Compression:
Stored size: 527 Bytes
Contents
/* eslint-disable class-methods-use-this */ const Unique = require('./unique'); class Canonicalize extends Unique { httpClientRequest(event) { const status = event.httpClientResponse ? event.httpClientResponse.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