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

can-define

Package Overview
Dependencies
Maintainers
15
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-define - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

7

map/map-test.js

@@ -1377,1 +1377,8 @@ var QUnit = require("steal-qunit");

});
QUnit.test("ownKeys works on basic DefineMaps", function(){
var map = new DefineMap({ first: "Jane", last: "Doe" });
var keys = canReflect.getOwnKeys(map);
QUnit.equal(keys.length, 2, "There are 2 keys");
});

14

map/map.js

@@ -483,9 +483,11 @@ "use strict";

var keys = canReflect.getOwnEnumerableKeys(this);
var computedKeys = canReflect.getOwnKeys(this._computed);
if(this._computed) {
var computedKeys = canReflect.getOwnKeys(this._computed);
var key;
for (var i=0; i<computedKeys.length; i++) {
key = computedKeys[i];
if (keys.indexOf(key) < 0) {
keys.push(key);
var key;
for (var i=0; i<computedKeys.length; i++) {
key = computedKeys[i];
if (keys.indexOf(key) < 0) {
keys.push(key);
}
}

@@ -492,0 +494,0 @@ }

{
"name": "can-define",
"version": "2.3.4",
"version": "2.3.5",
"description": "Create observable objects with JS dot operator compatibility",

@@ -5,0 +5,0 @@ "main": "can-define.js",

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