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

@insertish/mutable

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@insertish/mutable - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

1

dist/index.d.ts

@@ -21,2 +21,3 @@ import { Collection } from '@insertish/zangodb';

setOverride(state: T): void;
removeField(id: string, ...path: string[]): void;
patch(id: string, state: Partial<T>): void;

@@ -23,0 +24,0 @@ delete(_id: string): void;

@@ -86,2 +86,13 @@ "use strict";

}
removeField(id, ...path) {
let existing = this.getMutable(id), i = 0;
while (existing && i < path.length - 1) {
existing = existing[path[i]];
i++;
}
if (existing) {
delete existing[path[path.length - 1]];
}
this.emit('update', id);
}
patch(id, state) {

@@ -88,0 +99,0 @@ let item = this.map[id];

2

package.json
{
"name": "@insertish/mutable",
"version": "1.0.5",
"version": "1.0.6",
"description": "Mutable object utilities.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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