@necrolab/dashboard 0.4.209 → 0.4.210

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.
@@ -13,7 +13,7 @@
13
13
  "smartTimer": false,
14
14
  "presaleMode": false,
15
15
  "agedAccount": false,
16
- "accountTag": "Dubai",
16
+ "accountTag": "admin",
17
17
  "profileTags": ["Any"]
18
18
  }
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.4.209",
3
+ "version": "0.4.210",
4
4
  "scripts": {
5
5
  "build": "npx workbox-cli generateSW workbox-config.js && vite build",
6
6
  "dev": "vite",
@@ -266,7 +266,14 @@ const openInBrowser = (debug) => {
266
266
  const formatDate = (date) => {
267
267
  if (!date) return "-";
268
268
  const d = new Date(date);
269
- return `${d.toDateString()} ${d.toTimeString().split(":").slice(0, 2).join(":")}`;
269
+ const iso = d.toISOString();
270
+ const [year, month, day] = iso.substring(0, 10).split('-');
271
+ const time = iso.substring(11, 16);
272
+ const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
273
+ const dayName = dayNames[d.getUTCDay()];
274
+ const monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
275
+ const monthName = monthNames[parseInt(month) - 1];
276
+ return `${dayName} ${monthName} ${parseInt(day)} ${year} ${time}`;
270
277
  };
271
278
 
272
279
 
@@ -30,7 +30,7 @@ export default {
30
30
  agedAccount: true,
31
31
  presaleCode: "",
32
32
  smartTimer: false,
33
- accountTag: "Dubai",
33
+ accountTag: "admin",
34
34
  profileTags: ["Any"],
35
35
  eventName: "Taylor Swift | The Eras Tour",
36
36
  eventDate: "2023-05-19T22:30:00.000Z",
@@ -169,7 +169,7 @@ export default {
169
169
  agedAccount: true,
170
170
  presaleCode: "",
171
171
  smartTimer: false,
172
- accountTag: "Dubai",
172
+ accountTag: "admin",
173
173
  profileTags: ["Any"],
174
174
  eventName: "Taylor Swift | The Eras Tour",
175
175
  eventDate: "2023-05-19T22:30:00.000Z",
@@ -383,9 +383,10 @@ const removeDuplicates = (arr) => [...new Set(arr)];
383
383
  const pickRandom = (arr) => arr[Math.floor(Math.random() * arr.length)];
384
384
 
385
385
  const fakeId = () => {
386
- const cityInfo = pickRandom(cities);
386
+ const cityInfo = pickRandom(cities.filter((x) => x.state != "GA" && x.state != "PR" && x.zip_code > 10000));
387
+
387
388
  const profile = {
388
- zipCode: cityInfo[0],
389
+ zipCode: String(cityInfo[0]),
389
390
  address: generateStreetAddress()
390
391
  };
391
392