Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
ajv-keywords /
keywords /
[ HOME SHELL ]
Name
Size
Permission
Action
dot
[ DIR ]
drwxr-xr-x
dotjs
[ DIR ]
drwxr-xr-x
_formatLimit.js
2.25
KB
-rw-r--r--
_util.js
402
B
-rw-r--r--
allRequired.js
474
B
-rw-r--r--
anyRequired.js
531
B
-rw-r--r--
deepProperties.js
1.33
KB
-rw-r--r--
deepRequired.js
1.26
KB
-rw-r--r--
dynamicDefaults.js
1.96
KB
-rw-r--r--
formatMaximum.js
70
B
-rw-r--r--
formatMinimum.js
70
B
-rw-r--r--
index.js
770
B
-rw-r--r--
instanceof.js
1.3
KB
-rw-r--r--
oneRequired.js
531
B
-rw-r--r--
patternRequired.js
412
B
-rw-r--r--
prohibited.js
544
B
-rw-r--r--
range.js
985
B
-rw-r--r--
regexp.js
959
B
-rw-r--r--
select.js
2.16
KB
-rw-r--r--
switch.js
817
B
-rw-r--r--
transform.js
2.1
KB
-rw-r--r--
typeof.js
818
B
-rw-r--r--
uniqueItemProperties.js
1.8
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : transform.js
'use strict'; module.exports = function defFunc (ajv) { var transform = { trimLeft: function (value) { return value.replace(/^[\s]+/, ''); }, trimRight: function (value) { return value.replace(/[\s]+$/, ''); }, trim: function (value) { return value.trim(); }, toLowerCase: function (value) { return value.toLowerCase(); }, toUpperCase: function (value) { return value.toUpperCase(); }, toEnumCase: function (value, cfg) { return cfg.hash[makeHashTableKey(value)] || value; } }; defFunc.definition = { type: 'string', errors: false, modifying: true, valid: true, compile: function (schema, parentSchema) { var cfg; if (schema.indexOf('toEnumCase') !== -1) { // build hash table to enum values cfg = {hash: {}}; // requires `enum` in schema if (!parentSchema.enum) throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.'); for (var i = parentSchema.enum.length; i--; i) { var v = parentSchema.enum[i]; if (typeof v !== 'string') continue; var k = makeHashTableKey(v); // requires all `enum` values have unique keys if (cfg.hash[k]) throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.'); cfg.hash[k] = v; } } return function (data, dataPath, object, key) { // skip if value only if (!object) return; // apply transform in order provided for (var j = 0, l = schema.length; j < l; j++) data = transform[schema[j]](data, cfg); object[key] = data; }; }, metaSchema: { type: 'array', items: { type: 'string', enum: [ 'trimLeft', 'trimRight', 'trim', 'toLowerCase', 'toUpperCase', 'toEnumCase' ] } } }; ajv.addKeyword('transform', defFunc.definition); return ajv; function makeHashTableKey (value) { return value.toLowerCase(); } };
Close