@tradejs/node 3.1.5 → 3.1.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.
@@ -630,7 +630,10 @@ var resolveAccountId = async ({
630
630
  provider: deployment.provider,
631
631
  universe
632
632
  });
633
- return account?.id ?? deployment.accountId;
633
+ if (!account) {
634
+ throw new Error(`Trading account not found: ${deployment.accountId}`);
635
+ }
636
+ return account.id;
634
637
  };
635
638
  var loadVersionedRuntimeStrategies = async ({
636
639
  userName,
@@ -97,7 +97,10 @@ var resolveAccountId = async ({
97
97
  provider: deployment.provider,
98
98
  universe
99
99
  });
100
- return account?.id ?? deployment.accountId;
100
+ if (!account) {
101
+ throw new Error(`Trading account not found: ${deployment.accountId}`);
102
+ }
103
+ return account.id;
101
104
  };
102
105
  var loadVersionedRuntimeStrategies = async ({
103
106
  userName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/node",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "description": "Node-only runtime for the TradeJS TypeScript framework: strategies, backtests, Pine strategy loading, and plugin registries.",
5
5
  "keywords": [
6
6
  "tradejs",
@@ -85,9 +85,9 @@
85
85
  "dependencies": {
86
86
  "@langchain/core": "^1.2.3",
87
87
  "@langchain/openai": "^1.5.5",
88
- "@tradejs/core": "^3.1.5",
89
- "@tradejs/infra": "^3.1.5",
90
- "@tradejs/types": "^3.1.5",
88
+ "@tradejs/core": "^3.1.7",
89
+ "@tradejs/infra": "^3.1.7",
90
+ "@tradejs/types": "^3.1.7",
91
91
  "chalk": "4.1.2",
92
92
  "ioredis": "5.11.1",
93
93
  "lodash": "^4.18.1",