consecutive
Advanced tools
Comparing version 5.0.4 to 5.0.5
# consecutive changelog | ||
## [5.1.1](http://github.com/ivanoff/create-raml/tree/5.1.1) (2017-04-20) | ||
[Full Changelog](http://github.com/ivanoff/create-raml/compare/5.0.3...5.1.1) | ||
**What Was Done:** | ||
- convert begin number | ||
## [5.0.3](http://github.com/ivanoff/create-raml/tree/5.0.3) (2017-04-19) | ||
@@ -4,0 +12,0 @@ [Full Changelog](http://github.com/ivanoff/create-raml/compare/5.0.2...5.0.3) |
@@ -20,3 +20,3 @@ /*! | ||
} else { | ||
res = number.toString(); | ||
res = (number === begin) ? (parseInt(number, base)).toString(base) : number.toString(); | ||
number = (parseInt(number, base) + inc).toString(base); | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "consecutive", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Consecutive numbering", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,3 @@ | ||
v5.0.4 | ||
v5.0.5 | ||
@@ -49,3 +49,13 @@ | ||
### TypeScript Usage Example | ||
```javascript | ||
import consecutive from 'consecutive'; | ||
const next = consecutive(); | ||
console.log(next(), next(), next()); | ||
//=> 0 1 2 | ||
``` | ||
## API | ||
@@ -52,0 +62,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16080
107
9