Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/express-validator/src/chain/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextHandlerImpl = void 0; const context_items_1 = require("../context-items"); const bail_1 = require("../context-items/bail"); class ContextHandlerImpl { constructor(builder, chain) { this.builder = builder; this.chain = chain; } bail(opts) { if (opts?.level === 'request') { this.builder.setRequestBail(); } this.builder.addItem(new bail_1.Bail()); return this.chain; } if(condition) { if ('run' in condition) { this.builder.addItem(new context_items_1.ChainCondition(condition)); } else if (typeof condition === 'function') { this.builder.addItem(new context_items_1.CustomCondition(condition)); } else { throw new Error('express-validator: condition is not a validation chain nor a function'); } return this.chain; } optional(options = true) { let value; if (typeof options === 'boolean') { value = options ? 'undefined' : false; } else { value = options.values ? options.values : options.checkFalsy ? 'falsy' : options.nullable ? 'null' : 'undefined'; } this.builder.setOptional(value); return this.chain; } } exports.ContextHandlerImpl = ContextHandlerImpl; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0083 ]-- |