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

can-reflect

Package Overview
Dependencies
Maintainers
10
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-reflect - npm Package Compare versions

Comparing version 1.16.1 to 1.16.2

2

package.json
{
"name": "can-reflect",
"version": "1.16.1",
"version": "1.16.2",
"description": "reflection on unknown data types",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

@@ -571,6 +571,16 @@ var QUnit = require('steal-qunit');

QUnit.equal( shapeReflections.size({}), 0, "empty object")
QUnit.equal( shapeReflections.size({foo:"bar"}), 1, "object")
QUnit.equal( shapeReflections.size({}), 0, "empty object");
QUnit.equal( shapeReflections.size({foo:"bar"}), 1, "object");
QUnit.equal( shapeReflections.size(null), 0, "null");
QUnit.equal( shapeReflections.size(undefined), 0, "undefined");
});
QUnit.test("size works with out hasOwnProperty (#109)", function(){
var obj = Object.create(null);
QUnit.equal( shapeReflections.size(obj), 0, "empty object");
obj.foo = "bar";
QUnit.equal( shapeReflections.size(obj), 1, "has value");
});
QUnit.test("each loops without needing `this`", function(){

@@ -583,2 +593,3 @@ var each = shapeReflections.each;

/*QUnit.test("getAllEnumerableKeys", function(){

@@ -585,0 +596,0 @@

@@ -1068,2 +1068,5 @@ var canSymbol = require("can-symbol");

size: function(obj){
if(obj == null) {
return 0;
}
var size = obj[sizeSymbol];

@@ -1070,0 +1073,0 @@ var count = 0;

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