Socket
Socket
Sign inDemoInstall

prototypes

Package Overview
Dependencies
1
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

4

lib/object.js

@@ -95,3 +95,3 @@ 'use strict';

var value = overwriter[key];
if (value !== undefined)
if (value !== undefined && value !== null)
{

@@ -128,3 +128,3 @@ this[key] = value;

first.overwriteWith(third);
testing.assertEquals(first.countProperties(), 5, 'Overwritten with third should have 5 properties', callback);
testing.assertEquals(first.countProperties(), 4, 'Overwritten with third should have 4 properties', callback);
testing.assert(first.w === 0, 'Overwritten with 0 should be there', callback);

@@ -131,0 +131,0 @@ testing.success(callback);

{
"name": "prototypes",
"version": "0.2.0",
"version": "0.2.1",
"description": "Some common prototypes for node.js: string.startsWith(), object.countProperties() and more. Functions are added using Object.defineProperty() to avoid polluting new objects.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/prototypes",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc