@sebspark/tradeinsight 1.0.0 → 1.0.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
@@ -46,8 +46,8 @@ declare const parseId: (id: string) => {
46
46
  isin?: string;
47
47
  mic?: string;
48
48
  currency?: string;
49
- fromCurrency?: string;
50
- toCurrency?: string;
49
+ baseCurrency?: string;
50
+ quoteCurrency?: string;
51
51
  };
52
52
 
53
53
  declare const TickersTopic = "tradeinsight.tickers";
package/dist/index.d.ts CHANGED
@@ -46,8 +46,8 @@ declare const parseId: (id: string) => {
46
46
  isin?: string;
47
47
  mic?: string;
48
48
  currency?: string;
49
- fromCurrency?: string;
50
- toCurrency?: string;
49
+ baseCurrency?: string;
50
+ quoteCurrency?: string;
51
51
  };
52
52
 
53
53
  declare const TickersTopic = "tradeinsight.tickers";
package/dist/index.js CHANGED
@@ -145,15 +145,15 @@ var parseId = (id) => {
145
145
  }
146
146
  if (type === "FOREX") {
147
147
  if (!first) {
148
- throw new Error("Missing fromCurrency");
148
+ throw new Error("Missing baseCurrency");
149
149
  }
150
150
  if (!second) {
151
- throw new Error("Missing toCurrency");
151
+ throw new Error("Missing quoteCurrency");
152
152
  }
153
153
  return {
154
154
  type,
155
- fromCurrency: first,
156
- toCurrency: second
155
+ baseCurrency: first,
156
+ quoteCurrency: second
157
157
  };
158
158
  }
159
159
  throw new Error("Invalid type");
package/dist/index.mjs CHANGED
@@ -115,15 +115,15 @@ var parseId = (id) => {
115
115
  }
116
116
  if (type === "FOREX") {
117
117
  if (!first) {
118
- throw new Error("Missing fromCurrency");
118
+ throw new Error("Missing baseCurrency");
119
119
  }
120
120
  if (!second) {
121
- throw new Error("Missing toCurrency");
121
+ throw new Error("Missing quoteCurrency");
122
122
  }
123
123
  return {
124
124
  type,
125
- fromCurrency: first,
126
- toCurrency: second
125
+ baseCurrency: first,
126
+ quoteCurrency: second
127
127
  };
128
128
  }
129
129
  throw new Error("Invalid type");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/tradeinsight",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17,8 +17,8 @@
17
17
  "typecheck": "vitest --typecheck.only --passWithNoTests"
18
18
  },
19
19
  "devDependencies": {
20
+ "@sebspark/tsconfig": "*",
20
21
  "avro-typescript": "1.3.0",
21
- "ts-node": "10.9.2",
22
- "tsconfig": "*"
22
+ "ts-node": "10.9.2"
23
23
  }
24
24
  }