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

can-map

Package Overview
Dependencies
Maintainers
9
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.0.0 to 4.0.1

6

can-map_test.js

@@ -495,1 +495,7 @@ /* jshint asi:true */

});
QUnit.test("prototype properties", function(assert) {
var MyMap = Map.extend({ letters: "ABC" });
var map = new MyMap();
assert.equal(map.attr("letters"), "ABC");
});

8

can-map.js

@@ -104,6 +104,4 @@ /* jshint -W079 */

prop !== "constructor" &&
(
typeof this.prototype[prop] !== "function" && !canReflect.isValueLike(this.prototype[prop]) ||
this.prototype[prop].prototype instanceof Construct
)
(typeof this.prototype[prop] !== "function" ||
this.prototype[prop].prototype instanceof Construct)
) {

@@ -410,3 +408,3 @@ this.defaults[prop] = this.prototype[prop];

if ( computedAttr ) {
canReflect.setKeyValue(computedAttr.compute, val);
canReflect.setValue(computedAttr.compute, val);
} else {

@@ -413,0 +411,0 @@ this._data[prop] = val;

{
"name": "can-map",
"version": "4.0.0",
"version": "4.0.1",
"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