ohlcv-indicators 3.3.7 → 3.3.9

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7,7 +7,8 @@ import {
7
7
  validateArrayOptions,
8
8
  validateBoolean,
9
9
  validateNumber,
10
- validateArrayOfRanges
10
+ validateArrayOfRanges,
11
+ validateInputParams
11
12
  } from './src/utilities/validators.js'
12
13
  import { verticalToHorizontal } from './src/utilities/verticalToHorizontal.js'
13
14
  import { pushToMain } from './src/core-functions/pushToMain.js'
@@ -59,6 +60,8 @@ export default class OHLCV_INDICATORS {
59
60
  this.precision = precision
60
61
  this.precisionMultiplier = calcPrecisionMultiplier(this, this.firstRow)
61
62
  this.scaledGroups = {}
63
+
64
+ this.pushToMain = ({index, key, value}) => pushToMain({main: this, index, key, value})
62
65
 
63
66
  if(inputParams !== null)
64
67
  {
@@ -70,7 +73,7 @@ export default class OHLCV_INDICATORS {
70
73
  this.inputParams = []
71
74
  }
72
75
 
73
- this.pushToMain = ({index, key, value}) => pushToMain({main: this, index, key, value})
76
+
74
77
 
75
78
  return this
76
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohlcv-indicators",
3
- "version": "3.3.7",
3
+ "version": "3.3.9",
4
4
  "description": "A JavaScript library featuring optimized trading indicators for OHLCV arrays [{open, high, low, close, value}]. This library is optimized for backtesting and trading bot development.",
5
5
  "main": "index.js",
6
6
  "type": "module",