@coderzz/mocker-data-generator 3.0.6 → 3.0.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.0.7](https://github.com/anyideaz/mocker-data-generator/compare/v3.0.6...v3.0.7) (2025-02-18)
6
+
5
7
  ### 3.0.6 (2025-02-18)
6
8
 
7
9
 
@@ -188,7 +188,7 @@ var stringToPathOrCall = function (name, fn, cfg) {
188
188
  var _b = args.split(')'), args2 = _b[0], mods = _b[1];
189
189
  args = args2
190
190
  ? args2[0] === '{'
191
- ? [JSON.parse(args2)]
191
+ ? [eval(args2)]
192
192
  : args2
193
193
  .split(',')
194
194
  .map(function (e) { return (/^\d+$/.test(e) ? Number.parseInt(e) : e); })
@@ -177,7 +177,7 @@ export var stringToPathOrCall = function (name, fn, cfg) {
177
177
  var _b = args.split(')'), args2 = _b[0], mods = _b[1];
178
178
  args = args2
179
179
  ? args2[0] === '{'
180
- ? [JSON.parse(args2)]
180
+ ? [eval(args2)]
181
181
  : args2
182
182
  .split(',')
183
183
  .map(function (e) { return (/^\d+$/.test(e) ? Number.parseInt(e) : e); })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderzz/mocker-data-generator",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "A simplified way to generate mock data, builds using a simple schema and with the FakerJs",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",