New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-list

Package Overview
Dependencies
Maintainers
8
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-list - npm Package Compare versions

Comparing version 3.1.0-pre.9 to 3.1.0-pre.10

26

can-list_test.js

@@ -430,2 +430,28 @@ var List = require('can-list');

test('filter with context', function(){
var l = new List([{id: 1}]);
var context = {};
var contextWasCorrect = false;
l.filter(function(){
contextWasCorrect = (this === context);
return true;
}, context);
equal(contextWasCorrect, true, "context was correctly passed");
});
test('map with context', function(){
var l = new List([{id: 1}]);
var context = {};
var contextWasCorrect = false;
l.map(function(){
contextWasCorrect = (this === context);
return true;
}, context);
equal(contextWasCorrect, true, "context was correctly passed");
});
test("works with can-reflect", 11, function(){

@@ -432,0 +458,0 @@ var a = new Map({ foo: 4 });

4

can-list.js

@@ -941,3 +941,3 @@ /* jshint -W079 */

this.each(function(item, index, list){
filtered = callback.call( thisArg | self, item, index, self);
filtered = callback.call( thisArg || self, item, index, self);
if(filtered){

@@ -953,3 +953,3 @@ filteredList.push(item);

this.each(function(item, index, list){
var mapped = callback.call( thisArg | self, item, index, self);
var mapped = callback.call( thisArg || self, item, index, self);
filteredList.push(mapped);

@@ -956,0 +956,0 @@

{
"name": "can-list",
"version": "3.1.0-pre.9",
"version": "3.1.0-pre.10",
"description": "Observable lists",

@@ -49,3 +49,3 @@ "homepage": "http://canjs.com",

"can-types": "^1.0.1",
"can-util": "^3.1.1"
"can-util": "^3.2.2"
},

@@ -52,0 +52,0 @@ "devDependencies": {

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