We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb950da + 7e24395 commit e48850aCopy full SHA for e48850a
api/1.3/data/NL/inject.js
@@ -4,11 +4,21 @@ module.exports = (inc, contents) => {
4
const pic = contents.picture;
5
delete contents.picture;
6
7
- include(inc, contents, 'phone', '(' + random(3, 3) + ')-' + random(3, 3) + '-' + random(3, 4));
8
- include(inc, contents, 'cell', '(' + random(3, 3) + ')-' + random(3, 3) + '-' + random(3, 4));
+ include(inc, contents, 'phone', () => {
+ const phones = [
9
+ '(0' + random(3, 2) + ') ' + random(3, 7),
10
+ '(0' + random(3, 3) + ') ' + random(3, 6)
11
+ ];
12
+ contents.phone = randomItem(phones);
13
+ });
14
+ include(inc, contents, 'cell', '(06) ' + random(3, 8));
15
include(inc, contents, 'id', {
16
name: 'BSN',
17
value: random(3, 8)
18
});
19
+ include(inc, contents, 'location', () => {
20
+ const code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
21
+ contents.location.postcode = random(3, 4) + ' ' + code[range(0, 25)] + code[range(0, 25)];
22
23
include(inc, contents, 'picture', pic);
-};
24
+};
0 commit comments