File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ the eleven POP3 commands. You just want to retrieve some messages from your mail
99example how to do this with 'yapople':
1010
1111``` javascript
12- const Client = require (' yapople' ). Client ;
12+ const { Client } = require (' yapople' );
1313const client = new Client ({
1414 host: ' pop.mail.ru' ,
1515 port: 995 ,
@@ -93,6 +93,7 @@ and [NET](https://nodejs.org/dist/latest-v12.x/docs/api/net.html#net_socket_conn
9393## Methods
9494
9595All the methods can be used both callback-style or promise-style if callback has been omitted.
96+ In the examples below only async-await style will be used.
9697
9798### connect([ options] , [ callback] )
9899- ** options** - __ object__
@@ -117,7 +118,7 @@ Retrieve a message/messages by its number/numbers. If the `mailparser` argument
117118and looks like an objects. Otherwise it will be strings. Notice that results are sparse array with indexes representing
118119message numbers. You can access message with its number like that ` messages[number] ` and use all HOF like this
119120` messages.map(function(mail, num){ return [num, mail.subject]; }) ` .
120- Or you can represent it like normal array with construction like this: ` messages.filter(function(a){ return a'; } ) `
121+ Or you can represent it like normal array with construction like this: ` messages.filter(a => a ) `
121122
122123### retrieveAll([ callback] )
123124- ** callback** - __ function(err, messages)__
Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ Client.prototype.retrieveAndDeleteAll = function(callback) {
436436/**
437437 * Top command
438438 * @param {number|string } number
439- * @param {number|string } [ linesCount]
439+ * @param {number|string } linesCount
440440 * @param {function } [callback]
441441 */
442442Client . prototype . top = function ( number , linesCount , callback ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " yapople" ,
3- "version" : " 0.4.2 " ,
3+ "version" : " 0.4.3 " ,
44 "author" :
" Andrew D.Laptev <[email protected] >" ,
55 "description" : " Yet another POP3 library" ,
66 "main" : " lib/yapople.js" ,
You can’t perform that action at this time.
0 commit comments