dgram-as-promised
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## v1.0.1 2018-03-19 | ||
* Bugfix for `bind` method. | ||
## v1.0.0 2017-10-23 | ||
* Do not use `any-promise`. | ||
* `bind` method accepts address and port options and resolves to address info. | ||
* `send` method resolves to number of sent bytes. | ||
* The rest of `dgram` methods have been implemented. | ||
* For Node < 6 `--harmony` flag is required. | ||
* Typescript typings. | ||
* Do not use `any-promise`. | ||
* `bind` method accepts address and port options and resolves to address info. | ||
* `send` method resolves to number of sent bytes. | ||
* The rest of `dgram` methods have been implemented. | ||
* For Node < 6 `--harmony` flag is required. | ||
* Typescript typings. | ||
## v0.1.2 2017-06-22 | ||
* Upgrade: chai@4.0.2, standard@10.0.2, tap@10.5.1, tap-given@0.4.1 | ||
* Use snazzy and chai-as-promised for tests. | ||
* Upgrade: chai@4.0.2, standard@10.0.2, tap@10.5.1, tap-given@0.4.1 | ||
* Use snazzy and chai-as-promised for tests. | ||
## v0.1.1 2017-02-19 | ||
* Upgraded tap-given | ||
* Upgraded tap-given | ||
## v0.1.0 2017-02-18 | ||
* ES6 | ||
* BDD tests | ||
* Relicensed to MIT | ||
* ES6 | ||
* BDD tests | ||
* Relicensed to MIT | ||
## v0.0.2 2016-07-31 | ||
* Corrected README and LICENSE | ||
* Corrected README and LICENSE | ||
## v0.0.1 2016-07-31 | ||
* Initial release | ||
* Initial release |
@@ -1,1 +0,1 @@ | ||
require('./lib/dgram-as-promised') | ||
module.exports = require('./lib/dgram-as-promised') |
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
import { AddressInfo, BindOptions, RemoteInfo, Socket, SocketOptions, SocketType } from 'dgram' | ||
@@ -2,0 +4,0 @@ |
@@ -12,3 +12,3 @@ 'use strict' | ||
return new Promise(resolve => { | ||
this.socket.bind((...args) => { | ||
this.socket.bind(...args, () => { | ||
const address = this.socket.address() | ||
@@ -15,0 +15,0 @@ resolve(address) |
{ | ||
"name": "dgram-as-promised", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Promisify dgram module", | ||
@@ -26,14 +26,19 @@ "main": "lib/dgram-as-promised.js", | ||
"devDependencies": { | ||
"@types/node": "^8.0.46", | ||
"@types/node": "^9.6.0", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.3", | ||
"tap": "^10.7.2", | ||
"tap-given": "^0.6.0" | ||
"markdownlint-cli": "^0.8.1", | ||
"snazzy": "^7.1.1", | ||
"standard": "^11.0.1", | ||
"tap": "^11.1.3", | ||
"tap-given": "^0.6.0", | ||
"tslint": "^5.9.1", | ||
"tslint-config-standard": "^7.0.0", | ||
"typescript": "^2.8.1" | ||
}, | ||
"scripts": { | ||
"test": "standard --verbose | snazzy && tap test/*.js", | ||
"test-coverage": "npm test -- --coverage", | ||
"test-onchange-lcovonly": "npm run -s test-coverage -- -R min --coverage-report lcovonly; onchange '**/*.js' -- npm run -s test-coverage -- -R min --coverage-report lcovonly" | ||
"pretest": "standard --verbose | snazzy && tsc --noEmit --pretty && tslint -t stylish -p . && markdownlint *.md", | ||
"test": "tap test/*.js", | ||
"test:coverage": "npm test -- --coverage", | ||
"test:onchange:lcovonly": "npm run -s test-coverage -- -R min --coverage-report lcovonly; onchange '**/*.js' -- npm run -s test-coverage -- -R min --coverage-report lcovonly" | ||
}, | ||
@@ -40,0 +45,0 @@ "standard": { |
@@ -1,4 +0,6 @@ | ||
## dgram-as-promised | ||
# dgram-as-promised | ||
<!-- markdownlint-disable MD013 --> | ||
[![Build Status](https://secure.travis-ci.org/dex4er/js-dgram-as-promised.svg)](http://travis-ci.org/dex4er/js-dgram-as-promised) [![Coverage Status](https://coveralls.io/repos/github/dex4er/js-dgram-as-promised/badge.svg)](https://coveralls.io/github/dex4er/js-dgram-as-promised) [![npm](https://img.shields.io/npm/v/dgram-as-promised.svg)](https://www.npmjs.com/package/dgram-as-promised) | ||
<!-- markdownlint-enable MD013 --> | ||
@@ -12,7 +14,7 @@ This module provides promisified version of standard | ||
### Requirements | ||
## Requirements | ||
This module requires ES6 with Node >= 4. For Node < 6 `--harmony` flag is required. | ||
### Installation | ||
## Installation | ||
@@ -23,3 +25,3 @@ ```shell | ||
### Usage | ||
## Usage | ||
@@ -79,6 +81,6 @@ `dgram-as-promised` can be used like standard `dgram` module. | ||
### License | ||
## License | ||
Copyright (c) 2016-2017 Piotr Roszatycki <piotr.roszatycki@gmail.com> | ||
Copyright (c) 2016-2018 Piotr Roszatycki <mailto:piotr.roszatycki@gmail.com> | ||
[MIT](https://opensource.org/licenses/MIT) |
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"module": "commonjs", | ||
@@ -4,0 +5,0 @@ "noImplicitReturns": true, |
Sorry, the diff of this file is not supported yet
8975
109
84
11