use-upbit-api
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -40,3 +40,3 @@ "use strict"; | ||
try { | ||
if (!(0, isImarketCodes_1.default)(targetMarketCodes)) { | ||
if (targetMarketCodes && !(0, isImarketCodes_1.default)(targetMarketCodes)) { | ||
throw new Error('targetMarketCodes does not have the correct interface'); | ||
@@ -43,0 +43,0 @@ } |
@@ -44,3 +44,4 @@ "use strict"; | ||
try { | ||
if (!(0, isArrayOfImarketCodes_1.default)(targetMarketCodes)) { | ||
if (targetMarketCodes.length > 0 && | ||
!(0, isArrayOfImarketCodes_1.default)(targetMarketCodes)) { | ||
throw new Error('targetMarketCodes does not have the correct interface'); | ||
@@ -47,0 +48,0 @@ } |
@@ -40,3 +40,3 @@ "use strict"; | ||
try { | ||
if (!(0, isImarketCodes_1.default)(targetMarketCodes)) { | ||
if (targetMarketCodes && !(0, isImarketCodes_1.default)(targetMarketCodes)) { | ||
throw new Error('targetMarketCodes does not have the correct interface'); | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "use-upbit-api", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "This is React Custom Hook for upbit api", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
79309
1616