Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.6.41 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": [

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