@capture.dev/fast-json-patch 3.2.2 → 3.2.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.d.cts CHANGED
@@ -41,6 +41,7 @@ type BaseOperation = {
41
41
  type AddOperation<T> = BaseOperation & {
42
42
  op: "add";
43
43
  value: T;
44
+ index?: number;
44
45
  };
45
46
  type RemoveOperation = BaseOperation & {
46
47
  op: "remove";
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ type BaseOperation = {
41
41
  type AddOperation<T> = BaseOperation & {
42
42
  op: "add";
43
43
  value: T;
44
+ index?: number;
44
45
  };
45
46
  type RemoveOperation = BaseOperation & {
46
47
  op: "remove";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capture.dev/fast-json-patch",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Fast implementation of JSON-Patch (RFC-6902) with duplex (observe changes) capabilities",
@@ -69,6 +69,8 @@
69
69
  "test-core": "node --experimental-modules jasmine-run.mjs 'test/spec/{jsonPatchTestsSpec,coreSpec,validateSpec}.mjs'",
70
70
  "bench": "npm run bench-core && npm run bench-duplex",
71
71
  "bench-core": "node test/spec/coreBenchmark.js",
72
- "bench-duplex": "node test/spec/coreBenchmark.js && node test/spec/duplexBenchmark.js"
72
+ "bench-duplex": "node test/spec/coreBenchmark.js && node test/spec/duplexBenchmark.js",
73
+ "bench:vitest": "vitest bench --run",
74
+ "bench:vitest:watch": "vitest bench"
73
75
  }
74
76
  }