SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > > object.getownpropertydescriptors


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules//object.getownpropertydescriptors

NameTypeSizeLast ModifiedActions
.editorconfig File 276 bytes March 10 2021 14:36:37.
.jscs.json File 4140 bytes March 10 2021 14:36:37.
.npmignore File 587 bytes March 10 2021 14:36:37.
.travis.yml File 1959 bytes March 10 2021 14:36:37.
CHANGELOG.md File 1731 bytes March 10 2021 14:36:37.
LICENSE File 1082 bytes March 10 2021 14:36:37.
Makefile File 3834 bytes March 10 2021 14:36:37.
README.md File 3716 bytes March 10 2021 14:36:37.
implementation.js File 1242 bytes March 10 2021 14:36:37.
index.js File 316 bytes March 10 2021 14:36:37.
package.json File 3159 bytes March 10 2021 14:36:37.
polyfill.js File 227 bytes March 10 2021 14:36:37.
shim.js File 381 bytes March 10 2021 14:36:37.

Reading File: //lib/node_modules/npm/node_modules//object.getownpropertydescriptors/implementation.js

'use strict';

var ES = require('es-abstract/es7');

var defineProperty = Object.defineProperty;
var getDescriptor = Object.getOwnPropertyDescriptor;
var getOwnNames = Object.getOwnPropertyNames;
var getSymbols = Object.getOwnPropertySymbols;
var concat = Function.call.bind(Array.prototype.concat);
var reduce = Function.call.bind(Array.prototype.reduce);
var getAll = getSymbols ? function (obj) {
	return concat(getOwnNames(obj), getSymbols(obj));
} : getOwnNames;

var isES5 = ES.IsCallable(getDescriptor) && ES.IsCallable(getOwnNames);

var safePut = function put(obj, prop, val) { // eslint-disable-line max-params
	if (defineProperty && prop in obj) {
		defineProperty(obj, prop, {
			configurable: true,
			enumerable: true,
			value: val,
			writable: true
		});
	} else {
		obj[prop] = val;
	}
};

module.exports = function getOwnPropertyDescriptors(value) {
	ES.RequireObjectCoercible(value);
	if (!isES5) {
		throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
	}

	var O = ES.ToObject(value);
	return reduce(getAll(O), function (acc, key) {
		var descriptor = getDescriptor(O, key);
		if (typeof descriptor !== 'undefined') {
			safePut(acc, key, descriptor);
		}
		return acc;
	}, {});
};

SILENT KILLER Tool