Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-map

Package Overview
Dependencies
Maintainers
11
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-map - npm Package Compare versions

Comparing version 4.3.1 to 4.3.3

12

can-map_test.js

@@ -599,2 +599,14 @@ /* jshint asi:true */

QUnit.test("keys with undefined values should not be dropped (#118)", function() {
// handles new instances
var obj1 = { "keepMe": undefined };
var map = new Map(obj1);
// handles late props
map.attr('foo', undefined);
var keys = Map.keys(map);
QUnit.deepEqual(keys, ["keepMe", "foo"])
});
QUnit.test("Can assign nested properties that are not CanMaps", function(){

@@ -601,0 +613,0 @@ var MyType = function() {

2

can-map.js

@@ -380,3 +380,3 @@ "use strict";

if (value !== current) {
if ( value !== current || !Object.prototype.hasOwnProperty.call( this._data, prop ) ) {
var computedAttr = this._computedAttrs[prop];

@@ -383,0 +383,0 @@

{
"name": "can-map",
"version": "4.3.1",
"version": "4.3.3",
"description": "Observable Objects",

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

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