$65 GRAYBYTE WORDPRESS FILE MANAGER $62

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/ajv/lib/dotjs/

HOME
Current File : /opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/ajv/lib/dotjs//enum.js
'use strict';
module.exports = function generate_enum(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $i = 'i' + $lvl,
    $vSchema = 'schema' + $lvl;
  if (!$isData) {
    out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';
  }
  out += 'var ' + ($valid) + ';';
  if ($isData) {
    out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
  }
  out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';
  if ($isData) {
    out += '  }  ';
  }
  out += ' if (!' + ($valid) + ') {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should be equal to one of the allowed values\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' }';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
README.md
0.146 KB
28 Sep 2021 5.29 PM
root / root
0644
_limit.js
6.682 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitItems.js
2.533 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitLength.js
2.652 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitProperties.js
2.57 KB
28 Sep 2021 5.29 PM
root / root
0644
allOf.js
1.248 KB
28 Sep 2021 5.29 PM
root / root
0644
anyOf.js
2.783 KB
28 Sep 2021 5.29 PM
root / root
0644
const.js
2.024 KB
28 Sep 2021 5.29 PM
root / root
0644
contains.js
3.209 KB
28 Sep 2021 5.29 PM
root / root
0644
custom.js
9.551 KB
28 Sep 2021 5.29 PM
root / root
0644
dependencies.js
7.417 KB
28 Sep 2021 5.29 PM
root / root
0644
enum.js
2.521 KB
28 Sep 2021 5.29 PM
root / root
0644
format.js
5.466 KB
28 Sep 2021 5.29 PM
root / root
0644
items.js
5.742 KB
28 Sep 2021 5.29 PM
root / root
0644
multipleOf.js
2.635 KB
28 Sep 2021 5.29 PM
root / root
0644
not.js
3.262 KB
28 Sep 2021 5.29 PM
root / root
0644
oneOf.js
2.742 KB
28 Sep 2021 5.29 PM
root / root
0644
pattern.js
2.521 KB
28 Sep 2021 5.29 PM
root / root
0644
properties.js
21.344 KB
28 Sep 2021 5.29 PM
root / root
0644
propertyNames.js
3.442 KB
28 Sep 2021 5.29 PM
root / root
0644
ref.js
4.567 KB
28 Sep 2021 5.29 PM
root / root
0644
required.js
11.959 KB
28 Sep 2021 5.29 PM
root / root
0644
uniqueItems.js
2.804 KB
28 Sep 2021 5.29 PM
root / root
0644
validate.js
18.036 KB
28 Sep 2021 5.29 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF