🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

can-map

Package Overview
Dependencies
Maintainers
15
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

to
4.3.16

16

map-helpers.js

@@ -105,4 +105,4 @@ "use strict";

serializeMap[how][cid] = where;
// Go through each property.
map.forEach(function (val, name) {
function handleAttribute (val, name) {
// If the value is an `object`, and has an `attr` or `serialize` function.

@@ -127,3 +127,13 @@ var result,

}
});
}
// Go through each property.
map.forEach(handleAttribute);
// For legacy behavior, includes attrs whose can.define spec includes `serialize: false`
if (map._legacyAttrBehavior && how === "attr" && map.define) {
Object.keys(map.define).forEach(function (name) {
if (map.define[name].serialize === false) {
handleAttribute(map.attr(name), name);
}
});
}

@@ -130,0 +140,0 @@ if(firstSerialize) {

2

package.json
{
"name": "can-map",
"version": "4.3.15",
"version": "4.3.16",
"description": "Observable Objects",

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