New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rmprop

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmprop - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

43

dist/index.js

@@ -273,2 +273,45 @@ 'use strict';

// create an array ontop of a function
local.emulateArray = function (a_input, z_cover) {
// prep redefine hash
var h_redefine = {};
// remove all properties from function
var as_properties = new Set();
// start proto at object itself
var w_proto = a_input;
// repeat until we've reached the end of the __proto__ chain
while (w_proto !== null) {
// get all properties this prototype would catch
Object.getOwnPropertyNames(w_proto).forEach(function (s_property) {
// property is already defined; continue
if (as_properties.has(s_property)) return;
// now we have visited this property
as_properties.add(s_property);
// set redefine descriptor
h_redefine[s_property] = Object.getOwnPropertyDescriptor(w_proto, s_property);
});
// continue up next __proto__ ancester
w_proto = w_proto.__proto__;
}
// write final descriptor hash onto cover
Object.defineProperties(z_cover, h_redefine);
// now, redefine length again with writable setting true
h_redefine.length.writable = true;
Object.defineProperty(z_cover, 'length', h_redefine.length);
// return cover
return z_cover;
};
// set real symbol

@@ -275,0 +318,0 @@ local.real = $_REAL;

2

package.json
{
"name": "rmprop",
"version": "1.1.0",
"version": "1.1.1",
"description": "Override all properties inhereted by an object's prototype chain",

@@ -5,0 +5,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc