@schmock/schema 1.1.0 → 1.2.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@schmock/schema",
3
3
  "description": "JSON Schema-based automatic data generation for Schmock",
4
- "version": "1.1.0",
4
+ "version": "1.2.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "json-schema-faker": "^0.5.6",
34
- "@faker-js/faker": "^10.2.0"
33
+ "@faker-js/faker": "^10.3.0",
34
+ "json-schema-faker": "^0.5.6"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@schmock/core": "^1.0.0"
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@amiceli/vitest-cucumber": "^6.2.0",
41
41
  "@types/json-schema": "^7.0.15",
42
- "@types/node": "^25.1.0",
43
- "vitest": "^4.0.15"
42
+ "@types/node": "^25.2.1",
43
+ "vitest": "^4.0.18"
44
44
  }
45
45
  }
package/src/index.ts CHANGED
@@ -577,7 +577,7 @@ function applyOverrides(
577
577
  ): any {
578
578
  if (!overrides) return data;
579
579
 
580
- const result = JSON.parse(JSON.stringify(data)); // Deep clone
580
+ const result = structuredClone(data);
581
581
 
582
582
  for (const [key, value] of Object.entries(overrides)) {
583
583
  // Handle nested paths like "data.id" or "pagination.page"