Skip to content

Commit

Permalink
refactor: replace prototypes with classes (#273)
Browse files Browse the repository at this point in the history
* refactor(agent): convert prototype to class

* refactor(cache): convert prototype to class

* refactor(incoming_message): convert prototype to class

* refactor(observe_read_stream): convert prototype to class

* refactor(observe_write_stream): convert prototype to class

* refactor(server): convert prototypes to classes

* refactor(segmentation): convert prototype to class

* refactor(retry_send): convert prototype to class

* refactor(outgoing_message): convert prototype to class
  • Loading branch information
JKRhb authored Sep 25, 2021
1 parent 6c65278 commit 8aa1b7c
Show file tree
Hide file tree
Showing 13 changed files with 1,193 additions and 1,202 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ module.exports.request = function (url) {
return agent.request(url)
}

module.exports.createServer = Server
module.exports.createServer = function (options, listener) {
return new Server(options, listener)
}

module.exports.Agent = Agent
module.exports.globalAgent = globalAgent
Expand Down
Loading

0 comments on commit 8aa1b7c

Please sign in to comment.