@sebspark/tradeinsight 0.1.0 → 0.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/dist/index.d.mts CHANGED
@@ -1,2 +1,11 @@
1
+ declare const createStockId: ({ isin, mic, currency, }: {
2
+ isin: string;
3
+ currency: string;
4
+ mic: string;
5
+ }) => string;
6
+ declare const createForexId: ({ fromCurrency, toCurrency, }: {
7
+ toCurrency: string;
8
+ fromCurrency: string;
9
+ }) => string;
1
10
 
2
- export { }
11
+ export { createForexId, createStockId };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,11 @@
1
+ declare const createStockId: ({ isin, mic, currency, }: {
2
+ isin: string;
3
+ currency: string;
4
+ mic: string;
5
+ }) => string;
6
+ declare const createForexId: ({ fromCurrency, toCurrency, }: {
7
+ toCurrency: string;
8
+ fromCurrency: string;
9
+ }) => string;
1
10
 
2
- export { }
11
+ export { createForexId, createStockId };
package/dist/index.js CHANGED
@@ -1 +1,42 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ createForexId: () => createForexId,
24
+ createStockId: () => createStockId
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/createId.ts
29
+ var createStockId = ({
30
+ isin,
31
+ mic,
32
+ currency
33
+ }) => `STOCK-${isin};${mic};${currency}`.toUpperCase();
34
+ var createForexId = ({
35
+ fromCurrency,
36
+ toCurrency
37
+ }) => `FOREX-${toCurrency};${fromCurrency}`.toUpperCase();
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ createForexId,
41
+ createStockId
42
+ });
package/dist/index.mjs CHANGED
@@ -0,0 +1,14 @@
1
+ // src/createId.ts
2
+ var createStockId = ({
3
+ isin,
4
+ mic,
5
+ currency
6
+ }) => `STOCK-${isin};${mic};${currency}`.toUpperCase();
7
+ var createForexId = ({
8
+ fromCurrency,
9
+ toCurrency
10
+ }) => `FOREX-${toCurrency};${fromCurrency}`.toUpperCase();
11
+ export {
12
+ createForexId,
13
+ createStockId
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/tradeinsight",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",