Skip to content

Commit c0f18b3

Browse files
authored
inline isin generator package (#1573)
1 parent 191e811 commit c0f18b3

19 files changed

+422
-25
lines changed

vuu-ui/global.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
declare module "@thomaschaplin/isin-generator" {
2-
export const isinGenerator = () => undefined;
3-
}
4-
51
declare module "*.css" {
62
const content: string;
73
export default content;

vuu-ui/package-lock.json

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuu-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"typecheck": "tsc --noEmit --project tsconfig-typecheck.json"
4949
},
5050
"dependencies": {
51+
"@thomaschaplin/cusip-generator": "^1.0.22",
5152
"@types/jest": "^29.5.11",
5253
"@types/node": "^18.0.0",
5354
"@types/react": "^18.3.3",

vuu-ui/packages/vuu-data-test/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@finos/vuu-data-local": "0.0.26",
14-
"@finos/vuu-utils": "0.0.26",
15-
"@thomaschaplin/isin-generator": "1.0.3"
14+
"@finos/vuu-utils": "0.0.26"
1615
},
1716
"devDependencies": {
1817
"@finos/vuu-protocol-types": "0.0.26",

vuu-ui/packages/vuu-data-test/src/global.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

vuu-ui/packages/vuu-data-test/src/simul/reference-data/instruments.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isinGenerator } from "@thomaschaplin/isin-generator";
1+
import { isinGenerator } from "./isin-generator";
22
import { currencies } from "./currencies";
33
import { locations, suffixes } from "./locations";
44
import { lotsizes } from "./lotsizes";
@@ -24,7 +24,7 @@ export type InstrumentsDataRow = [
2424
number,
2525
ric,
2626
price,
27-
date
27+
date,
2828
];
2929

3030
export const InstrumentColumnMap = {
@@ -36,7 +36,7 @@ export const InstrumentColumnMap = {
3636
number: 5,
3737
ric: 6,
3838
price: 7,
39-
date: 8
39+
date: 8,
4040
} as const;
4141

4242
const instrumentsData: InstrumentsDataRow[] = [];
@@ -80,7 +80,7 @@ for (const char1 of chars1) {
8080
lotSize,
8181
ric,
8282
price,
83-
date
83+
date,
8484
]);
8585
count++;
8686
}
@@ -99,7 +99,7 @@ export const getRic = (defaultRic: string) => {
9999
export const instrumentsTable = new Table(
100100
schemas.instruments,
101101
instrumentsData,
102-
buildDataColumnMap(schemas, "instruments")
102+
buildDataColumnMap(schemas, "instruments"),
103103
);
104104

105105
export { instrumentsData };
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const convertStringToBaseTenNumber = (value: string): number =>
2+
parseInt(value, 10);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export const alphabet = [
2+
"A",
3+
"B",
4+
"C",
5+
"D",
6+
"E",
7+
"F",
8+
"G",
9+
"H",
10+
"J",
11+
"K",
12+
"L",
13+
"M",
14+
"N",
15+
"P",
16+
"Q",
17+
"R",
18+
"S",
19+
"T",
20+
"U",
21+
"V",
22+
"W",
23+
"X",
24+
"Y",
25+
"Z",
26+
];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { alphabet } from "./alphabet";
2+
import { baseTenNumbers } from "./base-ten-numbers";
3+
4+
export const alphanumeric = [...alphabet, ...baseTenNumbers];
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export const baseTenNumbers = [
2+
0,
3+
1,
4+
2,
5+
3,
6+
4,
7+
5,
8+
6,
9+
7,
10+
8,
11+
9,
12+
];

0 commit comments

Comments
 (0)