$70 GRAYBYTE WORDPRESS FILE MANAGER $23

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/dot/

HOME
Current File : /opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/ajv/lib/dot//coerce.def
{{## def.coerceType:
  {{
    var $dataType = 'dataType' + $lvl
      , $coerced = 'coerced' + $lvl;
  }}
  var {{=$dataType}} = typeof {{=$data}};
  {{? it.opts.coerceTypes == 'array'}}
    if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';
  {{?}}

  var {{=$coerced}} = undefined;

  {{ var $bracesCoercion = ''; }}
  {{~ $coerceToTypes:$type:$i }}
    {{? $i }}
      if ({{=$coerced}} === undefined) {
      {{ $bracesCoercion += '}'; }}
    {{?}}

    {{? it.opts.coerceTypes == 'array' && $type != 'array' }}
      if ({{=$dataType}} == 'array' && {{=$data}}.length == 1) {
        {{=$coerced}} = {{=$data}} = {{=$data}}[0];
        {{=$dataType}} = typeof {{=$data}};
        /*if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';*/
      }
    {{?}}

    {{? $type == 'string' }}
      if ({{=$dataType}} == 'number' || {{=$dataType}} == 'boolean')
        {{=$coerced}} = '' + {{=$data}};
      else if ({{=$data}} === null) {{=$coerced}} = '';
    {{?? $type == 'number' || $type == 'integer' }}
      if ({{=$dataType}} == 'boolean' || {{=$data}} === null
          || ({{=$dataType}} == 'string' && {{=$data}} && {{=$data}} == +{{=$data}}
          {{? $type == 'integer' }} && !({{=$data}} % 1){{?}}))
        {{=$coerced}} = +{{=$data}};
    {{?? $type == 'boolean' }}
      if ({{=$data}} === 'false' || {{=$data}} === 0 || {{=$data}} === null)
        {{=$coerced}} = false;
      else if ({{=$data}} === 'true' || {{=$data}} === 1)
        {{=$coerced}} = true;
    {{?? $type == 'null' }}
      if ({{=$data}} === '' || {{=$data}} === 0 || {{=$data}} === false)
        {{=$coerced}} = null;
    {{?? it.opts.coerceTypes == 'array' && $type == 'array' }}
      if ({{=$dataType}} == 'string' || {{=$dataType}} == 'number' || {{=$dataType}} == 'boolean' || {{=$data}} == null)
        {{=$coerced}} = [{{=$data}}];
    {{?}}
  {{~}}

  {{= $bracesCoercion }}

  if ({{=$coerced}} === undefined) {
    {{# def.error:'type' }}
  } else {
    {{# def.setParentData }}
    {{=$data}} = {{=$coerced}};
    {{? !$dataLvl }}if ({{=$parentData}} !== undefined){{?}}
      {{=$parentData}}[{{=$parentDataProperty}}] = {{=$coerced}};
  }
#}}

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
_limit.jst
3.245 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitItems.jst
0.319 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitLength.jst
0.324 KB
28 Sep 2021 5.29 PM
root / root
0644
_limitProperties.jst
0.342 KB
28 Sep 2021 5.29 PM
root / root
0644
allOf.jst
0.614 KB
28 Sep 2021 5.29 PM
root / root
0644
anyOf.jst
0.921 KB
28 Sep 2021 5.29 PM
root / root
0644
coerce.def
2.169 KB
28 Sep 2021 5.29 PM
root / root
0644
const.jst
0.273 KB
28 Sep 2021 5.29 PM
root / root
0644
contains.jst
1.18 KB
28 Sep 2021 5.29 PM
root / root
0644
custom.jst
4.853 KB
28 Sep 2021 5.29 PM
root / root
0644
defaults.def
0.839 KB
28 Sep 2021 5.29 PM
root / root
0644
definitions.def
3.8 KB
28 Sep 2021 5.29 PM
root / root
0644
dependencies.jst
1.801 KB
28 Sep 2021 5.29 PM
root / root
0644
enum.jst
0.539 KB
28 Sep 2021 5.29 PM
root / root
0644
errors.def
8.073 KB
28 Sep 2021 5.29 PM
root / root
0644
format.jst
3.088 KB
28 Sep 2021 5.29 PM
root / root
0644
items.jst
2.568 KB
28 Sep 2021 5.29 PM
root / root
0644
missing.def
1.166 KB
28 Sep 2021 5.29 PM
root / root
0644
multipleOf.jst
0.604 KB
28 Sep 2021 5.29 PM
root / root
0644
not.jst
0.841 KB
28 Sep 2021 5.29 PM
root / root
0644
oneOf.jst
0.9 KB
28 Sep 2021 5.29 PM
root / root
0644
pattern.jst
0.34 KB
28 Sep 2021 5.29 PM
root / root
0644
properties.jst
10.083 KB
28 Sep 2021 5.29 PM
root / root
0644
propertyNames.jst
1.275 KB
28 Sep 2021 5.29 PM
root / root
0644
ref.jst
2.368 KB
28 Sep 2021 5.29 PM
root / root
0644
required.jst
2.801 KB
28 Sep 2021 5.29 PM
root / root
0644
uniqueItems.jst
0.817 KB
28 Sep 2021 5.29 PM
root / root
0644
validate.jst
7.063 KB
28 Sep 2021 5.29 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF