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

destroyable

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

destroyable - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

2

dist/Destroyable.d.ts

@@ -12,3 +12,3 @@ import { IDestroyable } from './IDestroyable';

/**
* TODO: !!! isDestroyed
* Is this object destroyed?
*/

@@ -15,0 +15,0 @@ get isDestroyed(): boolean;

@@ -58,3 +58,3 @@ "use strict";

/**
* TODO: !!! isDestroyed
* Is this object destroyed?
*/

@@ -61,0 +61,0 @@ get: function () {

/**
* @collboard-modules-sdk
*/
export interface IRegisterItemsOptions<TType, TItem> {
export interface IRegisterItemsOptions<TBaseType, TItem> {
/**
* Base will be mutated in every call of registerItemsInWhateher functions and when the returned registration is destroyed
*/
base: TType;
base: TBaseType;
/**
* Add is array of items which will be added into base
*/
add: TType;
add: TBaseType;
/**

@@ -25,3 +25,2 @@ * This function will compare if two items either from base or add are equal.

collisionStrategy?: 'ERROR' | 'WARN' | 'SKIP' | 'OVERRIDE';
lllllTODO?: (item: TItem | TItem[]) => any;
}

@@ -28,0 +27,0 @@ /**

@@ -9,2 +9,2 @@ import { IRegisterItemsOptions } from './IRegisterItemsOptions';

*/
export declare function registerItemsInArray<TItem>({ base, add, isEqual, collisionStrategy, lllllTODO, }: IRegisterItemsOptions<TItem[], TItem>): Registration;
export declare function registerItemsInArray<TItem>({ base, add, isEqual, collisionStrategy, }: IRegisterItemsOptions<TItem[], TItem>): Registration;

@@ -13,3 +13,3 @@ "use strict";

function registerItemsInArray(_a) {
var base = _a.base, add = _a.add, isEqual = _a.isEqual, collisionStrategy = _a.collisionStrategy, lllllTODO = _a.lllllTODO;
var base = _a.base, add = _a.add, isEqual = _a.isEqual, collisionStrategy = _a.collisionStrategy;
isEqual = isEqual || (function (a, b) { return a === b; });

@@ -16,0 +16,0 @@ collisionStrategy = collisionStrategy || 'ERROR';

{
"name": "destroyable",
"version": "0.8.0",
"version": "0.9.0",
"description": "Multiple utilities that help to build destroyable objects in javascript",

@@ -5,0 +5,0 @@ "author": "Pavol Hejný <pavol@collboard.com> (https://pavolhejny.com)",

Sorry, the diff of this file is not supported yet

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