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

can-map

Package Overview
Dependencies
Maintainers
10
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 3.5.0 to 3.6.0

test/test.html

14

can-map_test.js

@@ -501,1 +501,15 @@ /* jshint asi:true */

});
QUnit.test(".serialize() leaves typed instances alone if _legacyAttrBehavior is true", function(){
function MyClass(value) {
this.value = value;
}
var myMap = new Map({
_legacyAttrBehavior: true,
myClass: new MyClass('foo')
});
var ser = myMap.serialize();
QUnit.equal(ser.myClass, myMap.attr("myClass"));
});

6

can-map.js

@@ -464,3 +464,7 @@ /* jshint -W079 */

___serialize: function(name, val){
return canReflect.serialize(val, CIDMap);
if(this._legacyAttrBehavior) {
return mapHelpers.getValue(this, name, val, "serialize");
} else {
return canReflect.serialize(val, CIDMap);
}
},

@@ -467,0 +471,0 @@

@@ -239,3 +239,7 @@ /*can-map@3.4.2#can-map*/

___serialize: function (name, val) {
return canReflect.serialize(val, CIDMap);
if (this._legacyAttrBehavior) {
return mapHelpers.getValue(this, name, val, 'serialize');
} else {
return canReflect.serialize(val, CIDMap);
}
},

@@ -242,0 +246,0 @@ _getAttrs: function () {

2

package.json
{
"name": "can-map",
"version": "3.5.0",
"version": "3.6.0",
"description": "Observable Objects",

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

Sorry, the diff of this file is too big to display

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