🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

immutable-class

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-class - npm Package Compare versions

Comparing version

to
0.6.42

2

build/named-array/named-array.d.ts

@@ -0,1 +1,2 @@

export declare type DiffAction = 'create' | 'update' | 'delete';
export interface Nameable {

@@ -27,2 +28,3 @@ name: string;

toJSON(): DiffJS;
getAction(): DiffAction;
getName(): string;

@@ -29,0 +31,0 @@ }

@@ -44,2 +44,10 @@ "use strict";

};
Diff.prototype.getAction = function () {
if (this.before) {
return this.after ? 'update' : 'delete';
}
else {
return 'create';
}
};
Diff.prototype.getName = function () {

@@ -46,0 +54,0 @@ return this.before ? this.before.name : this.after.name;

2

package.json
{
"name": "immutable-class",
"version": "0.6.41",
"version": "0.6.42",
"description": "A template for creating immutable classes",

@@ -5,0 +5,0 @@ "keywords": [