Socket
Socket
Sign inDemoInstall

use-upbit-api

Package Overview
Dependencies
7
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

2

lib/src/hooks/useWsOrderbook.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc