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

can-list

Package Overview
Dependencies
Maintainers
9
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 4.0.0-pre.8 to 4.0.0-pre.9

11

can-list_test.js

@@ -416,13 +416,2 @@ var List = require('can-list');

test('each callback', function () {
var list = new List([]),
counter = 0;
list.attr(9, 'foo');
list.each(function (item, index) {
counter++;
});
equal(counter, 1, 'Should not be invoked for uninitialized attr keys');
});
test('filter with context', function(){

@@ -429,0 +418,0 @@ var l = new List([{id: 1}]);

5

can-list.js

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

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

@@ -760,3 +760,3 @@ if(filtered){

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

@@ -861,4 +861,3 @@ filteredList.push(mapped);

List.prototype.each = List.prototype.forEach;
Map.List = List;
module.exports = namespace.List = List;

2

package.json
{
"name": "can-list",
"version": "4.0.0-pre.8",
"version": "4.0.0-pre.9",
"description": "Observable lists",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

Sorry, the diff of this file is not supported yet

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