From 3394b532d8fc9eb6f8a2494cd3e5a4e7ec4596fd Mon Sep 17 00:00:00 2001 From: Tejas Gajjar Date: Fri, 27 Oct 2023 11:19:10 +0530 Subject: [PATCH] feat(release): release v 1.2.0 (#18) --- package.json | 2 +- src/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 85b75f5..f1871bd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index c5576e3..cdb86f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;