Skip to content

Commit a6f4fbe

Browse files
committed
Version bump
1 parent b5e4d6b commit a6f4fbe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the eleven POP3 commands. You just want to retrieve some messages from your mail
99
example how to do this with 'yapople':
1010

1111
```javascript
12-
const Client = require('yapople').Client;
12+
const { Client } = require('yapople');
1313
const 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

9595
All 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
117118
and looks like an objects. Otherwise it will be strings. Notice that results are sparse array with indexes representing
118119
message 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)__

lib/yapople.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/
442442
Client.prototype.top = function(number, linesCount, callback) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)