use-zod-default 1.0.16 → 1.0.17

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.
Files changed (2) hide show
  1. package/dist/v4.js +1 -1
  2. package/package.json +3 -3
package/dist/v4.js CHANGED
@@ -133,7 +133,7 @@ const defaultInstance = (schema, source = {}) => {
133
133
  const discriminatorValue = source[discriminator];
134
134
  // Find matching option based on discriminator value
135
135
  const matchingSchema = schema._zod.def.options.find(option => {
136
- const propValues = option._zod.propValues;
136
+ const { propValues } = option._zod;
137
137
  if (propValues && propValues[discriminator]) {
138
138
  return propValues[discriminator].has(discriminatorValue);
139
139
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "vitest": "^2.1.3"
16
16
  },
17
17
  "exports": {
18
- ".": "./dist/v3.js",
18
+ ".": "./dist/v4.js",
19
19
  "./v3": "./dist/v3.js",
20
20
  "./v4": "./dist/v4.js"
21
21
  },
@@ -32,9 +32,9 @@
32
32
  "scripts": {
33
33
  "build": "rm -rf dist && yarn lint && tsc -p tsconfig.json",
34
34
  "lint": "prettier --write . && eslint . && yarn tsc",
35
- "npm-publish": "yarn test --run && yarn build && yarn version --patch --no-git-tag-version && yarn publish --non-interactive",
35
+ "npm:publish": "yarn test --run && yarn build && yarn version --patch --no-git-tag-version && yarn publish --non-interactive",
36
36
  "test": "vitest",
37
37
  "test:coverage": "rm -rf coverage && vitest --run --coverage"
38
38
  },
39
- "version": "1.0.16"
39
+ "version": "1.0.17"
40
40
  }