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

object-path-immutable

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-path-immutable - npm Package Compare versions

Comparing version 3.0.0 to 3.0.2

4

object-path-immutable.d.ts

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

type Path = string | string[]
type Path = string | ReadonlyArray<string>;

@@ -9,2 +9,3 @@ interface WrappedObject<T> {

update(path?: Path, updater?: (formerValue: any) => any): WrappedObject<T>
insert(path?: Path, value?: any, index?: number): WrappedObject<T>
value(): T

@@ -20,2 +21,3 @@ }

update<T = object>(src: T, path?: Path, updater?: (formerValue: any) => any): WrappedObject<T>
insert<T = object>(src: T, path?: Path, value?: any, index?: number): T
}

@@ -22,0 +24,0 @@

{
"name": "object-path-immutable",
"version": "3.0.0",
"version": "3.0.2",
"description": "Modify deep object properties without modifying the original object (immutability). Works great with React and Redux.",

@@ -27,5 +27,5 @@ "author": "Mario Casciaro <m@mario.fyi>",

"chai": "^3.5.0",
"coveralls": "^2.11.14",
"coveralls": "^3.0.3",
"istanbul": "^0.4.5",
"mocha": "^3.1.1",
"mocha": "^6.0.2",
"mocha-lcov-reporter": "^1.2.0",

@@ -32,0 +32,0 @@ "rollup": "^0.61.1",

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