@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,159 +0,0 @@
|
|
|
1
|
-
import { __require as requireCustom } from './dotjs/custom.js';
|
|
2
|
-
import { __require as requireDefinition_schema } from './definition_schema.js';
|
|
3
|
-
|
|
4
|
-
var keyword;
|
|
5
|
-
var hasRequiredKeyword;
|
|
6
|
-
|
|
7
|
-
function requireKeyword () {
|
|
8
|
-
if (hasRequiredKeyword) return keyword;
|
|
9
|
-
hasRequiredKeyword = 1;
|
|
10
|
-
|
|
11
|
-
var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
|
|
12
|
-
var customRuleCode = requireCustom();
|
|
13
|
-
var definitionSchema = requireDefinition_schema();
|
|
14
|
-
|
|
15
|
-
keyword = {
|
|
16
|
-
add: addKeyword,
|
|
17
|
-
get: getKeyword,
|
|
18
|
-
remove: removeKeyword,
|
|
19
|
-
validate: validateKeyword
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Define custom keyword
|
|
25
|
-
* @this Ajv
|
|
26
|
-
* @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).
|
|
27
|
-
* @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
|
|
28
|
-
* @return {Ajv} this for method chaining
|
|
29
|
-
*/
|
|
30
|
-
function addKeyword(keyword, definition) {
|
|
31
|
-
/* jshint validthis: true */
|
|
32
|
-
/* eslint no-shadow: 0 */
|
|
33
|
-
var RULES = this.RULES;
|
|
34
|
-
if (RULES.keywords[keyword])
|
|
35
|
-
throw new Error('Keyword ' + keyword + ' is already defined');
|
|
36
|
-
|
|
37
|
-
if (!IDENTIFIER.test(keyword))
|
|
38
|
-
throw new Error('Keyword ' + keyword + ' is not a valid identifier');
|
|
39
|
-
|
|
40
|
-
if (definition) {
|
|
41
|
-
this.validateKeyword(definition, true);
|
|
42
|
-
|
|
43
|
-
var dataType = definition.type;
|
|
44
|
-
if (Array.isArray(dataType)) {
|
|
45
|
-
for (var i=0; i<dataType.length; i++)
|
|
46
|
-
_addRule(keyword, dataType[i], definition);
|
|
47
|
-
} else {
|
|
48
|
-
_addRule(keyword, dataType, definition);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var metaSchema = definition.metaSchema;
|
|
52
|
-
if (metaSchema) {
|
|
53
|
-
if (definition.$data && this._opts.$data) {
|
|
54
|
-
metaSchema = {
|
|
55
|
-
anyOf: [
|
|
56
|
-
metaSchema,
|
|
57
|
-
{ '$ref': 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#' }
|
|
58
|
-
]
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
definition.validateSchema = this.compile(metaSchema, true);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
RULES.keywords[keyword] = RULES.all[keyword] = true;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
function _addRule(keyword, dataType, definition) {
|
|
69
|
-
var ruleGroup;
|
|
70
|
-
for (var i=0; i<RULES.length; i++) {
|
|
71
|
-
var rg = RULES[i];
|
|
72
|
-
if (rg.type == dataType) {
|
|
73
|
-
ruleGroup = rg;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (!ruleGroup) {
|
|
79
|
-
ruleGroup = { type: dataType, rules: [] };
|
|
80
|
-
RULES.push(ruleGroup);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
var rule = {
|
|
84
|
-
keyword: keyword,
|
|
85
|
-
definition: definition,
|
|
86
|
-
custom: true,
|
|
87
|
-
code: customRuleCode,
|
|
88
|
-
implements: definition.implements
|
|
89
|
-
};
|
|
90
|
-
ruleGroup.rules.push(rule);
|
|
91
|
-
RULES.custom[keyword] = rule;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return this;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Get keyword
|
|
100
|
-
* @this Ajv
|
|
101
|
-
* @param {String} keyword pre-defined or custom keyword.
|
|
102
|
-
* @return {Object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
|
|
103
|
-
*/
|
|
104
|
-
function getKeyword(keyword) {
|
|
105
|
-
/* jshint validthis: true */
|
|
106
|
-
var rule = this.RULES.custom[keyword];
|
|
107
|
-
return rule ? rule.definition : this.RULES.keywords[keyword] || false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Remove keyword
|
|
113
|
-
* @this Ajv
|
|
114
|
-
* @param {String} keyword pre-defined or custom keyword.
|
|
115
|
-
* @return {Ajv} this for method chaining
|
|
116
|
-
*/
|
|
117
|
-
function removeKeyword(keyword) {
|
|
118
|
-
/* jshint validthis: true */
|
|
119
|
-
var RULES = this.RULES;
|
|
120
|
-
delete RULES.keywords[keyword];
|
|
121
|
-
delete RULES.all[keyword];
|
|
122
|
-
delete RULES.custom[keyword];
|
|
123
|
-
for (var i=0; i<RULES.length; i++) {
|
|
124
|
-
var rules = RULES[i].rules;
|
|
125
|
-
for (var j=0; j<rules.length; j++) {
|
|
126
|
-
if (rules[j].keyword == keyword) {
|
|
127
|
-
rules.splice(j, 1);
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return this;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Validate keyword definition
|
|
138
|
-
* @this Ajv
|
|
139
|
-
* @param {Object} definition keyword definition object.
|
|
140
|
-
* @param {Boolean} throwError true to throw exception if definition is invalid
|
|
141
|
-
* @return {boolean} validation result
|
|
142
|
-
*/
|
|
143
|
-
function validateKeyword(definition, throwError) {
|
|
144
|
-
validateKeyword.errors = null;
|
|
145
|
-
var v = this._validateKeyword = this._validateKeyword
|
|
146
|
-
|| this.compile(definitionSchema, true);
|
|
147
|
-
|
|
148
|
-
if (v(definition)) return true;
|
|
149
|
-
validateKeyword.errors = v.errors;
|
|
150
|
-
if (throwError)
|
|
151
|
-
throw new Error('custom keyword definition is invalid: ' + this.errorsText(v.errors));
|
|
152
|
-
else
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
return keyword;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export { requireKeyword as __require };
|
|
159
|
-
//# sourceMappingURL=keyword.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyword.js","sources":["../../../../../../node_modules/ajv/lib/keyword.js"],"sourcesContent":["'use strict';\n\nvar IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;\nvar customRuleCode = require('./dotjs/custom');\nvar definitionSchema = require('./definition_schema');\n\nmodule.exports = {\n add: addKeyword,\n get: getKeyword,\n remove: removeKeyword,\n validate: validateKeyword\n};\n\n\n/**\n * Define custom keyword\n * @this Ajv\n * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).\n * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.\n * @return {Ajv} this for method chaining\n */\nfunction addKeyword(keyword, definition) {\n /* jshint validthis: true */\n /* eslint no-shadow: 0 */\n var RULES = this.RULES;\n if (RULES.keywords[keyword])\n throw new Error('Keyword ' + keyword + ' is already defined');\n\n if (!IDENTIFIER.test(keyword))\n throw new Error('Keyword ' + keyword + ' is not a valid identifier');\n\n if (definition) {\n this.validateKeyword(definition, true);\n\n var dataType = definition.type;\n if (Array.isArray(dataType)) {\n for (var i=0; i<dataType.length; i++)\n _addRule(keyword, dataType[i], definition);\n } else {\n _addRule(keyword, dataType, definition);\n }\n\n var metaSchema = definition.metaSchema;\n if (metaSchema) {\n if (definition.$data && this._opts.$data) {\n metaSchema = {\n anyOf: [\n metaSchema,\n { '$ref': 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#' }\n ]\n };\n }\n definition.validateSchema = this.compile(metaSchema, true);\n }\n }\n\n RULES.keywords[keyword] = RULES.all[keyword] = true;\n\n\n function _addRule(keyword, dataType, definition) {\n var ruleGroup;\n for (var i=0; i<RULES.length; i++) {\n var rg = RULES[i];\n if (rg.type == dataType) {\n ruleGroup = rg;\n break;\n }\n }\n\n if (!ruleGroup) {\n ruleGroup = { type: dataType, rules: [] };\n RULES.push(ruleGroup);\n }\n\n var rule = {\n keyword: keyword,\n definition: definition,\n custom: true,\n code: customRuleCode,\n implements: definition.implements\n };\n ruleGroup.rules.push(rule);\n RULES.custom[keyword] = rule;\n }\n\n return this;\n}\n\n\n/**\n * Get keyword\n * @this Ajv\n * @param {String} keyword pre-defined or custom keyword.\n * @return {Object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.\n */\nfunction getKeyword(keyword) {\n /* jshint validthis: true */\n var rule = this.RULES.custom[keyword];\n return rule ? rule.definition : this.RULES.keywords[keyword] || false;\n}\n\n\n/**\n * Remove keyword\n * @this Ajv\n * @param {String} keyword pre-defined or custom keyword.\n * @return {Ajv} this for method chaining\n */\nfunction removeKeyword(keyword) {\n /* jshint validthis: true */\n var RULES = this.RULES;\n delete RULES.keywords[keyword];\n delete RULES.all[keyword];\n delete RULES.custom[keyword];\n for (var i=0; i<RULES.length; i++) {\n var rules = RULES[i].rules;\n for (var j=0; j<rules.length; j++) {\n if (rules[j].keyword == keyword) {\n rules.splice(j, 1);\n break;\n }\n }\n }\n return this;\n}\n\n\n/**\n * Validate keyword definition\n * @this Ajv\n * @param {Object} definition keyword definition object.\n * @param {Boolean} throwError true to throw exception if definition is invalid\n * @return {boolean} validation result\n */\nfunction validateKeyword(definition, throwError) {\n validateKeyword.errors = null;\n var v = this._validateKeyword = this._validateKeyword\n || this.compile(definitionSchema, true);\n\n if (v(definition)) return true;\n validateKeyword.errors = v.errors;\n if (throwError)\n throw new Error('custom keyword definition is invalid: ' + this.errorsText(v.errors));\n else\n return false;\n}\n"],"names":["require$$0","require$$1"],"mappings":";;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BAAgB,EAAE,IAAI,CAAC;;AAEzE,GAAE,IAAI,CAAC,CAAC,UAAU,CAAC,EAAE,OAAO,IAAI;AAChC,GAAE,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM;AACnC,GAAE,IAAI,UAAU;AAChB,KAAI,MAAM,IAAI,KAAK,CAAC,wCAAwC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1F;AACA,KAAI,OAAO,KAAK;AAChB,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var $schema = "http://json-schema.org/draft-07/schema#";
|
|
2
|
-
var $id = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
|
|
3
|
-
var description = "Meta-schema for $data reference (JSON Schema extension proposal)";
|
|
4
|
-
var type = "object";
|
|
5
|
-
var required = [
|
|
6
|
-
"$data"
|
|
7
|
-
];
|
|
8
|
-
var properties = {
|
|
9
|
-
$data: {
|
|
10
|
-
type: "string",
|
|
11
|
-
anyOf: [
|
|
12
|
-
{
|
|
13
|
-
format: "relative-json-pointer"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
format: "json-pointer"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var additionalProperties = false;
|
|
22
|
-
var require$$12 = {
|
|
23
|
-
$schema: $schema,
|
|
24
|
-
$id: $id,
|
|
25
|
-
description: description,
|
|
26
|
-
type: type,
|
|
27
|
-
required: required,
|
|
28
|
-
properties: properties,
|
|
29
|
-
additionalProperties: additionalProperties
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { $id, $schema, additionalProperties, require$$12 as default, description, properties, required, type };
|
|
33
|
-
//# sourceMappingURL=data.json.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
var $schema = "http://json-schema.org/draft-07/schema#";
|
|
2
|
-
var $id = "http://json-schema.org/draft-07/schema#";
|
|
3
|
-
var title = "Core schema meta-schema";
|
|
4
|
-
var definitions = {
|
|
5
|
-
schemaArray: {
|
|
6
|
-
type: "array",
|
|
7
|
-
minItems: 1,
|
|
8
|
-
items: {
|
|
9
|
-
$ref: "#"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
nonNegativeInteger: {
|
|
13
|
-
type: "integer",
|
|
14
|
-
minimum: 0
|
|
15
|
-
},
|
|
16
|
-
nonNegativeIntegerDefault0: {
|
|
17
|
-
allOf: [
|
|
18
|
-
{
|
|
19
|
-
$ref: "#/definitions/nonNegativeInteger"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"default": 0
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
simpleTypes: {
|
|
27
|
-
"enum": [
|
|
28
|
-
"array",
|
|
29
|
-
"boolean",
|
|
30
|
-
"integer",
|
|
31
|
-
"null",
|
|
32
|
-
"number",
|
|
33
|
-
"object",
|
|
34
|
-
"string"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
stringArray: {
|
|
38
|
-
type: "array",
|
|
39
|
-
items: {
|
|
40
|
-
type: "string"
|
|
41
|
-
},
|
|
42
|
-
uniqueItems: true,
|
|
43
|
-
"default": [
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var type = [
|
|
48
|
-
"object",
|
|
49
|
-
"boolean"
|
|
50
|
-
];
|
|
51
|
-
var properties = {
|
|
52
|
-
$id: {
|
|
53
|
-
type: "string",
|
|
54
|
-
format: "uri-reference"
|
|
55
|
-
},
|
|
56
|
-
$schema: {
|
|
57
|
-
type: "string",
|
|
58
|
-
format: "uri"
|
|
59
|
-
},
|
|
60
|
-
$ref: {
|
|
61
|
-
type: "string",
|
|
62
|
-
format: "uri-reference"
|
|
63
|
-
},
|
|
64
|
-
$comment: {
|
|
65
|
-
type: "string"
|
|
66
|
-
},
|
|
67
|
-
title: {
|
|
68
|
-
type: "string"
|
|
69
|
-
},
|
|
70
|
-
description: {
|
|
71
|
-
type: "string"
|
|
72
|
-
},
|
|
73
|
-
"default": true,
|
|
74
|
-
readOnly: {
|
|
75
|
-
type: "boolean",
|
|
76
|
-
"default": false
|
|
77
|
-
},
|
|
78
|
-
examples: {
|
|
79
|
-
type: "array",
|
|
80
|
-
items: true
|
|
81
|
-
},
|
|
82
|
-
multipleOf: {
|
|
83
|
-
type: "number",
|
|
84
|
-
exclusiveMinimum: 0
|
|
85
|
-
},
|
|
86
|
-
maximum: {
|
|
87
|
-
type: "number"
|
|
88
|
-
},
|
|
89
|
-
exclusiveMaximum: {
|
|
90
|
-
type: "number"
|
|
91
|
-
},
|
|
92
|
-
minimum: {
|
|
93
|
-
type: "number"
|
|
94
|
-
},
|
|
95
|
-
exclusiveMinimum: {
|
|
96
|
-
type: "number"
|
|
97
|
-
},
|
|
98
|
-
maxLength: {
|
|
99
|
-
$ref: "#/definitions/nonNegativeInteger"
|
|
100
|
-
},
|
|
101
|
-
minLength: {
|
|
102
|
-
$ref: "#/definitions/nonNegativeIntegerDefault0"
|
|
103
|
-
},
|
|
104
|
-
pattern: {
|
|
105
|
-
type: "string",
|
|
106
|
-
format: "regex"
|
|
107
|
-
},
|
|
108
|
-
additionalItems: {
|
|
109
|
-
$ref: "#"
|
|
110
|
-
},
|
|
111
|
-
items: {
|
|
112
|
-
anyOf: [
|
|
113
|
-
{
|
|
114
|
-
$ref: "#"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
$ref: "#/definitions/schemaArray"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"default": true
|
|
121
|
-
},
|
|
122
|
-
maxItems: {
|
|
123
|
-
$ref: "#/definitions/nonNegativeInteger"
|
|
124
|
-
},
|
|
125
|
-
minItems: {
|
|
126
|
-
$ref: "#/definitions/nonNegativeIntegerDefault0"
|
|
127
|
-
},
|
|
128
|
-
uniqueItems: {
|
|
129
|
-
type: "boolean",
|
|
130
|
-
"default": false
|
|
131
|
-
},
|
|
132
|
-
contains: {
|
|
133
|
-
$ref: "#"
|
|
134
|
-
},
|
|
135
|
-
maxProperties: {
|
|
136
|
-
$ref: "#/definitions/nonNegativeInteger"
|
|
137
|
-
},
|
|
138
|
-
minProperties: {
|
|
139
|
-
$ref: "#/definitions/nonNegativeIntegerDefault0"
|
|
140
|
-
},
|
|
141
|
-
required: {
|
|
142
|
-
$ref: "#/definitions/stringArray"
|
|
143
|
-
},
|
|
144
|
-
additionalProperties: {
|
|
145
|
-
$ref: "#"
|
|
146
|
-
},
|
|
147
|
-
definitions: {
|
|
148
|
-
type: "object",
|
|
149
|
-
additionalProperties: {
|
|
150
|
-
$ref: "#"
|
|
151
|
-
},
|
|
152
|
-
"default": {
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
properties: {
|
|
156
|
-
type: "object",
|
|
157
|
-
additionalProperties: {
|
|
158
|
-
$ref: "#"
|
|
159
|
-
},
|
|
160
|
-
"default": {
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
patternProperties: {
|
|
164
|
-
type: "object",
|
|
165
|
-
additionalProperties: {
|
|
166
|
-
$ref: "#"
|
|
167
|
-
},
|
|
168
|
-
propertyNames: {
|
|
169
|
-
format: "regex"
|
|
170
|
-
},
|
|
171
|
-
"default": {
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
dependencies: {
|
|
175
|
-
type: "object",
|
|
176
|
-
additionalProperties: {
|
|
177
|
-
anyOf: [
|
|
178
|
-
{
|
|
179
|
-
$ref: "#"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
$ref: "#/definitions/stringArray"
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
propertyNames: {
|
|
188
|
-
$ref: "#"
|
|
189
|
-
},
|
|
190
|
-
"const": true,
|
|
191
|
-
"enum": {
|
|
192
|
-
type: "array",
|
|
193
|
-
items: true,
|
|
194
|
-
minItems: 1,
|
|
195
|
-
uniqueItems: true
|
|
196
|
-
},
|
|
197
|
-
type: {
|
|
198
|
-
anyOf: [
|
|
199
|
-
{
|
|
200
|
-
$ref: "#/definitions/simpleTypes"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
type: "array",
|
|
204
|
-
items: {
|
|
205
|
-
$ref: "#/definitions/simpleTypes"
|
|
206
|
-
},
|
|
207
|
-
minItems: 1,
|
|
208
|
-
uniqueItems: true
|
|
209
|
-
}
|
|
210
|
-
]
|
|
211
|
-
},
|
|
212
|
-
format: {
|
|
213
|
-
type: "string"
|
|
214
|
-
},
|
|
215
|
-
contentMediaType: {
|
|
216
|
-
type: "string"
|
|
217
|
-
},
|
|
218
|
-
contentEncoding: {
|
|
219
|
-
type: "string"
|
|
220
|
-
},
|
|
221
|
-
"if": {
|
|
222
|
-
$ref: "#"
|
|
223
|
-
},
|
|
224
|
-
then: {
|
|
225
|
-
$ref: "#"
|
|
226
|
-
},
|
|
227
|
-
"else": {
|
|
228
|
-
$ref: "#"
|
|
229
|
-
},
|
|
230
|
-
allOf: {
|
|
231
|
-
$ref: "#/definitions/schemaArray"
|
|
232
|
-
},
|
|
233
|
-
anyOf: {
|
|
234
|
-
$ref: "#/definitions/schemaArray"
|
|
235
|
-
},
|
|
236
|
-
oneOf: {
|
|
237
|
-
$ref: "#/definitions/schemaArray"
|
|
238
|
-
},
|
|
239
|
-
not: {
|
|
240
|
-
$ref: "#"
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
var require$$13 = {
|
|
244
|
-
$schema: $schema,
|
|
245
|
-
$id: $id,
|
|
246
|
-
title: title,
|
|
247
|
-
definitions: definitions,
|
|
248
|
-
type: type,
|
|
249
|
-
properties: properties,
|
|
250
|
-
"default": true
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
export { $id, $schema, require$$13 as default, definitions, properties, title, type };
|
|
254
|
-
//# sourceMappingURL=json-schema-draft-07.json.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-draft-07.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var fastJsonStableStringify;
|
|
2
|
-
var hasRequiredFastJsonStableStringify;
|
|
3
|
-
|
|
4
|
-
function requireFastJsonStableStringify () {
|
|
5
|
-
if (hasRequiredFastJsonStableStringify) return fastJsonStableStringify;
|
|
6
|
-
hasRequiredFastJsonStableStringify = 1;
|
|
7
|
-
|
|
8
|
-
fastJsonStableStringify = function (data, opts) {
|
|
9
|
-
if (!opts) opts = {};
|
|
10
|
-
if (typeof opts === 'function') opts = { cmp: opts };
|
|
11
|
-
var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;
|
|
12
|
-
|
|
13
|
-
var cmp = opts.cmp && (function (f) {
|
|
14
|
-
return function (node) {
|
|
15
|
-
return function (a, b) {
|
|
16
|
-
var aobj = { key: a, value: node[a] };
|
|
17
|
-
var bobj = { key: b, value: node[b] };
|
|
18
|
-
return f(aobj, bobj);
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
})(opts.cmp);
|
|
22
|
-
|
|
23
|
-
var seen = [];
|
|
24
|
-
return (function stringify (node) {
|
|
25
|
-
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
26
|
-
node = node.toJSON();
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (node === undefined) return;
|
|
30
|
-
if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';
|
|
31
|
-
if (typeof node !== 'object') return JSON.stringify(node);
|
|
32
|
-
|
|
33
|
-
var i, out;
|
|
34
|
-
if (Array.isArray(node)) {
|
|
35
|
-
out = '[';
|
|
36
|
-
for (i = 0; i < node.length; i++) {
|
|
37
|
-
if (i) out += ',';
|
|
38
|
-
out += stringify(node[i]) || 'null';
|
|
39
|
-
}
|
|
40
|
-
return out + ']';
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (node === null) return 'null';
|
|
44
|
-
|
|
45
|
-
if (seen.indexOf(node) !== -1) {
|
|
46
|
-
if (cycles) return JSON.stringify('__cycle__');
|
|
47
|
-
throw new TypeError('Converting circular structure to JSON');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var seenIndex = seen.push(node) - 1;
|
|
51
|
-
var keys = Object.keys(node).sort(cmp && cmp(node));
|
|
52
|
-
out = '';
|
|
53
|
-
for (i = 0; i < keys.length; i++) {
|
|
54
|
-
var key = keys[i];
|
|
55
|
-
var value = stringify(node[key]);
|
|
56
|
-
|
|
57
|
-
if (!value) continue;
|
|
58
|
-
if (out) out += ',';
|
|
59
|
-
out += JSON.stringify(key) + ':' + value;
|
|
60
|
-
}
|
|
61
|
-
seen.splice(seenIndex, 1);
|
|
62
|
-
return '{' + out + '}';
|
|
63
|
-
})(data);
|
|
64
|
-
};
|
|
65
|
-
return fastJsonStableStringify;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { requireFastJsonStableStringify as __require };
|
|
69
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/fast-json-stable-stringify/index.js"],"sourcesContent":["'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n"],"names":[],"mappings":";;;;;;;AAEA,CAAA,uBAAc,GAAG,UAAU,IAAI,EAAE,IAAI,EAAE;AACvC,KAAI,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,EAAE;AACxB,KAAI,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE;AACxD,KAAI,IAAI,MAAM,GAAG,CAAC,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,GAAG,KAAK;;KAErE,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,EAAE;SAChC,OAAO,UAAU,IAAI,EAAE;AAC/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
|
5
|
-
function requireJsonSchemaTraverse () {
|
|
6
|
-
if (hasRequiredJsonSchemaTraverse) return jsonSchemaTraverse.exports;
|
|
7
|
-
hasRequiredJsonSchemaTraverse = 1;
|
|
8
|
-
|
|
9
|
-
var traverse = jsonSchemaTraverse.exports = function (schema, opts, cb) {
|
|
10
|
-
// Legacy support for v0.3.1 and earlier.
|
|
11
|
-
if (typeof opts == 'function') {
|
|
12
|
-
cb = opts;
|
|
13
|
-
opts = {};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
cb = opts.cb || cb;
|
|
17
|
-
var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};
|
|
18
|
-
var post = cb.post || function() {};
|
|
19
|
-
|
|
20
|
-
_traverse(opts, pre, post, schema, '', schema);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
traverse.keywords = {
|
|
25
|
-
additionalItems: true,
|
|
26
|
-
items: true,
|
|
27
|
-
contains: true,
|
|
28
|
-
additionalProperties: true,
|
|
29
|
-
propertyNames: true,
|
|
30
|
-
not: true,
|
|
31
|
-
if: true,
|
|
32
|
-
then: true,
|
|
33
|
-
else: true
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
traverse.arrayKeywords = {
|
|
37
|
-
items: true,
|
|
38
|
-
allOf: true,
|
|
39
|
-
anyOf: true,
|
|
40
|
-
oneOf: true
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
traverse.propsKeywords = {
|
|
44
|
-
$defs: true,
|
|
45
|
-
definitions: true,
|
|
46
|
-
properties: true,
|
|
47
|
-
patternProperties: true,
|
|
48
|
-
dependencies: true
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
traverse.skipKeywords = {
|
|
52
|
-
default: true,
|
|
53
|
-
enum: true,
|
|
54
|
-
const: true,
|
|
55
|
-
required: true,
|
|
56
|
-
maximum: true,
|
|
57
|
-
minimum: true,
|
|
58
|
-
exclusiveMaximum: true,
|
|
59
|
-
exclusiveMinimum: true,
|
|
60
|
-
multipleOf: true,
|
|
61
|
-
maxLength: true,
|
|
62
|
-
minLength: true,
|
|
63
|
-
pattern: true,
|
|
64
|
-
format: true,
|
|
65
|
-
maxItems: true,
|
|
66
|
-
minItems: true,
|
|
67
|
-
uniqueItems: true,
|
|
68
|
-
maxProperties: true,
|
|
69
|
-
minProperties: true
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
|
|
74
|
-
if (schema && typeof schema == 'object' && !Array.isArray(schema)) {
|
|
75
|
-
pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
76
|
-
for (var key in schema) {
|
|
77
|
-
var sch = schema[key];
|
|
78
|
-
if (Array.isArray(sch)) {
|
|
79
|
-
if (key in traverse.arrayKeywords) {
|
|
80
|
-
for (var i=0; i<sch.length; i++)
|
|
81
|
-
_traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
|
|
82
|
-
}
|
|
83
|
-
} else if (key in traverse.propsKeywords) {
|
|
84
|
-
if (sch && typeof sch == 'object') {
|
|
85
|
-
for (var prop in sch)
|
|
86
|
-
_traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
|
|
87
|
-
}
|
|
88
|
-
} else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
|
|
89
|
-
_traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
function escapeJsonPtr(str) {
|
|
98
|
-
return str.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
99
|
-
}
|
|
100
|
-
return jsonSchemaTraverse.exports;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export { requireJsonSchemaTraverse as __require };
|
|
104
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/json-schema-traverse/index.js"],"sourcesContent":["'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n // Legacy support for v0.3.1 and earlier.\n if (typeof opts == 'function') {\n cb = opts;\n opts = {};\n }\n\n cb = opts.cb || cb;\n var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n var post = cb.post || function() {};\n\n _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n additionalItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n propertyNames: true,\n not: true,\n if: true,\n then: true,\n else: true\n};\n\ntraverse.arrayKeywords = {\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\n\ntraverse.propsKeywords = {\n $defs: true,\n definitions: true,\n properties: true,\n patternProperties: true,\n dependencies: true\n};\n\ntraverse.skipKeywords = {\n default: true,\n enum: true,\n const: true,\n required: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n for (var key in schema) {\n var sch = schema[key];\n if (Array.isArray(sch)) {\n if (key in traverse.arrayKeywords) {\n for (var i=0; i<sch.length; i++)\n _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);\n }\n } else if (key in traverse.propsKeywords) {\n if (sch && typeof sch == 'object') {\n for (var prop in sch)\n _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);\n }\n } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {\n _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);\n }\n }\n post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n }\n}\n\n\nfunction escapeJsonPtr(str) {\n return str.replace(/~/g, '~0').replace(/\\//g, '~1');\n}\n"],"names":["jsonSchemaTraverseModule"],"mappings":";;;;;;;;CAEA,IAAI,QAAQ,GAAGA,kBAAA,CAAA,OAAc,GAAG,UAAU,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;AAC5D;AACA,GAAE,IAAI,OAAO,IAAI,IAAI,UAAU,EAAE;KAC7B,EAAE,GAAG,IAAI;KACT,IAAI,GAAG,EAAE;AACb,GAAA;;AAEA,GAAE,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE;AACpB,GAAE,IAAI,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,UAAU,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,WAAW,CAAA,CAAE;GAClE,IAAI,IAAI,GAAG,EAAE,CAAC,IAAI,IAAI,WAAW,CAAA,CAAE;;AAErC,GAAE,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC;CAChD,CAAC;;;CAGD,QAAQ,CAAC,QAAQ,GAAG;GAClB,eAAe,EAAE,IAAI;GACrB,KAAK,EAAE,IAAI;GACX,QAAQ,EAAE,IAAI;GACd,oBAAoB,EAAE,IAAI;GAC1B,aAAa,EAAE,IAAI;GACnB,GAAG,EAAE,IAAI;GACT,EAAE,E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