mimic-data 1.0.1 → 1.0.3

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/dist/index.mjs CHANGED
@@ -40,6 +40,7 @@ var Random = class {
40
40
 
41
41
  // src/core/mimic.ts
42
42
  var Mimic = class {
43
+ locale;
43
44
  constructor(locale) {
44
45
  this.locale = locale;
45
46
  }
@@ -71,8 +72,8 @@ var Mimic = class {
71
72
  return Random.pick(["male", "female"]);
72
73
  },
73
74
  age: (range) => {
74
- const min = range?.min ?? 18;
75
- const max = range?.max ?? 65;
75
+ const min = (range == null ? void 0 : range.min) ?? 18;
76
+ const max = (range == null ? void 0 : range.max) ?? 65;
76
77
  return Random.int(min, max);
77
78
  },
78
79
  dateOfBirth: (range) => {
@@ -227,10 +228,8 @@ var Mimic = class {
227
228
 
228
229
  // src/core/registry.ts
229
230
  var LocaleRegistry = class {
230
- constructor() {
231
- this.locales = /* @__PURE__ */ new Map();
232
- this.aliases = /* @__PURE__ */ new Map();
233
- }
231
+ locales = /* @__PURE__ */ new Map();
232
+ aliases = /* @__PURE__ */ new Map();
234
233
  /**
235
234
  * Register locale baru
236
235
  * @param code - Kode locale utama (contoh: 'en_US')
@@ -10456,7 +10455,14 @@ var locales = {
10456
10455
  he_IL
10457
10456
  };
10458
10457
  var index_default = createMimic;
10459
-
10460
- export { Mimic, Random, createMimic, index_default as default, getAllLocaleCodes, getAvailableLocales, localeRegistry, locales };
10461
- //# sourceMappingURL=index.mjs.map
10458
+ export {
10459
+ Mimic,
10460
+ Random,
10461
+ createMimic,
10462
+ index_default as default,
10463
+ getAllLocaleCodes,
10464
+ getAvailableLocales,
10465
+ localeRegistry,
10466
+ locales
10467
+ };
10462
10468
  //# sourceMappingURL=index.mjs.map