Skip to content

Commit

Permalink
chore: update to luggite v0.2.0
Browse files Browse the repository at this point in the history
This backports the added types, uses class Logger so no
need for separate LoggerInstance typedef.
  • Loading branch information
trentm committed Dec 21, 2023
1 parent 4af0ae1 commit 5e635b9
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 356 deletions.
2 changes: 1 addition & 1 deletion packages/mockotlpserver/lib/grpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function intakeTraces(call, callback) {
/**
*
* @param {Object} opts
* @param {import('./luggite').LoggerInstance} opts.log
* @param {import('./luggite').Logger} opts.log
* @param {string} opts.hostname
* @param {number} opts.port
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mockotlpserver/lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function badRequest(res) {
}

/**
* @param {import('./luggite').LoggerInstance} _log
* @param {import('./luggite').Logger} _log
* @param {Buffer} buff
* @param {http.IncomingMessage} _req
*/
Expand All @@ -73,7 +73,7 @@ function jsonParser(_log, buff, _req) {
}

/**
* @param {import('./luggite').LoggerInstance} _log
* @param {import('./luggite').Logger} _log
* @param {Buffer} buff
* @param {http.IncomingMessage} req
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ function protoParser(_log, buff, req) {

/**
*
* @param {import('./luggite').LoggerInstance} log
* @param {import('./luggite').Logger} log
* @param {Buffer} _buff
* @param {http.IncomingMessage} req
*/
Expand All @@ -117,7 +117,7 @@ function unknownParser(log, _buff, req) {
/**
*
* @param {Object} opts
* @param {import('./luggite').LoggerInstance} opts.log
* @param {import('./luggite').Logger} opts.log
* @param {string} opts.hostname
* @param {number} opts.port
*/
Expand Down
Loading

0 comments on commit 5e635b9

Please sign in to comment.