@atxp/client 0.2.22 → 0.4.0
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/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/ajv.js +8 -0
- package/dist/_virtual/ajv.js.map +1 -0
- package/dist/_virtual/cache.js +4 -0
- package/dist/_virtual/cache.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/uri.all.js +4 -0
- package/dist/_virtual/uri.all.js.map +1 -0
- package/dist/atxpAccount.js +4 -2
- package/dist/atxpAccount.js.map +1 -1
- package/dist/atxpClient.js +12 -10
- package/dist/atxpClient.js.map +1 -1
- package/dist/atxpFetcher.js +10 -8
- package/dist/atxpFetcher.js.map +1 -1
- package/dist/baseAccount.js +5 -3
- package/dist/baseAccount.js.map +1 -1
- package/dist/baseConstants.js +4 -0
- package/dist/baseConstants.js.map +1 -0
- package/dist/basePaymentMaker.js +15 -12
- package/dist/basePaymentMaker.js.map +1 -1
- package/dist/index.cjs +16198 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +250 -10
- package/dist/index.js +16161 -10
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +668 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +273 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +378 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +162 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +46 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +192 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +418 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +1313 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -0
- package/dist/node_modules/ajv/lib/ajv.js +531 -0
- package/dist/node_modules/ajv/lib/ajv.js.map +1 -0
- package/dist/node_modules/ajv/lib/cache.js +37 -0
- package/dist/node_modules/ajv/lib/cache.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/async.js +102 -0
- package/dist/node_modules/ajv/lib/compile/async.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/error_classes.js +46 -0
- package/dist/node_modules/ajv/lib/compile/error_classes.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/formats.js +154 -0
- package/dist/node_modules/ajv/lib/compile/formats.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/index.js +404 -0
- package/dist/node_modules/ajv/lib/compile/index.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/resolve.js +286 -0
- package/dist/node_modules/ajv/lib/compile/resolve.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/rules.js +79 -0
- package/dist/node_modules/ajv/lib/compile/rules.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/schema_obj.js +21 -0
- package/dist/node_modules/ajv/lib/compile/schema_obj.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/ucs2length.js +30 -0
- package/dist/node_modules/ajv/lib/compile/ucs2length.js.map +1 -0
- package/dist/node_modules/ajv/lib/compile/util.js +252 -0
- package/dist/node_modules/ajv/lib/compile/util.js.map +1 -0
- package/dist/node_modules/ajv/lib/data.js +59 -0
- package/dist/node_modules/ajv/lib/data.js.map +1 -0
- package/dist/node_modules/ajv/lib/definition_schema.js +49 -0
- package/dist/node_modules/ajv/lib/definition_schema.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/_limit.js +173 -0
- package/dist/node_modules/ajv/lib/dotjs/_limit.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitItems.js +90 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitItems.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitLength.js +95 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitLength.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js +90 -0
- package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/allOf.js +52 -0
- package/dist/node_modules/ajv/lib/dotjs/allOf.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/anyOf.js +83 -0
- package/dist/node_modules/ajv/lib/dotjs/anyOf.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/comment.js +24 -0
- package/dist/node_modules/ajv/lib/dotjs/comment.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/const.js +62 -0
- package/dist/node_modules/ajv/lib/dotjs/const.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/contains.js +91 -0
- package/dist/node_modules/ajv/lib/dotjs/contains.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/custom.js +238 -0
- package/dist/node_modules/ajv/lib/dotjs/custom.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/dependencies.js +178 -0
- package/dist/node_modules/ajv/lib/dotjs/dependencies.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/enum.js +72 -0
- package/dist/node_modules/ajv/lib/dotjs/enum.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/format.js +160 -0
- package/dist/node_modules/ajv/lib/dotjs/format.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/if.js +113 -0
- package/dist/node_modules/ajv/lib/dotjs/if.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/index.js +68 -0
- package/dist/node_modules/ajv/lib/dotjs/index.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/items.js +150 -0
- package/dist/node_modules/ajv/lib/dotjs/items.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/multipleOf.js +90 -0
- package/dist/node_modules/ajv/lib/dotjs/multipleOf.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/not.js +94 -0
- package/dist/node_modules/ajv/lib/dotjs/not.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/oneOf.js +83 -0
- package/dist/node_modules/ajv/lib/dotjs/oneOf.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/pattern.js +85 -0
- package/dist/node_modules/ajv/lib/dotjs/pattern.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/properties.js +345 -0
- package/dist/node_modules/ajv/lib/dotjs/properties.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/propertyNames.js +91 -0
- package/dist/node_modules/ajv/lib/dotjs/propertyNames.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/ref.js +134 -0
- package/dist/node_modules/ajv/lib/dotjs/ref.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/required.js +276 -0
- package/dist/node_modules/ajv/lib/dotjs/required.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js +96 -0
- package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js.map +1 -0
- package/dist/node_modules/ajv/lib/dotjs/validate.js +492 -0
- package/dist/node_modules/ajv/lib/dotjs/validate.js.map +1 -0
- package/dist/node_modules/ajv/lib/keyword.js +159 -0
- package/dist/node_modules/ajv/lib/keyword.js.map +1 -0
- package/dist/node_modules/ajv/lib/refs/data.json.js +33 -0
- package/dist/node_modules/ajv/lib/refs/data.json.js.map +1 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js +254 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js.map +1 -0
- package/dist/node_modules/eventsource-parser/dist/index.js +104 -0
- package/dist/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/dist/node_modules/eventsource-parser/dist/stream.js +28 -0
- package/dist/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/dist/node_modules/fast-deep-equal/index.js +56 -0
- package/dist/node_modules/fast-deep-equal/index.js.map +1 -0
- package/dist/node_modules/fast-json-stable-stringify/index.js +69 -0
- package/dist/node_modules/fast-json-stable-stringify/index.js.map +1 -0
- package/dist/node_modules/json-schema-traverse/index.js +100 -0
- package/dist/node_modules/json-schema-traverse/index.js.map +1 -0
- package/dist/node_modules/pkce-challenge/dist/index.browser.js +66 -0
- package/dist/node_modules/pkce-challenge/dist/index.browser.js.map +1 -0
- package/dist/node_modules/uri-js/dist/es5/uri.all.js +1418 -0
- package/dist/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
- package/dist/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/zod/v3/ZodError.js.map +1 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/errors.js.map +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +1 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +112 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +1 -0
- package/dist/node_modules/zod/v3/helpers/util.js +136 -0
- package/dist/node_modules/zod/v3/helpers/util.js.map +1 -0
- package/dist/node_modules/zod/v3/locales/en.js +112 -0
- package/dist/node_modules/zod/v3/locales/en.js.map +1 -0
- package/dist/node_modules/zod/v3/types.js +3491 -0
- package/dist/node_modules/zod/v3/types.js.map +1 -0
- package/dist/oAuth.js +7 -6
- package/dist/oAuth.js.map +1 -1
- package/dist/solanaAccount.js +7 -4
- package/dist/solanaAccount.js.map +1 -1
- package/dist/solanaPaymentMaker.js +13 -11
- package/dist/solanaPaymentMaker.js.map +1 -1
- package/dist/types.js +5 -3
- package/dist/types.js.map +1 -1
- package/package.json +26 -10
- package/dist/atxpAccount.d.ts +0 -13
- package/dist/atxpAccount.d.ts.map +0 -1
- package/dist/atxpClient.d.ts +0 -14
- package/dist/atxpClient.d.ts.map +0 -1
- package/dist/atxpFetcher.d.ts +0 -72
- package/dist/atxpFetcher.d.ts.map +0 -1
- package/dist/baseAccount.d.ts +0 -10
- package/dist/baseAccount.d.ts.map +0 -1
- package/dist/basePaymentMaker.d.ts +0 -16
- package/dist/basePaymentMaker.d.ts.map +0 -1
- package/dist/clientTestHelpers.d.ts +0 -6
- package/dist/clientTestHelpers.d.ts.map +0 -1
- package/dist/clientTestHelpers.js +0 -94
- package/dist/clientTestHelpers.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/oAuth.d.ts +0 -44
- package/dist/oAuth.d.ts.map +0 -1
- package/dist/setup.expo.d.ts +0 -2
- package/dist/setup.expo.d.ts.map +0 -1
- package/dist/setup.expo.js +0 -30
- package/dist/setup.expo.js.map +0 -1
- package/dist/solanaAccount.d.ts +0 -9
- package/dist/solanaAccount.d.ts.map +0 -1
- package/dist/solanaPaymentMaker.d.ts +0 -18
- package/dist/solanaPaymentMaker.d.ts.map +0 -1
- package/dist/types.d.ts +0 -70
- package/dist/types.d.ts.map +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var contains;
|
|
2
|
+
var hasRequiredContains;
|
|
3
|
+
|
|
4
|
+
function requireContains () {
|
|
5
|
+
if (hasRequiredContains) return contains;
|
|
6
|
+
hasRequiredContains = 1;
|
|
7
|
+
contains = function generate_contains(it, $keyword, $ruleType) {
|
|
8
|
+
var out = ' ';
|
|
9
|
+
var $lvl = it.level;
|
|
10
|
+
var $dataLvl = it.dataLevel;
|
|
11
|
+
var $schema = it.schema[$keyword];
|
|
12
|
+
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
|
|
13
|
+
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
14
|
+
var $breakOnError = !it.opts.allErrors;
|
|
15
|
+
var $data = 'data' + ($dataLvl || '');
|
|
16
|
+
var $valid = 'valid' + $lvl;
|
|
17
|
+
var $errs = 'errs__' + $lvl;
|
|
18
|
+
var $it = it.util.copy(it);
|
|
19
|
+
var $closingBraces = '';
|
|
20
|
+
$it.level++;
|
|
21
|
+
var $nextValid = 'valid' + $it.level;
|
|
22
|
+
var $idx = 'i' + $lvl,
|
|
23
|
+
$dataNxt = $it.dataLevel = it.dataLevel + 1,
|
|
24
|
+
$nextData = 'data' + $dataNxt,
|
|
25
|
+
$currentBaseId = it.baseId,
|
|
26
|
+
$nonEmptySchema = (it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all));
|
|
27
|
+
out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
|
|
28
|
+
if ($nonEmptySchema) {
|
|
29
|
+
var $wasComposite = it.compositeRule;
|
|
30
|
+
it.compositeRule = $it.compositeRule = true;
|
|
31
|
+
$it.schema = $schema;
|
|
32
|
+
$it.schemaPath = $schemaPath;
|
|
33
|
+
$it.errSchemaPath = $errSchemaPath;
|
|
34
|
+
out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
|
|
35
|
+
$it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
|
|
36
|
+
var $passData = $data + '[' + $idx + ']';
|
|
37
|
+
$it.dataPathArr[$dataNxt] = $idx;
|
|
38
|
+
var $code = it.validate($it);
|
|
39
|
+
$it.baseId = $currentBaseId;
|
|
40
|
+
if (it.util.varOccurences($code, $nextData) < 2) {
|
|
41
|
+
out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
|
|
42
|
+
} else {
|
|
43
|
+
out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
|
|
44
|
+
}
|
|
45
|
+
out += ' if (' + ($nextValid) + ') break; } ';
|
|
46
|
+
it.compositeRule = $it.compositeRule = $wasComposite;
|
|
47
|
+
out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';
|
|
48
|
+
} else {
|
|
49
|
+
out += ' if (' + ($data) + '.length == 0) {';
|
|
50
|
+
}
|
|
51
|
+
var $$outStack = $$outStack || [];
|
|
52
|
+
$$outStack.push(out);
|
|
53
|
+
out = ''; /* istanbul ignore else */
|
|
54
|
+
if (it.createErrors !== false) {
|
|
55
|
+
out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
|
|
56
|
+
if (it.opts.messages !== false) {
|
|
57
|
+
out += ' , message: \'should contain a valid item\' ';
|
|
58
|
+
}
|
|
59
|
+
if (it.opts.verbose) {
|
|
60
|
+
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
61
|
+
}
|
|
62
|
+
out += ' } ';
|
|
63
|
+
} else {
|
|
64
|
+
out += ' {} ';
|
|
65
|
+
}
|
|
66
|
+
var __err = out;
|
|
67
|
+
out = $$outStack.pop();
|
|
68
|
+
if (!it.compositeRule && $breakOnError) {
|
|
69
|
+
/* istanbul ignore if */
|
|
70
|
+
if (it.async) {
|
|
71
|
+
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
72
|
+
} else {
|
|
73
|
+
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
77
|
+
}
|
|
78
|
+
out += ' } else { ';
|
|
79
|
+
if ($nonEmptySchema) {
|
|
80
|
+
out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
|
|
81
|
+
}
|
|
82
|
+
if (it.opts.allErrors) {
|
|
83
|
+
out += ' } ';
|
|
84
|
+
}
|
|
85
|
+
return out;
|
|
86
|
+
};
|
|
87
|
+
return contains;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { requireContains as __require };
|
|
91
|
+
//# sourceMappingURL=contains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contains.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/contains.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_contains(it, $keyword, $ruleType) {\n var out = ' ';\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 $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $idx = 'i' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $currentBaseId = it.baseId,\n $nonEmptySchema = (it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all));\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($nonEmptySchema) {\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' if (' + ($nextValid) + ') break; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';\n } else {\n out += ' if (' + ($data) + '.length == 0) {';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('contains') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should contain a valid item\\' ';\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 += ' } else { ';\n if ($nonEmptySchema) {\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = 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C9I,KAAA;KACI,GAAG,IAAI,KAAK;AAChB,GAAA,CAAG,MAAM;KACL,GAAG,IAAI,MAAM;AACjB,GAAA;GACE,IAAI,KAAK,GAAG,GAAG;AACjB,GAAE,GAAG,GAAG,UAAU,CAAC,GAAG,EAAE;AACxB,GAAE,IAAI,CAAC,EAAE,CAAC,aAAa,IAAI,aAAa,EAAE;AAC1C;AACA,KAAI,IAAI,EAAE,CAAC,KAAK,EAAE;AAClB,OAAM,GAAG,IAAI,8BAA8B,IAAI,KAAK,CAAC,GAAG,MAAM;AAC9D,KAAA,CAAK,MAAM;AACX,OAAM,GAAG,IAAI,sBAAsB,IAAI,KAAK,CAAC,GAAG,mBAAmB;AACnE,KAAA;AACA,GAAA,CAAG,MAAM;AACT,KAAI,GAAG,IAAI,aAAa,IAAI,KAAK,CAAC,GAAG,8EAA8E;AACnH,GAAA;GACE,GAAG,IAAI,YAAY;GACnB,IAAI,eAAe,EAAE;AACvB,KAAI,GAAG,IAAI,aAAa,IAAI,KAAK,CAAC,GAAG,gCAAgC,IAAI,KAAK,CAAC,GAAG,qBAAqB,IAAI,KAAK,CAAC,GAAG,2BAA2B;AAC/I,GAAA;AACA,GAAE,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE;KACrB,GAAG,IAAI,KAAK;AAChB,GAAA;AACA,GAAE,OAAO,GAAG;AACZ,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
var custom;
|
|
2
|
+
var hasRequiredCustom;
|
|
3
|
+
|
|
4
|
+
function requireCustom () {
|
|
5
|
+
if (hasRequiredCustom) return custom;
|
|
6
|
+
hasRequiredCustom = 1;
|
|
7
|
+
custom = function generate_custom(it, $keyword, $ruleType) {
|
|
8
|
+
var out = ' ';
|
|
9
|
+
var $lvl = it.level;
|
|
10
|
+
var $dataLvl = it.dataLevel;
|
|
11
|
+
var $schema = it.schema[$keyword];
|
|
12
|
+
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
|
|
13
|
+
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
14
|
+
var $breakOnError = !it.opts.allErrors;
|
|
15
|
+
var $errorKeyword;
|
|
16
|
+
var $data = 'data' + ($dataLvl || '');
|
|
17
|
+
var $valid = 'valid' + $lvl;
|
|
18
|
+
var $errs = 'errs__' + $lvl;
|
|
19
|
+
var $isData = it.opts.$data && $schema && $schema.$data,
|
|
20
|
+
$schemaValue;
|
|
21
|
+
if ($isData) {
|
|
22
|
+
out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
|
|
23
|
+
$schemaValue = 'schema' + $lvl;
|
|
24
|
+
} else {
|
|
25
|
+
$schemaValue = $schema;
|
|
26
|
+
}
|
|
27
|
+
var $rule = this,
|
|
28
|
+
$definition = 'definition' + $lvl,
|
|
29
|
+
$rDef = $rule.definition,
|
|
30
|
+
$closingBraces = '';
|
|
31
|
+
var $compile, $inline, $macro, $ruleValidate, $validateCode;
|
|
32
|
+
if ($isData && $rDef.$data) {
|
|
33
|
+
$validateCode = 'keywordValidate' + $lvl;
|
|
34
|
+
var $validateSchema = $rDef.validateSchema;
|
|
35
|
+
out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';
|
|
36
|
+
} else {
|
|
37
|
+
$ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
|
|
38
|
+
if (!$ruleValidate) return;
|
|
39
|
+
$schemaValue = 'validate.schema' + $schemaPath;
|
|
40
|
+
$validateCode = $ruleValidate.code;
|
|
41
|
+
$compile = $rDef.compile;
|
|
42
|
+
$inline = $rDef.inline;
|
|
43
|
+
$macro = $rDef.macro;
|
|
44
|
+
}
|
|
45
|
+
var $ruleErrs = $validateCode + '.errors',
|
|
46
|
+
$i = 'i' + $lvl,
|
|
47
|
+
$ruleErr = 'ruleErr' + $lvl,
|
|
48
|
+
$asyncKeyword = $rDef.async;
|
|
49
|
+
if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');
|
|
50
|
+
if (!($inline || $macro)) {
|
|
51
|
+
out += '' + ($ruleErrs) + ' = null;';
|
|
52
|
+
}
|
|
53
|
+
out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
|
|
54
|
+
if ($isData && $rDef.$data) {
|
|
55
|
+
$closingBraces += '}';
|
|
56
|
+
out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';
|
|
57
|
+
if ($validateSchema) {
|
|
58
|
+
$closingBraces += '}';
|
|
59
|
+
out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if ($inline) {
|
|
63
|
+
if ($rDef.statements) {
|
|
64
|
+
out += ' ' + ($ruleValidate.validate) + ' ';
|
|
65
|
+
} else {
|
|
66
|
+
out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';
|
|
67
|
+
}
|
|
68
|
+
} else if ($macro) {
|
|
69
|
+
var $it = it.util.copy(it);
|
|
70
|
+
var $closingBraces = '';
|
|
71
|
+
$it.level++;
|
|
72
|
+
var $nextValid = 'valid' + $it.level;
|
|
73
|
+
$it.schema = $ruleValidate.validate;
|
|
74
|
+
$it.schemaPath = '';
|
|
75
|
+
var $wasComposite = it.compositeRule;
|
|
76
|
+
it.compositeRule = $it.compositeRule = true;
|
|
77
|
+
var $code = it.validate($it).replace(/validate\.schema/g, $validateCode);
|
|
78
|
+
it.compositeRule = $it.compositeRule = $wasComposite;
|
|
79
|
+
out += ' ' + ($code);
|
|
80
|
+
} else {
|
|
81
|
+
var $$outStack = $$outStack || [];
|
|
82
|
+
$$outStack.push(out);
|
|
83
|
+
out = '';
|
|
84
|
+
out += ' ' + ($validateCode) + '.call( ';
|
|
85
|
+
if (it.opts.passContext) {
|
|
86
|
+
out += 'this';
|
|
87
|
+
} else {
|
|
88
|
+
out += 'self';
|
|
89
|
+
}
|
|
90
|
+
if ($compile || $rDef.schema === false) {
|
|
91
|
+
out += ' , ' + ($data) + ' ';
|
|
92
|
+
} else {
|
|
93
|
+
out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';
|
|
94
|
+
}
|
|
95
|
+
out += ' , (dataPath || \'\')';
|
|
96
|
+
if (it.errorPath != '""') {
|
|
97
|
+
out += ' + ' + (it.errorPath);
|
|
98
|
+
}
|
|
99
|
+
var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
|
|
100
|
+
$parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
|
|
101
|
+
out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';
|
|
102
|
+
var def_callRuleValidate = out;
|
|
103
|
+
out = $$outStack.pop();
|
|
104
|
+
if ($rDef.errors === false) {
|
|
105
|
+
out += ' ' + ($valid) + ' = ';
|
|
106
|
+
if ($asyncKeyword) {
|
|
107
|
+
out += 'await ';
|
|
108
|
+
}
|
|
109
|
+
out += '' + (def_callRuleValidate) + '; ';
|
|
110
|
+
} else {
|
|
111
|
+
if ($asyncKeyword) {
|
|
112
|
+
$ruleErrs = 'customErrors' + $lvl;
|
|
113
|
+
out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';
|
|
114
|
+
} else {
|
|
115
|
+
out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if ($rDef.modifying) {
|
|
120
|
+
out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';
|
|
121
|
+
}
|
|
122
|
+
out += '' + ($closingBraces);
|
|
123
|
+
if ($rDef.valid) {
|
|
124
|
+
if ($breakOnError) {
|
|
125
|
+
out += ' if (true) { ';
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
out += ' if ( ';
|
|
129
|
+
if ($rDef.valid === undefined) {
|
|
130
|
+
out += ' !';
|
|
131
|
+
if ($macro) {
|
|
132
|
+
out += '' + ($nextValid);
|
|
133
|
+
} else {
|
|
134
|
+
out += '' + ($valid);
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
out += ' ' + (!$rDef.valid) + ' ';
|
|
138
|
+
}
|
|
139
|
+
out += ') { ';
|
|
140
|
+
$errorKeyword = $rule.keyword;
|
|
141
|
+
var $$outStack = $$outStack || [];
|
|
142
|
+
$$outStack.push(out);
|
|
143
|
+
out = '';
|
|
144
|
+
var $$outStack = $$outStack || [];
|
|
145
|
+
$$outStack.push(out);
|
|
146
|
+
out = ''; /* istanbul ignore else */
|
|
147
|
+
if (it.createErrors !== false) {
|
|
148
|
+
out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
|
|
149
|
+
if (it.opts.messages !== false) {
|
|
150
|
+
out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
|
|
151
|
+
}
|
|
152
|
+
if (it.opts.verbose) {
|
|
153
|
+
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
154
|
+
}
|
|
155
|
+
out += ' } ';
|
|
156
|
+
} else {
|
|
157
|
+
out += ' {} ';
|
|
158
|
+
}
|
|
159
|
+
var __err = out;
|
|
160
|
+
out = $$outStack.pop();
|
|
161
|
+
if (!it.compositeRule && $breakOnError) {
|
|
162
|
+
/* istanbul ignore if */
|
|
163
|
+
if (it.async) {
|
|
164
|
+
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
165
|
+
} else {
|
|
166
|
+
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
167
|
+
}
|
|
168
|
+
} else {
|
|
169
|
+
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
170
|
+
}
|
|
171
|
+
var def_customError = out;
|
|
172
|
+
out = $$outStack.pop();
|
|
173
|
+
if ($inline) {
|
|
174
|
+
if ($rDef.errors) {
|
|
175
|
+
if ($rDef.errors != 'full') {
|
|
176
|
+
out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
|
|
177
|
+
if (it.opts.verbose) {
|
|
178
|
+
out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
|
|
179
|
+
}
|
|
180
|
+
out += ' } ';
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
if ($rDef.errors === false) {
|
|
184
|
+
out += ' ' + (def_customError) + ' ';
|
|
185
|
+
} else {
|
|
186
|
+
out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else { for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
|
|
187
|
+
if (it.opts.verbose) {
|
|
188
|
+
out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
|
|
189
|
+
}
|
|
190
|
+
out += ' } } ';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
} else if ($macro) {
|
|
194
|
+
out += ' var err = '; /* istanbul ignore else */
|
|
195
|
+
if (it.createErrors !== false) {
|
|
196
|
+
out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
|
|
197
|
+
if (it.opts.messages !== false) {
|
|
198
|
+
out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
|
|
199
|
+
}
|
|
200
|
+
if (it.opts.verbose) {
|
|
201
|
+
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
202
|
+
}
|
|
203
|
+
out += ' } ';
|
|
204
|
+
} else {
|
|
205
|
+
out += ' {} ';
|
|
206
|
+
}
|
|
207
|
+
out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
208
|
+
if (!it.compositeRule && $breakOnError) {
|
|
209
|
+
/* istanbul ignore if */
|
|
210
|
+
if (it.async) {
|
|
211
|
+
out += ' throw new ValidationError(vErrors); ';
|
|
212
|
+
} else {
|
|
213
|
+
out += ' validate.errors = vErrors; return false; ';
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
} else {
|
|
217
|
+
if ($rDef.errors === false) {
|
|
218
|
+
out += ' ' + (def_customError) + ' ';
|
|
219
|
+
} else {
|
|
220
|
+
out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors = vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length; for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; ';
|
|
221
|
+
if (it.opts.verbose) {
|
|
222
|
+
out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
|
|
223
|
+
}
|
|
224
|
+
out += ' } } else { ' + (def_customError) + ' } ';
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
out += ' } ';
|
|
228
|
+
if ($breakOnError) {
|
|
229
|
+
out += ' else { ';
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return out;
|
|
233
|
+
};
|
|
234
|
+
return custom;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export { requireCustom as __require };
|
|
238
|
+
//# sourceMappingURL=custom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/custom.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_custom(it, $keyword, $ruleType) {\n var out = ' ';\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 var $errs = 'errs__' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $rule = this,\n $definition = 'definition' + $lvl,\n $rDef = $rule.definition,\n $closingBraces = '';\n var $compile, $inline, $macro, $ruleValidate, $validateCode;\n if ($isData && $rDef.$data) {\n $validateCode = 'keywordValidate' + $lvl;\n var $validateSchema = $rDef.validateSchema;\n out += ' var ' + ($definition) + ' = RULES.custom[\\'' + ($keyword) + '\\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';\n } else {\n $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);\n if (!$ruleValidate) return;\n $schemaValue = 'validate.schema' + $schemaPath;\n $validateCode = $ruleValidate.code;\n $compile = $rDef.compile;\n $inline = $rDef.inline;\n $macro = $rDef.macro;\n }\n var $ruleErrs = $validateCode + '.errors',\n $i = 'i' + $lvl,\n $ruleErr = 'ruleErr' + $lvl,\n $asyncKeyword = $rDef.async;\n if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');\n if (!($inline || $macro)) {\n out += '' + ($ruleErrs) + ' = null;';\n }\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($isData && $rDef.$data) {\n $closingBraces += '}';\n out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';\n if ($validateSchema) {\n $closingBraces += '}';\n out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';\n }\n }\n if ($inline) {\n if ($rDef.statements) {\n out += ' ' + ($ruleValidate.validate) + ' ';\n } else {\n out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';\n }\n } else if ($macro) {\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n $it.schema = $ruleValidate.validate;\n $it.schemaPath = '';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var $code = it.validate($it).replace(/validate\\.schema/g, $validateCode);\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($code);\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n out += ' ' + ($validateCode) + '.call( ';\n if (it.opts.passContext) {\n out += 'this';\n } else {\n out += 'self';\n }\n if ($compile || $rDef.schema === false) {\n out += ' , ' + ($data) + ' ';\n } else {\n out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';\n }\n out += ' , (dataPath || \\'\\')';\n if (it.errorPath != '\"\"') {\n out += ' + ' + (it.errorPath);\n }\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';\n var def_callRuleValidate = out;\n out = $$outStack.pop();\n if ($rDef.errors === false) {\n out += ' ' + ($valid) + ' = ';\n if ($asyncKeyword) {\n out += 'await ';\n }\n out += '' + (def_callRuleValidate) + '; ';\n } else {\n if ($asyncKeyword) {\n $ruleErrs = 'customErrors' + $lvl;\n out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';\n } else {\n out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';\n }\n }\n }\n if ($rDef.modifying) {\n out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';\n }\n out += '' + ($closingBraces);\n if ($rDef.valid) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n } else {\n out += ' if ( ';\n if ($rDef.valid === undefined) {\n out += ' !';\n if ($macro) {\n out += '' + ($nextValid);\n } else {\n out += '' + ($valid);\n }\n } else {\n out += ' ' + (!$rDef.valid) + ' ';\n }\n out += ') { ';\n $errorKeyword = $rule.keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\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 var def_customError = out;\n out = $$outStack.pop();\n if ($inline) {\n if ($rDef.errors) {\n if ($rDef.errors != 'full') {\n out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; } ';\n if (it.opts.verbose) {\n out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n }\n out += ' } ';\n }\n } else {\n if ($rDef.errors === false) {\n out += ' ' + (def_customError) + ' ';\n } else {\n out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else { for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; } ';\n if (it.opts.verbose) {\n out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n }\n out += ' } } ';\n }\n }\n } else if ($macro) {\n out += ' var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\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 out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n } else {\n if ($rDef.errors === false) {\n out += ' ' + (def_customError) + ' ';\n } else {\n out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors = vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length; for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; ';\n if (it.opts.verbose) {\n out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n }\n out += ' } } else { ' + (def_customError) + ' } ';\n }\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,MAAc,GAAG,SAAS,eAAe,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GACjE,IAAI,GAAG,GAAG,GAAG;AACf,GAAE,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK;AACrB,GAAE,IAAI,QAAQ,GAAG,EAAE,CAAC,SAAS;GAC3B,IAAI,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnC,GAAE,IAAI,WAAW,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;GAC/D,IAAI,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,GAAG,GAAG,QAAQ;GACtD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;AACxC,GAAE,IAAI,aAAa;GACjB,IAAI,KAAK,GAAG,MAAM,IAAI,QAAQ,IAAI,EAAE,CAAC;AACvC,GAAE,IAAI,MAAM,GAAG,OAAO,GAAG,IAAI;AAC7B,GAAE,IAAI,KAAK,GAAG,QAAQ,GAAG,IAAI;AAC7B,GAAE,IAAI,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK;AACzD,KAAI,YAAY;GACd,IAAI,OAAO,EAAE;KACX,GAAG,IAAI,aAAa,IAAI,IAAI,CAAC,GAAG,KAAK,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equiredDependencies = 1;
|
|
7
|
+
dependencies = function generate_dependencies(it, $keyword, $ruleType) {
|
|
8
|
+
var out = ' ';
|
|
9
|
+
var $lvl = it.level;
|
|
10
|
+
var $dataLvl = it.dataLevel;
|
|
11
|
+
var $schema = it.schema[$keyword];
|
|
12
|
+
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
|
|
13
|
+
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
14
|
+
var $breakOnError = !it.opts.allErrors;
|
|
15
|
+
var $data = 'data' + ($dataLvl || '');
|
|
16
|
+
var $errs = 'errs__' + $lvl;
|
|
17
|
+
var $it = it.util.copy(it);
|
|
18
|
+
var $closingBraces = '';
|
|
19
|
+
$it.level++;
|
|
20
|
+
var $nextValid = 'valid' + $it.level;
|
|
21
|
+
var $schemaDeps = {},
|
|
22
|
+
$propertyDeps = {},
|
|
23
|
+
$ownProperties = it.opts.ownProperties;
|
|
24
|
+
for ($property in $schema) {
|
|
25
|
+
if ($property == '__proto__') continue;
|
|
26
|
+
var $sch = $schema[$property];
|
|
27
|
+
var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
|
|
28
|
+
$deps[$property] = $sch;
|
|
29
|
+
}
|
|
30
|
+
out += 'var ' + ($errs) + ' = errors;';
|
|
31
|
+
var $currentErrorPath = it.errorPath;
|
|
32
|
+
out += 'var missing' + ($lvl) + ';';
|
|
33
|
+
for (var $property in $propertyDeps) {
|
|
34
|
+
$deps = $propertyDeps[$property];
|
|
35
|
+
if ($deps.length) {
|
|
36
|
+
out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
|
|
37
|
+
if ($ownProperties) {
|
|
38
|
+
out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
|
|
39
|
+
}
|
|
40
|
+
if ($breakOnError) {
|
|
41
|
+
out += ' && ( ';
|
|
42
|
+
var arr1 = $deps;
|
|
43
|
+
if (arr1) {
|
|
44
|
+
var $propertyKey, $i = -1,
|
|
45
|
+
l1 = arr1.length - 1;
|
|
46
|
+
while ($i < l1) {
|
|
47
|
+
$propertyKey = arr1[$i += 1];
|
|
48
|
+
if ($i) {
|
|
49
|
+
out += ' || ';
|
|
50
|
+
}
|
|
51
|
+
var $prop = it.util.getProperty($propertyKey),
|
|
52
|
+
$useData = $data + $prop;
|
|
53
|
+
out += ' ( ( ' + ($useData) + ' === undefined ';
|
|
54
|
+
if ($ownProperties) {
|
|
55
|
+
out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
|
|
56
|
+
}
|
|
57
|
+
out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
out += ')) { ';
|
|
61
|
+
var $propertyPath = 'missing' + $lvl,
|
|
62
|
+
$missingProperty = '\' + ' + $propertyPath + ' + \'';
|
|
63
|
+
if (it.opts._errorDataPathProperty) {
|
|
64
|
+
it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
|
|
65
|
+
}
|
|
66
|
+
var $$outStack = $$outStack || [];
|
|
67
|
+
$$outStack.push(out);
|
|
68
|
+
out = ''; /* istanbul ignore else */
|
|
69
|
+
if (it.createErrors !== false) {
|
|
70
|
+
out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
|
|
71
|
+
if (it.opts.messages !== false) {
|
|
72
|
+
out += ' , message: \'should have ';
|
|
73
|
+
if ($deps.length == 1) {
|
|
74
|
+
out += 'property ' + (it.util.escapeQuotes($deps[0]));
|
|
75
|
+
} else {
|
|
76
|
+
out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
|
|
77
|
+
}
|
|
78
|
+
out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
|
|
79
|
+
}
|
|
80
|
+
if (it.opts.verbose) {
|
|
81
|
+
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
82
|
+
}
|
|
83
|
+
out += ' } ';
|
|
84
|
+
} else {
|
|
85
|
+
out += ' {} ';
|
|
86
|
+
}
|
|
87
|
+
var __err = out;
|
|
88
|
+
out = $$outStack.pop();
|
|
89
|
+
if (!it.compositeRule && $breakOnError) {
|
|
90
|
+
/* istanbul ignore if */
|
|
91
|
+
if (it.async) {
|
|
92
|
+
out += ' throw new ValidationError([' + (__err) + ']); ';
|
|
93
|
+
} else {
|
|
94
|
+
out += ' validate.errors = [' + (__err) + ']; return false; ';
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
out += ' ) { ';
|
|
101
|
+
var arr2 = $deps;
|
|
102
|
+
if (arr2) {
|
|
103
|
+
var $propertyKey, i2 = -1,
|
|
104
|
+
l2 = arr2.length - 1;
|
|
105
|
+
while (i2 < l2) {
|
|
106
|
+
$propertyKey = arr2[i2 += 1];
|
|
107
|
+
var $prop = it.util.getProperty($propertyKey),
|
|
108
|
+
$missingProperty = it.util.escapeQuotes($propertyKey),
|
|
109
|
+
$useData = $data + $prop;
|
|
110
|
+
if (it.opts._errorDataPathProperty) {
|
|
111
|
+
it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
|
|
112
|
+
}
|
|
113
|
+
out += ' if ( ' + ($useData) + ' === undefined ';
|
|
114
|
+
if ($ownProperties) {
|
|
115
|
+
out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
|
|
116
|
+
}
|
|
117
|
+
out += ') { var err = '; /* istanbul ignore else */
|
|
118
|
+
if (it.createErrors !== false) {
|
|
119
|
+
out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
|
|
120
|
+
if (it.opts.messages !== false) {
|
|
121
|
+
out += ' , message: \'should have ';
|
|
122
|
+
if ($deps.length == 1) {
|
|
123
|
+
out += 'property ' + (it.util.escapeQuotes($deps[0]));
|
|
124
|
+
} else {
|
|
125
|
+
out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
|
|
126
|
+
}
|
|
127
|
+
out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
|
|
128
|
+
}
|
|
129
|
+
if (it.opts.verbose) {
|
|
130
|
+
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
|
|
131
|
+
}
|
|
132
|
+
out += ' } ';
|
|
133
|
+
} else {
|
|
134
|
+
out += ' {} ';
|
|
135
|
+
}
|
|
136
|
+
out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
out += ' } ';
|
|
141
|
+
if ($breakOnError) {
|
|
142
|
+
$closingBraces += '}';
|
|
143
|
+
out += ' else { ';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
it.errorPath = $currentErrorPath;
|
|
148
|
+
var $currentBaseId = $it.baseId;
|
|
149
|
+
for (var $property in $schemaDeps) {
|
|
150
|
+
var $sch = $schemaDeps[$property];
|
|
151
|
+
if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) {
|
|
152
|
+
out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
|
|
153
|
+
if ($ownProperties) {
|
|
154
|
+
out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
|
|
155
|
+
}
|
|
156
|
+
out += ') { ';
|
|
157
|
+
$it.schema = $sch;
|
|
158
|
+
$it.schemaPath = $schemaPath + it.util.getProperty($property);
|
|
159
|
+
$it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);
|
|
160
|
+
out += ' ' + (it.validate($it)) + ' ';
|
|
161
|
+
$it.baseId = $currentBaseId;
|
|
162
|
+
out += ' } ';
|
|
163
|
+
if ($breakOnError) {
|
|
164
|
+
out += ' if (' + ($nextValid) + ') { ';
|
|
165
|
+
$closingBraces += '}';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if ($breakOnError) {
|
|
170
|
+
out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
|
|
171
|
+
}
|
|
172
|
+
return out;
|
|
173
|
+
};
|
|
174
|
+
return dependencies;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export { requireDependencies as __require };
|
|
178
|
+
//# sourceMappingURL=dependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencies.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/dependencies.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_dependencies(it, $keyword, $ruleType) {\n var out = ' ';\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 $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $schemaDeps = {},\n $propertyDeps = {},\n $ownProperties = it.opts.ownProperties;\n for ($property in $schema) {\n if ($property == '__proto__') continue;\n var $sch = $schema[$property];\n var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;\n $deps[$property] = $sch;\n }\n out += 'var ' + ($errs) + ' = errors;';\n var $currentErrorPath = it.errorPath;\n out += 'var missing' + ($lvl) + ';';\n for (var $property in $propertyDeps) {\n $deps = $propertyDeps[$property];\n if ($deps.length) {\n out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n if ($breakOnError) {\n out += ' && ( ';\n var arr1 = $deps;\n if (arr1) {\n var $propertyKey, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $propertyKey = arr1[$i += 1];\n if ($i) {\n out += ' || ';\n }\n var $prop = it.util.getProperty($propertyKey),\n $useData = $data + $prop;\n out += ' ( ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';\n }\n }\n out += ')) { ';\n var $propertyPath = 'missing' + $lvl,\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\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 } else {\n out += ' ) { ';\n var arr2 = $deps;\n if (arr2) {\n var $propertyKey, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $propertyKey = arr2[i2 += 1];\n var $prop = it.util.getProperty($propertyKey),\n $missingProperty = it.util.escapeQuotes($propertyKey),\n $useData = $data + $prop;\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\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 out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n }\n }\n }\n out += ' } ';\n if ($breakOnError) {\n $closingBraces += '}';\n out += ' else { ';\n }\n }\n }\n it.errorPath = $currentErrorPath;\n var $currentBaseId = $it.baseId;\n for (var $property in $schemaDeps) {\n var $sch = $schemaDeps[$property];\n if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) {\n out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n out += ') { ';\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + it.util.getProperty($property);\n $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,YAAc,GAAG,SAAS,qBAAqB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GACvE,IAAI,GAAG,GAAG,GAAG;AACf,GAAE,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK;AACrB,GAAE,IAAI,QAAQ,GAAG,EAAE,CAAC,SAAS;GAC3B,IAAI,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnC,GAAE,IAAI,WAAW,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;GAC/D,IAAI,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,GAAG,GAAG,QAAQ;GACtD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;GACtC,IAAI,KAAK,GAAG,MAAM,IAAI,QAAQ,IAAI,EAAE,CAAC;AACvC,GAAE,IAAI,KAAK,GAAG,QAAQ,GAAG,IAAI;GAC3B,IAAI,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;GAC1B,IAAI,cAAc,GAAG,EAAE;GACvB,GAAG,CAAC,KAAK,EAAE;AACb,GAAE,IAAI,UAAU,GAAG,OAAO,GAAG,GAAG,CAAC,KAAK;GACpC,IAAI,WAAW,GAAG,EAAE;KAClB,aAAa,GAAG,EAAE;AACtB,KAAI,cAAc,GAAG,EAAE,CAAC,IAAI,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