@steerprotocol/app-loader 2.1.0 → 2.1.1

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/lib/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ethers } from 'ethers';
2
2
  import { Candle, generateCandles } from './Candle';
3
3
  import { RawTradeData } from './RawTradeData';
4
- let isNode = process || null;
4
+ const isNode = typeof window === 'undefined' && typeof process !== 'undefined';
5
5
  let fetchImpl = null;
6
6
  let fsImpl = null;
7
7
  let ccxt = null;
package/lib/index.js CHANGED
@@ -38,7 +38,7 @@ const Candle_1 = require("./Candle");
38
38
  Object.defineProperty(exports, "Candle", { enumerable: true, get: function () { return Candle_1.Candle; } });
39
39
  const RawTradeData_1 = require("./RawTradeData");
40
40
  Object.defineProperty(exports, "RawTradeData", { enumerable: true, get: function () { return RawTradeData_1.RawTradeData; } });
41
- let isNode = process || null;
41
+ const isNode = typeof window === 'undefined' && typeof process !== 'undefined';
42
42
  let fetchImpl = null;
43
43
  let fsImpl = null;
44
44
  let ccxt = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerprotocol/app-loader",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "App Loader for Steer Protocol",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",