@atxp/client 0.10.4 → 0.10.6
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/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index18.js +2 -2
- package/dist/_virtual/index19.js +2 -2
- package/dist/_virtual/index20.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/atxpFetcher.d.ts.map +1 -1
- package/dist/atxpFetcher.js +16 -1
- package/dist/atxpFetcher.js.map +1 -1
- package/dist/index.cjs +23 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/index.js +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/index.js +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- package/dist/oAuth.d.ts +3 -1
- package/dist/oAuth.d.ts.map +1 -1
- package/dist/oAuth.js +7 -1
- package/dist/oAuth.js.map +1 -1
- package/package.json +2 -2
- package/dist/_virtual/cache.js +0 -4
- package/dist/_virtual/cache.js.map +0 -1
- package/dist/_virtual/uri.all.js +0 -4
- package/dist/_virtual/uri.all.js.map +0 -1
- package/dist/atxpAccount.d.ts +0 -20
- package/dist/atxpAccount.d.ts.map +0 -1
- package/dist/atxpAccount.js +0 -161
- package/dist/atxpAccount.js.map +0 -1
- package/dist/base.cjs +0 -34
- package/dist/base.cjs.map +0 -1
- package/dist/base.d.ts +0 -4
- package/dist/base.d.ts.map +0 -1
- package/dist/base.js +0 -5
- package/dist/base.js.map +0 -1
- package/dist/baseAccount.d.ts +0 -20
- package/dist/baseAccount.d.ts.map +0 -1
- package/dist/baseAccount.js +0 -47
- package/dist/baseAccount.js.map +0 -1
- package/dist/baseConstants.d.ts +0 -10
- package/dist/baseConstants.d.ts.map +0 -1
- package/dist/baseConstants.js +0 -21
- package/dist/baseConstants.js.map +0 -1
- package/dist/basePaymentMaker.d.ts +0 -23
- package/dist/basePaymentMaker.d.ts.map +0 -1
- package/dist/basePaymentMaker.js +0 -169
- package/dist/basePaymentMaker.js.map +0 -1
- package/dist/node_modules/ajv/dist/ajv.js +0 -71
- package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -169
- package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -712
- package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -157
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -139
- package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/index.js +0 -259
- package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/names.js +0 -40
- package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -24
- package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -169
- package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -37
- package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/util.js +0 -191
- package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -30
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -64
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -219
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -48
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -541
- package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -139
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -94
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/dist/node_modules/ajv/dist/core.js +0 -642
- package/dist/node_modules/ajv/dist/core.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/data.json.js +0 -31
- package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -254
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -19
- package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -35
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -18
- package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -22
- package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -62
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -121
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -35
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -108
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -101
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -79
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -71
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -45
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -38
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -73
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -89
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -69
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -51
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -25
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -145
- package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -21
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -29
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -139
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -120
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -20
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -104
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -29
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -39
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -62
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -54
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -41
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -39
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -38
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -37
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -93
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -79
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/dist/node_modules/ajv/lib/ajv.js +0 -531
- package/dist/node_modules/ajv/lib/ajv.js.map +0 -1
- package/dist/node_modules/ajv/lib/cache.js +0 -37
- package/dist/node_modules/ajv/lib/cache.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/async.js +0 -102
- package/dist/node_modules/ajv/lib/compile/async.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/error_classes.js +0 -46
- package/dist/node_modules/ajv/lib/compile/error_classes.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/formats.js +0 -154
- package/dist/node_modules/ajv/lib/compile/formats.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/index.js +0 -404
- package/dist/node_modules/ajv/lib/compile/index.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/resolve.js +0 -286
- package/dist/node_modules/ajv/lib/compile/resolve.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/rules.js +0 -79
- package/dist/node_modules/ajv/lib/compile/rules.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/schema_obj.js +0 -21
- package/dist/node_modules/ajv/lib/compile/schema_obj.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/ucs2length.js +0 -30
- package/dist/node_modules/ajv/lib/compile/ucs2length.js.map +0 -1
- package/dist/node_modules/ajv/lib/compile/util.js +0 -252
- package/dist/node_modules/ajv/lib/compile/util.js.map +0 -1
- package/dist/node_modules/ajv/lib/data.js +0 -59
- package/dist/node_modules/ajv/lib/data.js.map +0 -1
- package/dist/node_modules/ajv/lib/definition_schema.js +0 -49
- package/dist/node_modules/ajv/lib/definition_schema.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/_limit.js +0 -173
- package/dist/node_modules/ajv/lib/dotjs/_limit.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/_limitItems.js +0 -90
- package/dist/node_modules/ajv/lib/dotjs/_limitItems.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/_limitLength.js +0 -95
- package/dist/node_modules/ajv/lib/dotjs/_limitLength.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -90
- package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/allOf.js +0 -52
- package/dist/node_modules/ajv/lib/dotjs/allOf.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/anyOf.js +0 -83
- package/dist/node_modules/ajv/lib/dotjs/anyOf.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/comment.js +0 -24
- package/dist/node_modules/ajv/lib/dotjs/comment.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/const.js +0 -62
- package/dist/node_modules/ajv/lib/dotjs/const.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/contains.js +0 -91
- package/dist/node_modules/ajv/lib/dotjs/contains.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/custom.js +0 -238
- package/dist/node_modules/ajv/lib/dotjs/custom.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/dependencies.js +0 -178
- package/dist/node_modules/ajv/lib/dotjs/dependencies.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/enum.js +0 -72
- package/dist/node_modules/ajv/lib/dotjs/enum.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/format.js +0 -160
- package/dist/node_modules/ajv/lib/dotjs/format.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/if.js +0 -113
- package/dist/node_modules/ajv/lib/dotjs/if.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/index.js +0 -68
- package/dist/node_modules/ajv/lib/dotjs/index.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/items.js +0 -150
- package/dist/node_modules/ajv/lib/dotjs/items.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/multipleOf.js +0 -90
- package/dist/node_modules/ajv/lib/dotjs/multipleOf.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/not.js +0 -94
- package/dist/node_modules/ajv/lib/dotjs/not.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/oneOf.js +0 -83
- package/dist/node_modules/ajv/lib/dotjs/oneOf.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/pattern.js +0 -85
- package/dist/node_modules/ajv/lib/dotjs/pattern.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/properties.js +0 -345
- package/dist/node_modules/ajv/lib/dotjs/properties.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/propertyNames.js +0 -91
- package/dist/node_modules/ajv/lib/dotjs/propertyNames.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/ref.js +0 -134
- package/dist/node_modules/ajv/lib/dotjs/ref.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/required.js +0 -276
- package/dist/node_modules/ajv/lib/dotjs/required.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -96
- package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js.map +0 -1
- package/dist/node_modules/ajv/lib/dotjs/validate.js +0 -492
- package/dist/node_modules/ajv/lib/dotjs/validate.js.map +0 -1
- package/dist/node_modules/ajv/lib/keyword.js +0 -159
- package/dist/node_modules/ajv/lib/keyword.js.map +0 -1
- package/dist/node_modules/ajv/lib/refs/data.json.js +0 -33
- package/dist/node_modules/ajv/lib/refs/data.json.js.map +0 -1
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js +0 -254
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js.map +0 -1
- package/dist/node_modules/fast-json-stable-stringify/index.js +0 -69
- package/dist/node_modules/fast-json-stable-stringify/index.js.map +0 -1
- package/dist/node_modules/json-schema-traverse/index.js +0 -104
- package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
- package/dist/node_modules/uri-js/dist/es5/uri.all.js +0 -1418
- package/dist/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
- package/dist/node_modules/zod/v3/ZodError.js +0 -133
- package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
- package/dist/node_modules/zod/v3/errors.js +0 -9
- package/dist/node_modules/zod/v3/errors.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -9
- package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -112
- package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/util.js +0 -136
- package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
- package/dist/node_modules/zod/v3/locales/en.js +0 -112
- package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
- package/dist/node_modules/zod/v3/types.js +0 -3491
- package/dist/node_modules/zod/v3/types.js.map +0 -1
- package/dist/polygon.cjs +0 -39
- package/dist/polygon.cjs.map +0 -1
- package/dist/polygon.d.ts +0 -1
- package/dist/polygon.d.ts.map +0 -1
- package/dist/polygon.js +0 -2
- package/dist/polygon.js.map +0 -1
- package/dist/solana.cjs +0 -20
- package/dist/solana.cjs.map +0 -1
- package/dist/solana.d.ts +0 -2
- package/dist/solana.d.ts.map +0 -1
- package/dist/solana.js +0 -3
- package/dist/solana.js.map +0 -1
- package/dist/solanaAccount.d.ts +0 -13
- package/dist/solanaAccount.d.ts.map +0 -1
- package/dist/solanaAccount.js +0 -34
- package/dist/solanaAccount.js.map +0 -1
- package/dist/solanaPaymentMaker.d.ts +0 -25
- package/dist/solanaPaymentMaker.d.ts.map +0 -1
- package/dist/solanaPaymentMaker.js +0 -108
- package/dist/solanaPaymentMaker.js.map +0 -1
- package/dist/types.js +0 -152
- package/dist/types.js.map +0 -1
- package/dist/world.cjs +0 -39
- package/dist/world.cjs.map +0 -1
- package/dist/world.d.ts +0 -1
- package/dist/world.d.ts.map +0 -1
- package/dist/world.js +0 -2
- package/dist/world.js.map +0 -1
|
@@ -1,492 +0,0 @@
|
|
|
1
|
-
var validate;
|
|
2
|
-
var hasRequiredValidate;
|
|
3
|
-
|
|
4
|
-
function requireValidate () {
|
|
5
|
-
if (hasRequiredValidate) return validate;
|
|
6
|
-
hasRequiredValidate = 1;
|
|
7
|
-
validate = function generate_validate(it, $keyword, $ruleType) {
|
|
8
|
-
var out = '';
|
|
9
|
-
var $async = it.schema.$async === true,
|
|
10
|
-
$refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
|
|
11
|
-
$id = it.self._getId(it.schema);
|
|
12
|
-
if (it.opts.strictKeywords) {
|
|
13
|
-
var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);
|
|
14
|
-
if ($unknownKwd) {
|
|
15
|
-
var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;
|
|
16
|
-
if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);
|
|
17
|
-
else throw new Error($keywordsMsg);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (it.isTop) {
|
|
21
|
-
out += ' var validate = ';
|
|
22
|
-
if ($async) {
|
|
23
|
-
it.async = true;
|
|
24
|
-
out += 'async ';
|
|
25
|
-
}
|
|
26
|
-
out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; ';
|
|
27
|
-
if ($id && (it.opts.sourceCode || it.opts.processCode)) {
|
|
28
|
-
out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' ';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {
|
|
32
|
-
var $keyword = 'false schema';
|
|
33
|
-
var $lvl = it.level;
|
|
34
|
-
var $dataLvl = it.dataLevel;
|
|
35
|
-
var $schema = it.schema[$keyword];
|
|
36
|
-
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
|
|
37
|
-
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
38
|
-
var $breakOnError = !it.opts.allErrors;
|
|
39
|
-
var $errorKeyword;
|
|
40
|
-
var $data = 'data' + ($dataLvl || '');
|
|
41
|
-
var $valid = 'valid' + $lvl;
|
|
42
|
-
if (it.schema === false) {
|
|
43
|
-
if (it.isTop) {
|
|
44
|
-
$breakOnError = true;
|
|
45
|
-
} else {
|
|
46
|
-
out += ' var ' + ($valid) + ' = false; ';
|
|
47
|
-
}
|
|
48
|
-
var $$outStack = $$outStack || [];
|
|
49
|
-
$$outStack.push(out);
|
|
50
|
-
out = ''; /* istanbul ignore else */
|
|
51
|
-
if (it.createErrors !== false) {
|
|
52
|
-
out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
|
|
53
|
-
if (it.opts.messages !== false) {
|
|
54
|
-
out += ' , message: \'boolean schema is false\' ';
|
|
55
|
-
}
|
|
56
|
-
if (it.opts.verbose) {
|
|
57
|
-
out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
58
|
-
}
|
|
59
|
-
out += ' } ';
|
|
60
|
-
} else {
|
|
61
|
-
out += ' {} ';
|
|
62
|
-
}
|
|
63
|
-
var __err = out;
|
|
64
|
-
out = $$outStack.pop();
|
|
65
|
-
if (!it.compositeRule && $breakOnError) {
|
|
66
|
-
/* istanbul ignore if */
|
|
67
|
-
if (it.async) {
|
|
68
|
-
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
69
|
-
} else {
|
|
70
|
-
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
71
|
-
}
|
|
72
|
-
} else {
|
|
73
|
-
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
if (it.isTop) {
|
|
77
|
-
if ($async) {
|
|
78
|
-
out += ' return data; ';
|
|
79
|
-
} else {
|
|
80
|
-
out += ' validate.errors = null; return true; ';
|
|
81
|
-
}
|
|
82
|
-
} else {
|
|
83
|
-
out += ' var ' + ($valid) + ' = true; ';
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (it.isTop) {
|
|
87
|
-
out += ' }; return validate; ';
|
|
88
|
-
}
|
|
89
|
-
return out;
|
|
90
|
-
}
|
|
91
|
-
if (it.isTop) {
|
|
92
|
-
var $top = it.isTop,
|
|
93
|
-
$lvl = it.level = 0,
|
|
94
|
-
$dataLvl = it.dataLevel = 0,
|
|
95
|
-
$data = 'data';
|
|
96
|
-
it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
|
|
97
|
-
it.baseId = it.baseId || it.rootId;
|
|
98
|
-
delete it.isTop;
|
|
99
|
-
it.dataPathArr = [""];
|
|
100
|
-
if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {
|
|
101
|
-
var $defaultMsg = 'default is ignored in the schema root';
|
|
102
|
-
if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
|
|
103
|
-
else throw new Error($defaultMsg);
|
|
104
|
-
}
|
|
105
|
-
out += ' var vErrors = null; ';
|
|
106
|
-
out += ' var errors = 0; ';
|
|
107
|
-
out += ' if (rootData === undefined) rootData = data; ';
|
|
108
|
-
} else {
|
|
109
|
-
var $lvl = it.level,
|
|
110
|
-
$dataLvl = it.dataLevel,
|
|
111
|
-
$data = 'data' + ($dataLvl || '');
|
|
112
|
-
if ($id) it.baseId = it.resolve.url(it.baseId, $id);
|
|
113
|
-
if ($async && !it.async) throw new Error('async schema in sync schema');
|
|
114
|
-
out += ' var errs_' + ($lvl) + ' = errors;';
|
|
115
|
-
}
|
|
116
|
-
var $valid = 'valid' + $lvl,
|
|
117
|
-
$breakOnError = !it.opts.allErrors,
|
|
118
|
-
$closingBraces1 = '',
|
|
119
|
-
$closingBraces2 = '';
|
|
120
|
-
var $errorKeyword;
|
|
121
|
-
var $typeSchema = it.schema.type,
|
|
122
|
-
$typeIsArray = Array.isArray($typeSchema);
|
|
123
|
-
if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {
|
|
124
|
-
if ($typeIsArray) {
|
|
125
|
-
if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');
|
|
126
|
-
} else if ($typeSchema != 'null') {
|
|
127
|
-
$typeSchema = [$typeSchema, 'null'];
|
|
128
|
-
$typeIsArray = true;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if ($typeIsArray && $typeSchema.length == 1) {
|
|
132
|
-
$typeSchema = $typeSchema[0];
|
|
133
|
-
$typeIsArray = false;
|
|
134
|
-
}
|
|
135
|
-
if (it.schema.$ref && $refKeywords) {
|
|
136
|
-
if (it.opts.extendRefs == 'fail') {
|
|
137
|
-
throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)');
|
|
138
|
-
} else if (it.opts.extendRefs !== true) {
|
|
139
|
-
$refKeywords = false;
|
|
140
|
-
it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
if (it.schema.$comment && it.opts.$comment) {
|
|
144
|
-
out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));
|
|
145
|
-
}
|
|
146
|
-
if ($typeSchema) {
|
|
147
|
-
if (it.opts.coerceTypes) {
|
|
148
|
-
var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);
|
|
149
|
-
}
|
|
150
|
-
var $rulesGroup = it.RULES.types[$typeSchema];
|
|
151
|
-
if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {
|
|
152
|
-
var $schemaPath = it.schemaPath + '.type',
|
|
153
|
-
$errSchemaPath = it.errSchemaPath + '/type';
|
|
154
|
-
var $schemaPath = it.schemaPath + '.type',
|
|
155
|
-
$errSchemaPath = it.errSchemaPath + '/type',
|
|
156
|
-
$method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';
|
|
157
|
-
out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { ';
|
|
158
|
-
if ($coerceToTypes) {
|
|
159
|
-
var $dataType = 'dataType' + $lvl,
|
|
160
|
-
$coerced = 'coerced' + $lvl;
|
|
161
|
-
out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; ';
|
|
162
|
-
if (it.opts.coerceTypes == 'array') {
|
|
163
|
-
out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } ';
|
|
164
|
-
}
|
|
165
|
-
out += ' if (' + ($coerced) + ' !== undefined) ; ';
|
|
166
|
-
var arr1 = $coerceToTypes;
|
|
167
|
-
if (arr1) {
|
|
168
|
-
var $type, $i = -1,
|
|
169
|
-
l1 = arr1.length - 1;
|
|
170
|
-
while ($i < l1) {
|
|
171
|
-
$type = arr1[$i += 1];
|
|
172
|
-
if ($type == 'string') {
|
|
173
|
-
out += ' else if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; ';
|
|
174
|
-
} else if ($type == 'number' || $type == 'integer') {
|
|
175
|
-
out += ' else if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';
|
|
176
|
-
if ($type == 'integer') {
|
|
177
|
-
out += ' && !(' + ($data) + ' % 1)';
|
|
178
|
-
}
|
|
179
|
-
out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';
|
|
180
|
-
} else if ($type == 'boolean') {
|
|
181
|
-
out += ' else if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';
|
|
182
|
-
} else if ($type == 'null') {
|
|
183
|
-
out += ' else if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';
|
|
184
|
-
} else if (it.opts.coerceTypes == 'array' && $type == 'array') {
|
|
185
|
-
out += ' else if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
out += ' else { ';
|
|
190
|
-
var $$outStack = $$outStack || [];
|
|
191
|
-
$$outStack.push(out);
|
|
192
|
-
out = ''; /* istanbul ignore else */
|
|
193
|
-
if (it.createErrors !== false) {
|
|
194
|
-
out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
|
|
195
|
-
if ($typeIsArray) {
|
|
196
|
-
out += '' + ($typeSchema.join(","));
|
|
197
|
-
} else {
|
|
198
|
-
out += '' + ($typeSchema);
|
|
199
|
-
}
|
|
200
|
-
out += '\' } ';
|
|
201
|
-
if (it.opts.messages !== false) {
|
|
202
|
-
out += ' , message: \'should be ';
|
|
203
|
-
if ($typeIsArray) {
|
|
204
|
-
out += '' + ($typeSchema.join(","));
|
|
205
|
-
} else {
|
|
206
|
-
out += '' + ($typeSchema);
|
|
207
|
-
}
|
|
208
|
-
out += '\' ';
|
|
209
|
-
}
|
|
210
|
-
if (it.opts.verbose) {
|
|
211
|
-
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
212
|
-
}
|
|
213
|
-
out += ' } ';
|
|
214
|
-
} else {
|
|
215
|
-
out += ' {} ';
|
|
216
|
-
}
|
|
217
|
-
var __err = out;
|
|
218
|
-
out = $$outStack.pop();
|
|
219
|
-
if (!it.compositeRule && $breakOnError) {
|
|
220
|
-
/* istanbul ignore if */
|
|
221
|
-
if (it.async) {
|
|
222
|
-
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
223
|
-
} else {
|
|
224
|
-
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
225
|
-
}
|
|
226
|
-
} else {
|
|
227
|
-
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
228
|
-
}
|
|
229
|
-
out += ' } if (' + ($coerced) + ' !== undefined) { ';
|
|
230
|
-
var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
|
|
231
|
-
$parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
|
|
232
|
-
out += ' ' + ($data) + ' = ' + ($coerced) + '; ';
|
|
233
|
-
if (!$dataLvl) {
|
|
234
|
-
out += 'if (' + ($parentData) + ' !== undefined)';
|
|
235
|
-
}
|
|
236
|
-
out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';
|
|
237
|
-
} else {
|
|
238
|
-
var $$outStack = $$outStack || [];
|
|
239
|
-
$$outStack.push(out);
|
|
240
|
-
out = ''; /* istanbul ignore else */
|
|
241
|
-
if (it.createErrors !== false) {
|
|
242
|
-
out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
|
|
243
|
-
if ($typeIsArray) {
|
|
244
|
-
out += '' + ($typeSchema.join(","));
|
|
245
|
-
} else {
|
|
246
|
-
out += '' + ($typeSchema);
|
|
247
|
-
}
|
|
248
|
-
out += '\' } ';
|
|
249
|
-
if (it.opts.messages !== false) {
|
|
250
|
-
out += ' , message: \'should be ';
|
|
251
|
-
if ($typeIsArray) {
|
|
252
|
-
out += '' + ($typeSchema.join(","));
|
|
253
|
-
} else {
|
|
254
|
-
out += '' + ($typeSchema);
|
|
255
|
-
}
|
|
256
|
-
out += '\' ';
|
|
257
|
-
}
|
|
258
|
-
if (it.opts.verbose) {
|
|
259
|
-
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
260
|
-
}
|
|
261
|
-
out += ' } ';
|
|
262
|
-
} else {
|
|
263
|
-
out += ' {} ';
|
|
264
|
-
}
|
|
265
|
-
var __err = out;
|
|
266
|
-
out = $$outStack.pop();
|
|
267
|
-
if (!it.compositeRule && $breakOnError) {
|
|
268
|
-
/* istanbul ignore if */
|
|
269
|
-
if (it.async) {
|
|
270
|
-
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
271
|
-
} else {
|
|
272
|
-
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
273
|
-
}
|
|
274
|
-
} else {
|
|
275
|
-
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
out += ' } ';
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
if (it.schema.$ref && !$refKeywords) {
|
|
282
|
-
out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';
|
|
283
|
-
if ($breakOnError) {
|
|
284
|
-
out += ' } if (errors === ';
|
|
285
|
-
if ($top) {
|
|
286
|
-
out += '0';
|
|
287
|
-
} else {
|
|
288
|
-
out += 'errs_' + ($lvl);
|
|
289
|
-
}
|
|
290
|
-
out += ') { ';
|
|
291
|
-
$closingBraces2 += '}';
|
|
292
|
-
}
|
|
293
|
-
} else {
|
|
294
|
-
var arr2 = it.RULES;
|
|
295
|
-
if (arr2) {
|
|
296
|
-
var $rulesGroup, i2 = -1,
|
|
297
|
-
l2 = arr2.length - 1;
|
|
298
|
-
while (i2 < l2) {
|
|
299
|
-
$rulesGroup = arr2[i2 += 1];
|
|
300
|
-
if ($shouldUseGroup($rulesGroup)) {
|
|
301
|
-
if ($rulesGroup.type) {
|
|
302
|
-
out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { ';
|
|
303
|
-
}
|
|
304
|
-
if (it.opts.useDefaults) {
|
|
305
|
-
if ($rulesGroup.type == 'object' && it.schema.properties) {
|
|
306
|
-
var $schema = it.schema.properties,
|
|
307
|
-
$schemaKeys = Object.keys($schema);
|
|
308
|
-
var arr3 = $schemaKeys;
|
|
309
|
-
if (arr3) {
|
|
310
|
-
var $propertyKey, i3 = -1,
|
|
311
|
-
l3 = arr3.length - 1;
|
|
312
|
-
while (i3 < l3) {
|
|
313
|
-
$propertyKey = arr3[i3 += 1];
|
|
314
|
-
var $sch = $schema[$propertyKey];
|
|
315
|
-
if ($sch.default !== undefined) {
|
|
316
|
-
var $passData = $data + it.util.getProperty($propertyKey);
|
|
317
|
-
if (it.compositeRule) {
|
|
318
|
-
if (it.opts.strictDefaults) {
|
|
319
|
-
var $defaultMsg = 'default is ignored for: ' + $passData;
|
|
320
|
-
if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
|
|
321
|
-
else throw new Error($defaultMsg);
|
|
322
|
-
}
|
|
323
|
-
} else {
|
|
324
|
-
out += ' if (' + ($passData) + ' === undefined ';
|
|
325
|
-
if (it.opts.useDefaults == 'empty') {
|
|
326
|
-
out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
|
|
327
|
-
}
|
|
328
|
-
out += ' ) ' + ($passData) + ' = ';
|
|
329
|
-
if (it.opts.useDefaults == 'shared') {
|
|
330
|
-
out += ' ' + (it.useDefault($sch.default)) + ' ';
|
|
331
|
-
} else {
|
|
332
|
-
out += ' ' + (JSON.stringify($sch.default)) + ' ';
|
|
333
|
-
}
|
|
334
|
-
out += '; ';
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
} else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {
|
|
340
|
-
var arr4 = it.schema.items;
|
|
341
|
-
if (arr4) {
|
|
342
|
-
var $sch, $i = -1,
|
|
343
|
-
l4 = arr4.length - 1;
|
|
344
|
-
while ($i < l4) {
|
|
345
|
-
$sch = arr4[$i += 1];
|
|
346
|
-
if ($sch.default !== undefined) {
|
|
347
|
-
var $passData = $data + '[' + $i + ']';
|
|
348
|
-
if (it.compositeRule) {
|
|
349
|
-
if (it.opts.strictDefaults) {
|
|
350
|
-
var $defaultMsg = 'default is ignored for: ' + $passData;
|
|
351
|
-
if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
|
|
352
|
-
else throw new Error($defaultMsg);
|
|
353
|
-
}
|
|
354
|
-
} else {
|
|
355
|
-
out += ' if (' + ($passData) + ' === undefined ';
|
|
356
|
-
if (it.opts.useDefaults == 'empty') {
|
|
357
|
-
out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
|
|
358
|
-
}
|
|
359
|
-
out += ' ) ' + ($passData) + ' = ';
|
|
360
|
-
if (it.opts.useDefaults == 'shared') {
|
|
361
|
-
out += ' ' + (it.useDefault($sch.default)) + ' ';
|
|
362
|
-
} else {
|
|
363
|
-
out += ' ' + (JSON.stringify($sch.default)) + ' ';
|
|
364
|
-
}
|
|
365
|
-
out += '; ';
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
var arr5 = $rulesGroup.rules;
|
|
373
|
-
if (arr5) {
|
|
374
|
-
var $rule, i5 = -1,
|
|
375
|
-
l5 = arr5.length - 1;
|
|
376
|
-
while (i5 < l5) {
|
|
377
|
-
$rule = arr5[i5 += 1];
|
|
378
|
-
if ($shouldUseRule($rule)) {
|
|
379
|
-
var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);
|
|
380
|
-
if ($code) {
|
|
381
|
-
out += ' ' + ($code) + ' ';
|
|
382
|
-
if ($breakOnError) {
|
|
383
|
-
$closingBraces1 += '}';
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
if ($breakOnError) {
|
|
390
|
-
out += ' ' + ($closingBraces1) + ' ';
|
|
391
|
-
$closingBraces1 = '';
|
|
392
|
-
}
|
|
393
|
-
if ($rulesGroup.type) {
|
|
394
|
-
out += ' } ';
|
|
395
|
-
if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
|
|
396
|
-
out += ' else { ';
|
|
397
|
-
var $schemaPath = it.schemaPath + '.type',
|
|
398
|
-
$errSchemaPath = it.errSchemaPath + '/type';
|
|
399
|
-
var $$outStack = $$outStack || [];
|
|
400
|
-
$$outStack.push(out);
|
|
401
|
-
out = ''; /* istanbul ignore else */
|
|
402
|
-
if (it.createErrors !== false) {
|
|
403
|
-
out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
|
|
404
|
-
if ($typeIsArray) {
|
|
405
|
-
out += '' + ($typeSchema.join(","));
|
|
406
|
-
} else {
|
|
407
|
-
out += '' + ($typeSchema);
|
|
408
|
-
}
|
|
409
|
-
out += '\' } ';
|
|
410
|
-
if (it.opts.messages !== false) {
|
|
411
|
-
out += ' , message: \'should be ';
|
|
412
|
-
if ($typeIsArray) {
|
|
413
|
-
out += '' + ($typeSchema.join(","));
|
|
414
|
-
} else {
|
|
415
|
-
out += '' + ($typeSchema);
|
|
416
|
-
}
|
|
417
|
-
out += '\' ';
|
|
418
|
-
}
|
|
419
|
-
if (it.opts.verbose) {
|
|
420
|
-
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
421
|
-
}
|
|
422
|
-
out += ' } ';
|
|
423
|
-
} else {
|
|
424
|
-
out += ' {} ';
|
|
425
|
-
}
|
|
426
|
-
var __err = out;
|
|
427
|
-
out = $$outStack.pop();
|
|
428
|
-
if (!it.compositeRule && $breakOnError) {
|
|
429
|
-
/* istanbul ignore if */
|
|
430
|
-
if (it.async) {
|
|
431
|
-
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
432
|
-
} else {
|
|
433
|
-
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
434
|
-
}
|
|
435
|
-
} else {
|
|
436
|
-
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
437
|
-
}
|
|
438
|
-
out += ' } ';
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
if ($breakOnError) {
|
|
442
|
-
out += ' if (errors === ';
|
|
443
|
-
if ($top) {
|
|
444
|
-
out += '0';
|
|
445
|
-
} else {
|
|
446
|
-
out += 'errs_' + ($lvl);
|
|
447
|
-
}
|
|
448
|
-
out += ') { ';
|
|
449
|
-
$closingBraces2 += '}';
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
if ($breakOnError) {
|
|
456
|
-
out += ' ' + ($closingBraces2) + ' ';
|
|
457
|
-
}
|
|
458
|
-
if ($top) {
|
|
459
|
-
if ($async) {
|
|
460
|
-
out += ' if (errors === 0) return data; ';
|
|
461
|
-
out += ' else throw new ValidationError(vErrors); ';
|
|
462
|
-
} else {
|
|
463
|
-
out += ' validate.errors = vErrors; ';
|
|
464
|
-
out += ' return errors === 0; ';
|
|
465
|
-
}
|
|
466
|
-
out += ' }; return validate;';
|
|
467
|
-
} else {
|
|
468
|
-
out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
function $shouldUseGroup($rulesGroup) {
|
|
472
|
-
var rules = $rulesGroup.rules;
|
|
473
|
-
for (var i = 0; i < rules.length; i++)
|
|
474
|
-
if ($shouldUseRule(rules[i])) return true;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
function $shouldUseRule($rule) {
|
|
478
|
-
return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
function $ruleImplementsSomeKeyword($rule) {
|
|
482
|
-
var impl = $rule.implements;
|
|
483
|
-
for (var i = 0; i < impl.length; i++)
|
|
484
|
-
if (it.schema[impl[i]] !== undefined) return true;
|
|
485
|
-
}
|
|
486
|
-
return out;
|
|
487
|
-
};
|
|
488
|
-
return validate;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export { requireValidate as __require };
|
|
492
|
-
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/validate.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_validate(it, $keyword, $ruleType) {\n var out = '';\n var $async = it.schema.$async === true,\n $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),\n $id = it.self._getId(it.schema);\n if (it.opts.strictKeywords) {\n var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);\n if ($unknownKwd) {\n var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;\n if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);\n else throw new Error($keywordsMsg);\n }\n }\n if (it.isTop) {\n out += ' var validate = ';\n if ($async) {\n it.async = true;\n out += 'async ';\n }\n out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \\'use strict\\'; ';\n if ($id && (it.opts.sourceCode || it.opts.processCode)) {\n out += ' ' + ('/\\*# sourceURL=' + $id + ' */') + ' ';\n }\n }\n if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {\n var $keyword = 'false schema';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n if (it.schema === false) {\n if (it.isTop) {\n $breakOnError = true;\n } else {\n out += ' var ' + ($valid) + ' = false; ';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'false schema') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'boolean schema is false\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n } else {\n if (it.isTop) {\n if ($async) {\n out += ' return data; ';\n } else {\n out += ' validate.errors = null; return true; ';\n }\n } else {\n out += ' var ' + ($valid) + ' = true; ';\n }\n }\n if (it.isTop) {\n out += ' }; return validate; ';\n }\n return out;\n }\n if (it.isTop) {\n var $top = it.isTop,\n $lvl = it.level = 0,\n $dataLvl = it.dataLevel = 0,\n $data = 'data';\n it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));\n it.baseId = it.baseId || it.rootId;\n delete it.isTop;\n it.dataPathArr = [\"\"];\n if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored in the schema root';\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n out += ' var vErrors = null; ';\n out += ' var errors = 0; ';\n out += ' if (rootData === undefined) rootData = data; ';\n } else {\n var $lvl = it.level,\n $dataLvl = it.dataLevel,\n $data = 'data' + ($dataLvl || '');\n if ($id) it.baseId = it.resolve.url(it.baseId, $id);\n if ($async && !it.async) throw new Error('async schema in sync schema');\n out += ' var errs_' + ($lvl) + ' = errors;';\n }\n var $valid = 'valid' + $lvl,\n $breakOnError = !it.opts.allErrors,\n $closingBraces1 = '',\n $closingBraces2 = '';\n var $errorKeyword;\n var $typeSchema = it.schema.type,\n $typeIsArray = Array.isArray($typeSchema);\n if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {\n if ($typeIsArray) {\n if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');\n } else if ($typeSchema != 'null') {\n $typeSchema = [$typeSchema, 'null'];\n $typeIsArray = true;\n }\n }\n if ($typeIsArray && $typeSchema.length == 1) {\n $typeSchema = $typeSchema[0];\n $typeIsArray = false;\n }\n if (it.schema.$ref && $refKeywords) {\n if (it.opts.extendRefs == 'fail') {\n throw new Error('$ref: validation keywords used in schema at path \"' + it.errSchemaPath + '\" (see option extendRefs)');\n } else if (it.opts.extendRefs !== true) {\n $refKeywords = false;\n it.logger.warn('$ref: keywords ignored in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n if (it.schema.$comment && it.opts.$comment) {\n out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));\n }\n if ($typeSchema) {\n if (it.opts.coerceTypes) {\n var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);\n }\n var $rulesGroup = it.RULES.types[$typeSchema];\n if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type',\n $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';\n out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { ';\n if ($coerceToTypes) {\n var $dataType = 'dataType' + $lvl,\n $coerced = 'coerced' + $lvl;\n out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; ';\n if (it.opts.coerceTypes == 'array') {\n out += ' if (' + ($dataType) + ' == \\'object\\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } ';\n }\n out += ' if (' + ($coerced) + ' !== undefined) ; ';\n var arr1 = $coerceToTypes;\n if (arr1) {\n var $type, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $type = arr1[$i += 1];\n if ($type == 'string') {\n out += ' else if (' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\') ' + ($coerced) + ' = \\'\\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \\'\\'; ';\n } else if ($type == 'number' || $type == 'integer') {\n out += ' else if (' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \\'string\\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';\n if ($type == 'integer') {\n out += ' && !(' + ($data) + ' % 1)';\n }\n out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';\n } else if ($type == 'boolean') {\n out += ' else if (' + ($data) + ' === \\'false\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \\'true\\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';\n } else if ($type == 'null') {\n out += ' else if (' + ($data) + ' === \\'\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';\n } else if (it.opts.coerceTypes == 'array' && $type == 'array') {\n out += ' else if (' + ($dataType) + ' == \\'string\\' || ' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';\n }\n }\n }\n out += ' else { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } if (' + ($coerced) + ' !== undefined) { ';\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' ' + ($data) + ' = ' + ($coerced) + '; ';\n if (!$dataLvl) {\n out += 'if (' + ($parentData) + ' !== undefined)';\n }\n out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n }\n out += ' } ';\n }\n }\n if (it.schema.$ref && !$refKeywords) {\n out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';\n if ($breakOnError) {\n out += ' } if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n } else {\n var arr2 = it.RULES;\n if (arr2) {\n var $rulesGroup, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $rulesGroup = arr2[i2 += 1];\n if ($shouldUseGroup($rulesGroup)) {\n if ($rulesGroup.type) {\n out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { ';\n }\n if (it.opts.useDefaults) {\n if ($rulesGroup.type == 'object' && it.schema.properties) {\n var $schema = it.schema.properties,\n $schemaKeys = Object.keys($schema);\n var arr3 = $schemaKeys;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $sch = $schema[$propertyKey];\n if ($sch.default !== undefined) {\n var $passData = $data + it.util.getProperty($propertyKey);\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {\n var arr4 = it.schema.items;\n if (arr4) {\n var $sch, $i = -1,\n l4 = arr4.length - 1;\n while ($i < l4) {\n $sch = arr4[$i += 1];\n if ($sch.default !== undefined) {\n var $passData = $data + '[' + $i + ']';\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n }\n }\n var arr5 = $rulesGroup.rules;\n if (arr5) {\n var $rule, i5 = -1,\n l5 = arr5.length - 1;\n while (i5 < l5) {\n $rule = arr5[i5 += 1];\n if ($shouldUseRule($rule)) {\n var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);\n if ($code) {\n out += ' ' + ($code) + ' ';\n if ($breakOnError) {\n $closingBraces1 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces1) + ' ';\n $closingBraces1 = '';\n }\n if ($rulesGroup.type) {\n out += ' } ';\n if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {\n out += ' else { ';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n }\n }\n if ($breakOnError) {\n out += ' if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces2) + ' ';\n }\n if ($top) {\n if ($async) {\n out += ' if (errors === 0) return data; ';\n out += ' else throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; ';\n out += ' return errors === 0; ';\n }\n out += ' }; return validate;';\n } else {\n out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';\n }\n\n function $shouldUseGroup($rulesGroup) {\n var rules = $rulesGroup.rules;\n for (var i = 0; i < rules.length; i++)\n if ($shouldUseRule(rules[i])) return true;\n }\n\n function $shouldUseRule($rule) {\n return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));\n }\n\n function $ruleImplementsSomeKeyword($rule) {\n var impl = $rule.implements;\n for (var i = 0; i < impl.length; i++)\n if (it.schema[impl[i]] !== undefined) return true;\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,QAAc,GAAG,SAAS,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GACnE,IAAI,GAAG,GAAG,EAAE;GACZ,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI;AACxC,KAAI,YAAY,GAAG,EAAE,CAAC,IAA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