jazz-tools 0.18.7 → 0.18.8

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.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  randomSessionProvider,
38
38
  subscribeToCoValue,
39
39
  zodReExport_exports
40
- } from "./chunk-CFAY3FMQ.js";
40
+ } from "./chunk-QF3R3C4N.js";
41
41
 
42
42
  // src/tools/auth/clerk/index.ts
43
43
  import {
@@ -4272,9 +4272,13 @@ function enrichCoMapSchema(schema, coValueClass) {
4272
4272
  }
4273
4273
  return coMapDefiner(pickedShape);
4274
4274
  },
4275
- partial: () => {
4275
+ partial: (keys) => {
4276
4276
  const partialShape = {};
4277
4277
  for (const [key, value] of Object.entries(coValueSchema.shape)) {
4278
+ if (keys && !keys[key]) {
4279
+ partialShape[key] = value;
4280
+ continue;
4281
+ }
4278
4282
  if (isAnyCoValueSchema(value)) {
4279
4283
  partialShape[key] = coOptionalDefiner(value);
4280
4284
  } else {