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
13
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.17.6 to 1.17.7

2

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

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

@@ -187,4 +187,2 @@ var QUnit = require('steal-qunit');

QUnit.test("hasOwnKey", function(){
var map;

@@ -208,2 +206,12 @@ // Defined on something

QUnit.test("hasOwnKey on null derived object", function(){
var obj = Object.create(null);
obj.foo = "bar";
QUnit.ok( shapeReflections.hasOwnKey(obj, "foo") , "obj" );
QUnit.ok( !shapeReflections.hasOwnKey(obj, "bar") , "obj" );
});
QUnit.test("getOwnKeys", function(){

@@ -210,0 +218,0 @@ var obj = Object.create(null,{

@@ -76,2 +76,4 @@ "use strict";

var hasOwnProperty = Object.prototype.hasOwnProperty;
var shapeReflections;

@@ -560,3 +562,3 @@

}
return obj.hasOwnProperty(key);
return hasOwnProperty.call(obj, key);
},

@@ -1062,3 +1064,3 @@ /**

if (typeReflections.isPrimitive(obj)) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
if (hasOwnProperty.call(obj, key)) {
return true;

@@ -1065,0 +1067,0 @@ } else {

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