Skip to content

Commit

Permalink
IP 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jan 9, 2022
1 parent 6733a49 commit 1e4b7d2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="2.0.0"></a>
# [2.0.0](https://github.com/faker-javascript/ip) (2022-01-09)

### BREAKING CHANGES

* New function `ip` istead of `fakeIP`

<a name="1.0.0"></a>
# [1.0.0](https://github.com/faker-javascript/ip) (2022-01-08)
* Initial release
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ $ npm install --save @fakerjs/ip
## Usage

```js
import fakeIP from '@fakerjs/ip';
import ip from '@fakerjs/ip';

fakeIP();
ip();
//=> 168.195.165.81
```

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function fakeIP() {
export default function ip() {
return Math.floor(Math.random() * 255) + '.' +
Math.floor(Math.random() * 255) + '.' +
Math.floor(Math.random() * 255) + '.' +
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fakerjs/ip",
"version": "1.0.0",
"version": "2.0.0",
"description": "IP package provides functionality to generate a fake ip value.",
"license": "MIT",
"repository": "faker-javascript/ip",
Expand Down
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fakeIP from './index.js';
import ip from './index.js';
import test from 'ava';

test('fakeIP return type to be string', t => {
t.is(typeof fakeIP(), 'string');
test('ip return type to be string', t => {
t.is(typeof ip(), 'string');
});

0 comments on commit 1e4b7d2

Please sign in to comment.