@steerprotocol/data-connector-loader 0.0.6 → 0.0.7

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/lib/index.js +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -66,10 +66,6 @@ class DataConnectorExecution {
66
66
  if (!connectorConfig.bundleHash) {
67
67
  continue;
68
68
  }
69
- this.dataConnector.setExecutionContext({
70
- executionTimestamp,
71
- epochLength: Number(vaultConfig.strategyConfigData.epochLength)
72
- });
73
69
  // Append vault address to config
74
70
  if (vaultAddress) {
75
71
  connectorConfig.configData.vaultAddress = vaultAddress;
@@ -78,6 +74,10 @@ class DataConnectorExecution {
78
74
  if (!this.dataConnector.module) {
79
75
  yield this.dataConnector.load();
80
76
  }
77
+ this.dataConnector.setExecutionContext({
78
+ executionTimestamp,
79
+ epochLength: Number(vaultConfig.strategyConfigData.epochLength)
80
+ });
81
81
  // get first request
82
82
  let request = yield this.dataConnector.execute('');
83
83
  let response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerprotocol/data-connector-loader",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "App Loader for Steer Protocol",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",