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

can-map-define

Package Overview
Dependencies
Maintainers
10
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-map-define - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

11

can-map-define_test.js

@@ -1524,2 +1524,6 @@ /* jshint asi: false */

}
},
parentFunction: function() {
return "parentFunction return value";
}

@@ -1541,2 +1545,6 @@ });

}
},
aFunction: function() {
return "aFunction return value";
}

@@ -1556,4 +1564,7 @@ });

equal(canReflect.hasKey(vm, "aFunction"), true, "vm.hasKey('aFunction') true");
equal(canReflect.hasKey(vm, "parentFunction"), true, "vm.hasKey('parentFunction') true");
vm.attr('lateProp', 'something');
equal(canReflect.hasKey(vm, "lateProp"), true, "vm.hasKey('lateProp') true");
});

5

can-map-define.js

@@ -374,4 +374,5 @@ var dev = require('can-util/js/dev/dev');

var defined = this.define && key in this.define;
var exists = this._data && key in this._data;
return defined || exists;
var dataExists = this._data && key in this._data;
var propExists = key in this;
return defined || dataExists || propExists;
}

@@ -378,0 +379,0 @@ });

2

package.json
{
"name": "can-map-define",
"version": "4.1.0",
"version": "4.1.1",
"description": "Define rich attribute behavior",

@@ -5,0 +5,0 @@ "homepage": "https://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