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

lanurite

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lanurite - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

2

package.json

@@ -26,3 +26,3 @@ {

"typings": "src/lanurite.d.ts",
"version": "1.0.18",
"version": "1.0.19",
"license": "MIT",

@@ -29,0 +29,0 @@ "repository": {

@@ -9,10 +9,10 @@ import {baseModel} from "./model";

has(model: baseModel): boolean
getAll(): Array<T>
merge(collection: Array<T> | baseCollection): void
filter(predicate: any): Array<T>
map(predicate: any): Array<T>
getAll(): Array<any>
merge(collection: Array<any> | baseCollection): void
filter(predicate: any): Array<any>
map(predicate: any): Array<any>
reduce(predicate: any, accum: any): any
getById(id: string): baseModel | null
find(predicate: any, start: Number): baseModel | undefined
reset(array: Array<T>): void
reset(array: Array<any>): void
}

@@ -9,3 +9,3 @@ import {baseCollection} from "../base/collection";

constructor(array: Array<T> = []) {
constructor(array: Array<any> = []) {
super();

@@ -17,3 +17,3 @@ this._models = {};

_init(array: Array<T>) {
_init(array: Array<any>) {
array.forEach((object) => {

@@ -79,3 +79,3 @@ if (this._isModel(object)) {

find(predicate: any, startIndex: number = 0) {
find(predicate: any, startIndex: number = 0): baseModel | undefined {
return _.find(_.values(this._models), predicate, startIndex);

@@ -96,3 +96,3 @@ }

merge(collection: Array<T> | baseCollection) {
merge(collection: Array<any> | baseCollection) {
if (_.isArray(collection)) {

@@ -113,3 +113,3 @@ collection.forEach((object) => {

reset(array: Array<T> = []){
reset(array: Array<any> = []) {
Object.keys(this._models).forEach((key) => {

@@ -116,0 +116,0 @@ this._models[key]._unsetCollection();

{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"declaration": false,
"sourceMap": true

@@ -6,0 +6,0 @@ },

Sorry, the diff of this file is too big to display

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