@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/esm/index.js CHANGED
@@ -974,11 +974,11 @@ var getColumnAndRowGenerator = (table) => {
974
974
  );
975
975
  }
976
976
  };
977
- var populateArray = (count, colGen, rowGen, columns) => {
977
+ var populateArray = (count2, colGen, rowGen, columns) => {
978
978
  const columnDescriptors = colGen(columns);
979
979
  const generateRow = rowGen(columnDescriptors.map((col) => col.name));
980
980
  const data = [];
981
- for (let i = 0; i < count; i++) {
981
+ for (let i = 0; i < count2; i++) {
982
982
  const row = generateRow(i);
983
983
  if (row) {
984
984
  data[i] = row;
@@ -2164,36 +2164,42 @@ var InstrumentColumnMap = {
2164
2164
  price: 7
2165
2165
  };
2166
2166
  var instrumentsData = [];
2167
- var chars = Array.from("ABCEFGHKMNOPQRTUVWYZ");
2167
+ var chars1 = Array.from("ABCEFGHKMN");
2168
+ var chars2 = Array.from("ABCEFGHKMN");
2169
+ var chars3 = Array.from("OPQRTUVWYZ");
2170
+ var chars4 = Array.from("OPQRTUVWYZ");
2168
2171
  var randomPrice = () => {
2169
2172
  const price = random(0, 1e4);
2170
2173
  const multiplier = random(1, 10);
2171
2174
  return price / multiplier;
2172
2175
  };
2173
- for (const char of chars) {
2174
- for (let i = 0; i < 1e3; i++) {
2175
- const char2 = chars[random(0, chars.length - 1)];
2176
- const char3 = chars[random(0, chars.length - 1)];
2177
- const char4 = chars[random(0, chars.length - 1)];
2178
- const suffix = suffixes[random(0, suffixes.length - 1)];
2179
- const ric = char + char2 + char3 + char4 + "." + suffix;
2180
- const bbg = char + char2 + char3 + char4 + " " + suffix;
2181
- const description = `${ric} description`;
2182
- const currency = currencies[random(0, 4)];
2183
- const isin = (0, import_isin_generator.isinGenerator)();
2184
- const lotSize = lotsizes[random(0, lotsizes.length - 1)];
2185
- const exchange = locations[suffix][1];
2186
- const price = randomPrice();
2187
- instrumentsData.push([
2188
- bbg,
2189
- currency,
2190
- description,
2191
- exchange,
2192
- String(isin),
2193
- lotSize,
2194
- ric,
2195
- price
2196
- ]);
2176
+ var count = 0;
2177
+ for (const char1 of chars1) {
2178
+ for (const char2 of chars2) {
2179
+ for (const char3 of chars3) {
2180
+ for (const char4 of chars4) {
2181
+ const suffix = suffixes[count % 8];
2182
+ const ric = char1 + char2 + char3 + char4 + "." + suffix;
2183
+ const bbg = char1 + char2 + char3 + char4 + " " + suffix;
2184
+ const description = `${ric} description`;
2185
+ const currency = currencies[random(0, 4)];
2186
+ const isin = (0, import_isin_generator.isinGenerator)();
2187
+ const lotSize = lotsizes[random(0, lotsizes.length - 1)];
2188
+ const exchange = locations[suffix][1];
2189
+ const price = randomPrice();
2190
+ instrumentsData.push([
2191
+ bbg,
2192
+ currency,
2193
+ description,
2194
+ exchange,
2195
+ String(isin),
2196
+ lotSize,
2197
+ ric,
2198
+ price
2199
+ ]);
2200
+ count++;
2201
+ }
2202
+ }
2197
2203
  }
2198
2204
  }
2199
2205
  var getRic = (defaultRic) => {