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

can-map

Package Overview
Dependencies
Maintainers
1
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.1.0-pre.6 to 3.1.0-pre.7

10

can-map_test.js

@@ -238,6 +238,12 @@ /* jshint asi:true */

test("map passed to Map constructor (#1166)", function(){
var map = new Map({x: 1});
function y() {}
var map = new Map({
x: 1,
y: y
});
var res = new Map(map);
deepEqual(res.attr(), {
x: 1
x: 1,
y: y
}, "has the same properties");

@@ -244,0 +250,0 @@ });

8

map-helpers.js

@@ -113,6 +113,6 @@ // # can/map/map_hepers

getValue: function(map, name, val, how){
if( canReflect.isMapLike(val) ) {
if(how === "attr") {
how = canSymbol.for("can.getValue");
}
if(how === "attr") {
how = canSymbol.for("can.getValue");
}
if( canReflect.isMapLike(val) && val[how] ) {
return val[how]();

@@ -119,0 +119,0 @@ } else {

{
"name": "can-map",
"version": "3.1.0-pre.6",
"version": "3.1.0-pre.7",
"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