Socket
Socket
Sign inDemoInstall

prototypes

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prototypes - npm Package Compare versions

Comparing version 0.0.3 to 0.1.1

12

lib/object.js

@@ -20,11 +20,3 @@ 'use strict';

{
var count = 0;
for (var key in this)
{
if (this.hasOwnProperty(key))
{
count++;
}
}
return count;
return Object.keys(this).length;
};

@@ -101,3 +93,3 @@

var tests = {
countProperties: testCountProperties,
testCountProperties: testCountProperties,
overwrite: testOverwriteObject,

@@ -104,0 +96,0 @@ };

2

package.json
{
"name": "prototypes",
"version": "0.0.3",
"version": "0.1.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",

@@ -10,8 +10,4 @@ 'use strict';

var testing = require('testing');
var Log = require('log');
// globals
var log = new Log('info');
/**

@@ -41,3 +37,2 @@ * Test that a new object is clean: has no functions.

{
log.debug('Running tests');
var tests = {

@@ -44,0 +39,0 @@ cleanObjects: testCleanObjects,

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