@dxos/random 0.16.0 → 0.17.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/random",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Random data generator.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@ngneat/falso": "^7.1.1",
29
- "@dxos/node-std": "0.16.0",
30
- "@dxos/util": "0.16.0"
28
+ "@dxos/node-std": "0.17.0",
29
+ "@dxos/util": "0.17.0",
30
+ "@ngneat/falso": "^7.1.1"
31
31
  },
32
32
  "devDependencies": {},
33
33
  "publishConfig": {
package/src/random.ts CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  randProductName,
20
20
  randRecentDate,
21
21
  randSentence,
22
+ randTodo,
22
23
  randUrl,
23
24
  randUuid,
24
25
  randWord,
@@ -123,11 +124,13 @@ export const random = {
123
124
  productName: () => randProductName(),
124
125
  department: () => randDepartment(),
125
126
  },
127
+ todo: {
128
+ title: () => randTodo().title,
129
+ },
126
130
  geo: {
127
131
  airport: () => rand(airports),
128
132
  location: () => rand(airports).location,
129
133
  },
130
- email: {},
131
134
  properties: {
132
135
  emoji: () => rand(idEmoji),
133
136
  hue: () => rand(idHue),