ata-validator 1.46.0 → 1.46.1

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.
@@ -3071,7 +3071,13 @@ function tryGenCombined(schema, access, ctx) {
3071
3071
  function _deferOrInline(ctx, lines, v, check) {
3072
3072
  // Deferring is only sound at the top level of the root function. Inside a
3073
3073
  // conditional applicator (dependentSchemas) the check must stay in its block.
3074
- if (v === 'd' && !ctx.condDepth) {
3074
+ // Nor inside a verdict generated for a subschema (nestedGenCode, the inline
3075
+ // annotation verdicts of run-time unevaluatedProperties): those lines go
3076
+ // into a block or a function of their own and nothing flushes the deferred
3077
+ // list for them, so a deferred check was dropped. A branch of an anyOf with
3078
+ // `additionalProperties: { const: true }` at the root then read as holding
3079
+ // for every object, and unevaluatedProperties accepted what it evaluated.
3080
+ if (v === 'd' && !ctx.condDepth && !ctx.nestedBoolean) {
3075
3081
  if (!ctx.deferredChecks) ctx.deferredChecks = []
3076
3082
  ctx.deferredChecks.push(check)
3077
3083
  } else {
package/lib/version.js CHANGED
@@ -7,4 +7,4 @@
7
7
  //
8
8
  // Kept in lockstep with package.json by `tests/test_version_sync.js`.
9
9
 
10
- module.exports = '1.46.0';
10
+ module.exports = '1.46.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ata-validator",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "JSON Schema validator that compiles to plain JavaScript, still runs where code generation is blocked, and can be compiled away at build time. Passes the full official test suite.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -143,13 +143,13 @@
143
143
  "LICENSE"
144
144
  ],
145
145
  "optionalDependencies": {
146
- "@ata-validator/native-darwin-arm64": "1.46.0",
147
- "@ata-validator/native-darwin-x64": "1.46.0",
148
- "@ata-validator/native-linux-arm64-gnu": "1.46.0",
149
- "@ata-validator/native-linux-arm64-musl": "1.46.0",
150
- "@ata-validator/native-linux-x64-gnu": "1.46.0",
151
- "@ata-validator/native-linux-x64-musl": "1.46.0",
152
- "@ata-validator/native-win32-x64": "1.46.0"
146
+ "@ata-validator/native-darwin-arm64": "1.46.1",
147
+ "@ata-validator/native-darwin-x64": "1.46.1",
148
+ "@ata-validator/native-linux-arm64-gnu": "1.46.1",
149
+ "@ata-validator/native-linux-arm64-musl": "1.46.1",
150
+ "@ata-validator/native-linux-x64-gnu": "1.46.1",
151
+ "@ata-validator/native-linux-x64-musl": "1.46.1",
152
+ "@ata-validator/native-win32-x64": "1.46.1"
153
153
  },
154
154
  "peerDependencies": {
155
155
  "yaml": "^2.0.0"