object-path-immutable
Advanced tools
Comparing version 3.0.0 to 3.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36362
1012