@orderly.network/hooks 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -25,7 +25,7 @@ declare global {
25
25
  };
26
26
  }
27
27
  }
28
- declare const _default: "1.1.1";
28
+ declare const _default: "1.1.2";
29
29
 
30
30
  type useQueryOptions<T> = SWRConfiguration & {
31
31
  formatter?: (data: any) => T;
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ declare global {
25
25
  };
26
26
  }
27
27
  }
28
- declare const _default: "1.1.1";
28
+ declare const _default: "1.1.2";
29
29
 
30
30
  type useQueryOptions<T> = SWRConfiguration & {
31
31
  formatter?: (data: any) => T;
package/dist/index.js CHANGED
@@ -28,9 +28,9 @@ var useSWRSubscription__default = /*#__PURE__*/_interopDefault(useSWRSubscriptio
28
28
  // src/version.ts
29
29
  if (typeof window !== "undefined") {
30
30
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
31
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.1";
31
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.2";
32
32
  }
33
- var version_default = "1.1.1";
33
+ var version_default = "1.1.2";
34
34
  var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
35
35
  var OrderlyContext = React.createContext({
36
36
  // configStore: new MemoryConfigStore(),
@@ -2019,7 +2019,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
2019
2019
  min: minPriceNumber,
2020
2020
  max: scropePriceNumbere
2021
2021
  };
2022
- if (price.gt(priceRange.max)) {
2022
+ if (price.gt(priceRange?.max)) {
2023
2023
  errors.order_price = {
2024
2024
  type: "max",
2025
2025
  message: `Price must be less than ${new utils.Decimal(
@@ -2027,7 +2027,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
2027
2027
  ).todp(symbol.quote_dp)}`
2028
2028
  };
2029
2029
  }
2030
- if (price.lt(priceRange.min)) {
2030
+ if (price.lt(priceRange?.min)) {
2031
2031
  errors.order_price = {
2032
2032
  type: "min",
2033
2033
  message: `Price must be greater than ${new utils.Decimal(
@@ -2113,7 +2113,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
2113
2113
  min: minPriceNumber,
2114
2114
  max: scropePriceNumbere
2115
2115
  };
2116
- if (price.gt(priceRange.max)) {
2116
+ if (price.gt(priceRange?.max)) {
2117
2117
  errors.order_price = {
2118
2118
  type: "max",
2119
2119
  message: `Price must be less than ${new utils.Decimal(
@@ -2121,7 +2121,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
2121
2121
  ).todp(symbol.quote_dp)}`
2122
2122
  };
2123
2123
  }
2124
- if (price.lt(priceRange.min)) {
2124
+ if (price.lt(priceRange?.min)) {
2125
2125
  errors.order_price = {
2126
2126
  type: "min",
2127
2127
  message: `Price must be greater than ${new utils.Decimal(