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

collectionize

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collectionize - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

1

bower.json
{
"name": "collectionize",
"version": "0.3.1",
"main": "collectionize.js",

@@ -5,0 +4,0 @@ "license": "MIT",

23

collectionize.js
(function () {
var LODASH_METHODS = [
'at', 'every', 'filter', 'find', 'findIndex',
'findLastIndex', 'first', 'last', 'map', 'max', 'min',
'pluck', 'reduce', 'reduceRight', 'reject', 'sample',
'size', 'shuffle', 'some', 'sortBy', 'where'
];
var isBrowser = typeof window !== 'undefined';

@@ -82,14 +89,10 @@ var isNode = typeof module !== 'undefined' && module.exports;

function Collectionize(name) {
var self = {
db: [],
listeners: [],
name: name // used for localStorage property naming
};
function Collectionize(name, self) {
self = self || {};
var lodashMethods = ['at', 'every', 'filter', 'find', 'findIndex',
'findLastIndex', 'first', 'last', 'map', 'max', 'min', 'pluck', 'reduce',
'reduceRight', 'reject', 'sample', 'size', 'shuffle', 'some', 'sortBy', 'where'];
self.db = [];
self.listeners = [];
self.name = name; // Used for localStorage property naming.
nativeEach(lodashMethods, function (methodName) {
nativeEach(LODASH_METHODS, function (methodName) {
self[methodName] = function () {

@@ -96,0 +99,0 @@ var args = _.toArray(arguments);

{
"name": "collectionize",
"description": "A lightweight JS model/collection library.",
"version": "0.3.1",
"version": "0.3.2",
"repository": "https://github.com/andrewchilds/collectionize.git",

@@ -6,0 +6,0 @@ "author": {

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