Comparing version 4.3.1 to 4.3.3
@@ -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() { |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83253
1670
1