Skip to content

Commit

Permalink
feat(release): release v 1.2.0 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajjartejas committed Oct 27, 2023
1 parent 2ff4abb commit 3394b53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-lan-port-scanner",
"version": "1.1.9",
"version": "1.2.0",
"description": "A simple port scanner for react native.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const startScan = (
throw new Error('config.networkInfo param is required.');
}

const ipRangeInfo = "ipRange" in config.networkInfo ? config.networkInfo : generateIPRange(config.networkInfo);
const ipRangeInfo =
'ipRange' in config.networkInfo
? config.networkInfo
: generateIPRange(config.networkInfo);

const logging = config.logging || false;
const ipRange = ipRangeInfo.ipRange;
Expand Down

0 comments on commit 3394b53

Please sign in to comment.