@vuu-ui/vuu-data-test 0.8.24-debug → 0.8.25-debug

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/cjs/index.js CHANGED
@@ -1005,11 +1005,11 @@ var getColumnAndRowGenerator = (table) => {
1005
1005
  );
1006
1006
  }
1007
1007
  };
1008
- var populateArray = (count, colGen, rowGen, columns) => {
1008
+ var populateArray = (count2, colGen, rowGen, columns) => {
1009
1009
  const columnDescriptors = colGen(columns);
1010
1010
  const generateRow = rowGen(columnDescriptors.map((col) => col.name));
1011
1011
  const data = [];
1012
- for (let i = 0; i < count; i++) {
1012
+ for (let i = 0; i < count2; i++) {
1013
1013
  const row = generateRow(i);
1014
1014
  if (row) {
1015
1015
  data[i] = row;
@@ -2193,36 +2193,42 @@ var InstrumentColumnMap = {
2193
2193
  price: 7
2194
2194
  };
2195
2195
  var instrumentsData = [];
2196
- var chars = Array.from("ABCEFGHKMNOPQRTUVWYZ");
2196
+ var chars1 = Array.from("ABCEFGHKMN");
2197
+ var chars2 = Array.from("ABCEFGHKMN");
2198
+ var chars3 = Array.from("OPQRTUVWYZ");
2199
+ var chars4 = Array.from("OPQRTUVWYZ");
2197
2200
  var randomPrice = () => {
2198
2201
  const price = random(0, 1e4);
2199
2202
  const multiplier = random(1, 10);
2200
2203
  return price / multiplier;
2201
2204
  };
2202
- for (const char of chars) {
2203
- for (let i = 0; i < 1e3; i++) {
2204
- const char2 = chars[random(0, chars.length - 1)];
2205
- const char3 = chars[random(0, chars.length - 1)];
2206
- const char4 = chars[random(0, chars.length - 1)];
2207
- const suffix = suffixes[random(0, suffixes.length - 1)];
2208
- const ric = char + char2 + char3 + char4 + "." + suffix;
2209
- const bbg = char + char2 + char3 + char4 + " " + suffix;
2210
- const description = `${ric} description`;
2211
- const currency = currencies[random(0, 4)];
2212
- const isin = (0, import_isin_generator.isinGenerator)();
2213
- const lotSize = lotsizes[random(0, lotsizes.length - 1)];
2214
- const exchange = locations[suffix][1];
2215
- const price = randomPrice();
2216
- instrumentsData.push([
2217
- bbg,
2218
- currency,
2219
- description,
2220
- exchange,
2221
- String(isin),
2222
- lotSize,
2223
- ric,
2224
- price
2225
- ]);
2205
+ var count = 0;
2206
+ for (const char1 of chars1) {
2207
+ for (const char2 of chars2) {
2208
+ for (const char3 of chars3) {
2209
+ for (const char4 of chars4) {
2210
+ const suffix = suffixes[count % 8];
2211
+ const ric = char1 + char2 + char3 + char4 + "." + suffix;
2212
+ const bbg = char1 + char2 + char3 + char4 + " " + suffix;
2213
+ const description = `${ric} description`;
2214
+ const currency = currencies[random(0, 4)];
2215
+ const isin = (0, import_isin_generator.isinGenerator)();
2216
+ const lotSize = lotsizes[random(0, lotsizes.length - 1)];
2217
+ const exchange = locations[suffix][1];
2218
+ const price = randomPrice();
2219
+ instrumentsData.push([
2220
+ bbg,
2221
+ currency,
2222
+ description,
2223
+ exchange,
2224
+ String(isin),
2225
+ lotSize,
2226
+ ric,
2227
+ price
2228
+ ]);
2229
+ count++;
2230
+ }
2231
+ }
2226
2232
  }
2227
2233
  }
2228
2234
  var getRic = (defaultRic) => {