@vuu-ui/vuu-data-test 4.1.0 → 4.1.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/package.json
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.1.
|
|
2
|
+
"version": "4.1.2",
|
|
3
3
|
"main": "./src/index.js",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build:dev": "node ../../scripts/run-build.mjs",
|
|
8
7
|
"build": "node ../../scripts/run-build-rslib.ts",
|
|
9
8
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
10
9
|
},
|
|
11
10
|
"dependencies": {
|
|
12
|
-
"@vuu-ui/vuu-data-local": "4.1.
|
|
13
|
-
"@vuu-ui/vuu-utils": "4.1.
|
|
11
|
+
"@vuu-ui/vuu-data-local": "4.1.2",
|
|
12
|
+
"@vuu-ui/vuu-utils": "4.1.2"
|
|
14
13
|
},
|
|
15
14
|
"devDependencies": {
|
|
16
|
-
"@vuu-ui/vuu-protocol-types": "4.1.
|
|
17
|
-
"@vuu-ui/vuu-data-types": "4.1.
|
|
18
|
-
"@vuu-ui/vuu-table-types": "4.1.
|
|
15
|
+
"@vuu-ui/vuu-protocol-types": "4.1.2",
|
|
16
|
+
"@vuu-ui/vuu-data-types": "4.1.2",
|
|
17
|
+
"@vuu-ui/vuu-table-types": "4.1.2"
|
|
19
18
|
},
|
|
20
19
|
"sideEffects": false,
|
|
21
20
|
"files": [
|
|
@@ -29,6 +29,10 @@ const nextClosePrice = scaledDecimalColumn(4, 4, 0, 5000);
|
|
|
29
29
|
const nextFxRate = scaledDecimalColumn(6, 6, 0.5, 2);
|
|
30
30
|
const nextWeight = scaledDecimalColumn(8, 8, 0, 0.05);
|
|
31
31
|
const nextRandom = createRandom(1);
|
|
32
|
+
const FIRST_TRADE_ID = 4000000000000;
|
|
33
|
+
const nextTradeIdGap = createRandom(3);
|
|
34
|
+
let tradeId = FIRST_TRADE_ID;
|
|
35
|
+
const nextTradeId = ()=>tradeId += randomInt(nextTradeIdGap, 1, 1000);
|
|
32
36
|
const ONE_DAY = 86400000;
|
|
33
37
|
const today = new Date();
|
|
34
38
|
today.setHours(0, 0, 0, 0);
|
|
@@ -47,6 +51,7 @@ const instrumentsExtendedData = instrumentsData.map((instrument, rowIndex)=>{
|
|
|
47
51
|
supported: nextRandom() < 0.5,
|
|
48
52
|
wishlist: nextRandom() < 0.5,
|
|
49
53
|
lastUpdated: instrument[InstrumentColumnMap.vuuUpdatedTimestamp],
|
|
54
|
+
tradeId: nextTradeId(),
|
|
50
55
|
price: Math.round(100000 * nextRandom()) / 100,
|
|
51
56
|
notional: nextNotional(rowIndex),
|
|
52
57
|
closePrice: nextClosePrice(rowIndex),
|