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

@thi.ng/paths

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/paths - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

1

api.d.ts

@@ -11,1 +11,2 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7 } from "@thi.ng/api";

export declare type UpdateFn<T> = (curr: T, ...args: any[]) => T;
//# sourceMappingURL=api.d.ts.map

@@ -6,2 +6,10 @@ # Change Log

## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@3.0.0...@thi.ng/paths@3.0.1) (2020-01-24)
**Note:** Version bump only for package @thi.ng/paths
# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@2.1.6...@thi.ng/paths@3.0.0) (2019-11-30)

@@ -8,0 +16,0 @@

9

delete-in.d.ts

@@ -12,4 +12,4 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Without, Without2, Without3, Without4, Without5, Without6, Without7, Without8 } from "@thi.ng/api";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -20,4 +20,4 @@ export declare const deleteIn: (state: any, path: Path) => Pick<any, never>;

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -32,1 +32,2 @@ export declare function deleteInT<T, A extends Keys<T>>(state: T, path: [A]): Without<T, A>;

export declare function deleteInT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(state: T, path: [A, B, C, D, E, F, G, H]): Without8<T, A, B, C, D, E, F, G, H>;
//# sourceMappingURL=delete-in.d.ts.map

@@ -13,4 +13,4 @@ import { toPath } from "./path";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -17,0 +17,0 @@ export const deleteIn = (state, path) => deleteInT(state, path);

@@ -20,4 +20,4 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -28,4 +28,4 @@ export declare const getIn: (state: any, path: Path) => any;

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -42,1 +42,2 @@ export declare function getInT<T>(state: T, path: []): T;

export declare function getInT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(state: T, path: [A, B, C, D, E, F, G, H, ...any[]]): any;
//# sourceMappingURL=get-in.d.ts.map

@@ -20,4 +20,4 @@ import { getterT } from "./getter";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -24,0 +24,0 @@ export const getIn = (state, path) => getterT(path)(state);

@@ -42,3 +42,3 @@ import { Fn, Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param path
* @param path -
*/

@@ -49,3 +49,3 @@ export declare const getter: (path: Path) => Fn<any, any>;

*
* @param path
* @param path -
*/

@@ -62,1 +62,2 @@ export declare function getterT<T>(path: []): Fn<T, T>;

export declare function getterT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(path: [A, B, C, D, E, F, G, H, ...any[]]): Fn<T, any>;
//# sourceMappingURL=getter.d.ts.map

@@ -42,3 +42,3 @@ import { toPath } from "./path";

*
* @param path
* @param path -
*/

@@ -45,0 +45,0 @@ export const getter = (path) => getterT(path);

@@ -14,1 +14,2 @@ export * from "./api";

export * from "./update-in";
//# sourceMappingURL=index.d.ts.map

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/checks"),require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/checks","@thi.ng/errors"],t):t(((e=e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.paths={}),e.thi.ng.checks,e.thi.ng.errors)}(this,(function(e,t,n){"use strict";const r=e=>t.isArray(e)?e:t.isString(e)?e.length>0?e.split("."):[]:null!=e?[e]:[];function u(e){const t=r(e);let[n,u,l,s]=t;switch(t.length){case 0:return e=>e;case 1:return e=>null!=e?e[n]:void 0;case 2:return e=>null!=e&&null!=(e=e[n])?e[u]:void 0;case 3:return e=>null!=e&&null!=(e=e[n])&&null!=(e=e[u])?e[l]:void 0;case 4:return e=>null!=e&&null!=(e=e[n])&&null!=(e=e[u])&&null!=(e=e[l])?e[s]:void 0;default:return e=>{const n=t.length-1;let r=e;for(let e=0;null!=r&&e<=n;e++)r=r[t[e]];return r}}}function l(e){const t=r(e);let[n,u,l,o]=t;switch(t.length){case 0:return(e,t)=>t;case 1:return(e,t)=>(e=s(e),e[n]=t,e);case 2:return(e,t)=>{let r;return(e=s(e))[n]=r=s(e[n]),r[u]=t,e};case 3:return(e,t)=>{let r,i;return(e=s(e))[n]=r=s(e[n]),r[u]=i=s(r[u]),i[l]=t,e};case 4:return(e,t)=>{let r,i,c;return(e=s(e))[n]=r=s(e[n]),r[u]=i=s(r[u]),i[l]=c=s(i[l]),c[o]=t,e};default:let e;for(let n=t.length;--n>=0;)e=i(t[n],e);return e}}const s=e=>t.isArray(e)?e.slice():Object.assign({},e),i=(e,t)=>(n,r)=>(n=s(n),n[e]=t?t(n[e],r):r,n);function o(e,t,n,...r){return l(t)(e,n.apply(null,(r.unshift(u(t)(e)),r)))}function c(e,t){const n=[...r(t)];if(n.length>0){const t=n.pop();return o(e,n,e=>(e=Object.assign({},e),delete e[t],e))}}function a(e){const t=r(e);let[n,u,l,s]=t;switch(t.length){case 0:return(e,t)=>t;case 1:return(e,t)=>e?(e[n]=t,e):void 0;case 2:return(e,t)=>{let r;return e&&(r=e[n])?(r[u]=t,e):void 0};case 3:return(e,t)=>{let r;return e&&(r=e[n])&&(r=r[u])?(r[l]=t,e):void 0};case 4:return(e,t)=>{let r;return e&&(r=e[n])&&(r=r[u])&&(r=r[l])?(r[s]=t,e):void 0};default:return(e,n)=>{let r=e;const u=t.length-1;for(let e=0;e<u;e++)if(!(r=r[t[e]]))return;return r[t[u]]=n,e}}}function f(e,t,n){return a(t)(e,n)}function g(e,t,n){return l(t)(e,n)}function h(e,t){const n=u(e),r=l(e);return(e,...u)=>r(e,t.apply(null,(u.unshift(n(e)),u)))}e.deleteIn=(e,t)=>c(e,t),e.deleteInT=c,e.exists=(e,t)=>{if(null==e)return!1;for(let n=(t=r(t)).length-1,u=0;u<=n;u++){const r=t[u];if(!e.hasOwnProperty(r))return!1;if(null==(e=e[r])&&u<n)return!1}return!0},e.getIn=(e,t)=>u(t)(e),e.getInT=function(e,t){return u(t)(e)},e.getter=e=>u(e),e.getterT=u,e.mutIn=(e,t,n)=>f(e,t,n),e.mutInMany=(e,...t)=>{const r=t.length;1&r&&n.illegalArgs(`require even number of args (got ${t.length})`);for(let n=0;n<r&&e;n+=2)e=f(e,t[n],t[n+1]);return e},e.mutInT=f,e.mutator=e=>a(e),e.mutatorT=a,e.setIn=(e,t,n)=>l(t)(e,n),e.setInMany=(e,...t)=>{const r=t.length;1&r&&n.illegalArgs(`require even number of KV args (got ${t.length})`);for(let n=0;n<r;n+=2)e=g(e,t[n],t[n+1]);return e},e.setInT=g,e.setter=e=>l(e),e.setterT=l,e.toPath=r,e.updateIn=(e,t,n,...r)=>o(e,t,n,...r),e.updateInT=o,e.updater=(e,t)=>h(e,t),e.updaterT=h,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/checks"),require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/checks","@thi.ng/errors"],t):t(((e=e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.paths={}),e.thi.ng.checks,e.thi.ng.errors)}(this,(function(e,t,n){"use strict";const r=e=>t.isArray(e)?e:t.isString(e)?e.length>0?e.split("."):[]:null!=e?[e]:[];function u(e){const t=r(e);let[n,u,l,s]=t;switch(t.length){case 0:return e=>e;case 1:return e=>null!=e?e[n]:void 0;case 2:return e=>null!=e&&null!=(e=e[n])?e[u]:void 0;case 3:return e=>null!=e&&null!=(e=e[n])&&null!=(e=e[u])?e[l]:void 0;case 4:return e=>null!=e&&null!=(e=e[n])&&null!=(e=e[u])&&null!=(e=e[l])?e[s]:void 0;default:return e=>{const n=t.length-1;let r=e;for(let e=0;null!=r&&e<=n;e++)r=r[t[e]];return r}}}function l(e){const t=r(e);let[n,u,l,o]=t;switch(t.length){case 0:return(e,t)=>t;case 1:return(e,t)=>((e=s(e))[n]=t,e);case 2:return(e,t)=>{let r;return(e=s(e))[n]=r=s(e[n]),r[u]=t,e};case 3:return(e,t)=>{let r,i;return(e=s(e))[n]=r=s(e[n]),r[u]=i=s(r[u]),i[l]=t,e};case 4:return(e,t)=>{let r,i,c;return(e=s(e))[n]=r=s(e[n]),r[u]=i=s(r[u]),i[l]=c=s(i[l]),c[o]=t,e};default:let e;for(let n=t.length;--n>=0;)e=i(t[n],e);return e}}const s=e=>t.isArray(e)?e.slice():Object.assign({},e),i=(e,t)=>(n,r)=>((n=s(n))[e]=t?t(n[e],r):r,n);function o(e,t,n,...r){return l(t)(e,n.apply(null,(r.unshift(u(t)(e)),r)))}function c(e,t){const n=[...r(t)];if(n.length>0){const t=n.pop();return o(e,n,e=>(delete(e=Object.assign({},e))[t],e))}}function a(e){const t=r(e);let[n,u,l,s]=t;switch(t.length){case 0:return(e,t)=>t;case 1:return(e,t)=>e?(e[n]=t,e):void 0;case 2:return(e,t)=>{let r;return e&&(r=e[n])?(r[u]=t,e):void 0};case 3:return(e,t)=>{let r;return e&&(r=e[n])&&(r=r[u])?(r[l]=t,e):void 0};case 4:return(e,t)=>{let r;return e&&(r=e[n])&&(r=r[u])&&(r=r[l])?(r[s]=t,e):void 0};default:return(e,n)=>{let r=e;const u=t.length-1;for(let e=0;e<u;e++)if(!(r=r[t[e]]))return;return r[t[u]]=n,e}}}function f(e,t,n){return a(t)(e,n)}function g(e,t,n){return l(t)(e,n)}function h(e,t){const n=u(e),r=l(e);return(e,...u)=>r(e,t.apply(null,(u.unshift(n(e)),u)))}e.deleteIn=(e,t)=>c(e,t),e.deleteInT=c,e.exists=(e,t)=>{if(null==e)return!1;for(let n=(t=r(t)).length-1,u=0;u<=n;u++){const r=t[u];if(!e.hasOwnProperty(r))return!1;if(null==(e=e[r])&&u<n)return!1}return!0},e.getIn=(e,t)=>u(t)(e),e.getInT=function(e,t){return u(t)(e)},e.getter=e=>u(e),e.getterT=u,e.mutIn=(e,t,n)=>f(e,t,n),e.mutInMany=(e,...t)=>{const r=t.length;1&r&&n.illegalArgs(`require even number of args (got ${t.length})`);for(let n=0;n<r&&e;n+=2)e=f(e,t[n],t[n+1]);return e},e.mutInT=f,e.mutator=e=>a(e),e.mutatorT=a,e.setIn=(e,t,n)=>l(t)(e,n),e.setInMany=(e,...t)=>{const r=t.length;1&r&&n.illegalArgs(`require even number of KV args (got ${t.length})`);for(let n=0;n<r;n+=2)e=g(e,t[n],t[n+1]);return e},e.setInT=g,e.setter=e=>l(e),e.setterT=l,e.toPath=r,e.updateIn=(e,t,n,...r)=>o(e,t,n,...r),e.updateInT=o,e.updater=(e,t)=>h(e,t),e.updaterT=h,Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -20,5 +20,6 @@ /**

*
* @param state
* @param pairs
* @param state -
* @param pairs -
*/
export declare const mutInMany: (state: any, ...pairs: any[]) => any;
//# sourceMappingURL=mut-in-many.d.ts.map

@@ -22,4 +22,4 @@ import { illegalArgs } from "@thi.ng/errors";

*
* @param state
* @param pairs
* @param state -
* @param pairs -
*/

@@ -26,0 +26,0 @@ export const mutInMany = (state, ...pairs) => {

@@ -27,5 +27,5 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param state
* @param path
* @param val
* @param state -
* @param path -
* @param val -
*/

@@ -36,5 +36,5 @@ export declare const mutIn: (state: any, path: Path, val: any) => any;

*
* @param state
* @param path
* @param val
* @param state -
* @param path -
* @param val -
*/

@@ -51,1 +51,2 @@ export declare function mutInT<T>(state: T, path: [], val: T): T;

export declare function mutInT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(state: T, path: [A, B, C, D, E, F, G, H, ...PropertyKey[]], val: any): any;
//# sourceMappingURL=mut-in.d.ts.map

@@ -27,5 +27,5 @@ import { mutatorT } from "./mutator";

*
* @param state
* @param path
* @param val
* @param state -
* @param path -
* @param val -
*/

@@ -32,0 +32,0 @@ export const mutIn = (state, path, val) => mutInT(state, path, val);

@@ -14,3 +14,3 @@ import { Fn2, Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param path
* @param path -
*/

@@ -21,3 +21,3 @@ export declare const mutator: (path: Path) => Fn2<any, any, any>;

*
* @param path
* @param path -
*/

@@ -34,1 +34,2 @@ export declare function mutatorT<T>(path: []): Fn2<T, T, T>;

export declare function mutatorT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(path: [A, B, C, D, E, F, G, H, ...PropertyKey[]]): Fn2<T, any, any>;
//# sourceMappingURL=mutator.d.ts.map

@@ -14,3 +14,3 @@ import { toPath } from "./path";

*
* @param path
* @param path -
*/

@@ -17,0 +17,0 @@ export const mutator = (path) => mutatorT(path);

{
"name": "@thi.ng/paths",
"version": "3.0.0",
"version": "3.0.1",
"description": "Immutable, optimized and optionally typed path-based object property / array accessors with structural sharing",

@@ -26,17 +26,19 @@ "module": "./index.js",

"doc": "node_modules/.bin/typedoc --mode modules --out doc src",
"doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
"pub": "yarn build:release && yarn publish --access public"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/mocha": "^5.2.6",
"@types/node": "^12.12.11",
"mocha": "^6.2.2",
"nyc": "^14.0.0",
"ts-node": "^8.5.2",
"typedoc": "^0.15.2",
"typescript": "^3.7.2"
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@microsoft/api-extractor": "^7.7.7",
"@types/mocha": "^5.2.7",
"@types/node": "^13.5.0",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
"ts-node": "^8.6.2",
"typedoc": "^0.16.8",
"typescript": "^3.7.5"
},
"dependencies": {
"@thi.ng/checks": "^2.4.2",
"@thi.ng/errors": "^1.2.2"
"@thi.ng/checks": "^2.5.0",
"@thi.ng/errors": "^1.2.3"
},

@@ -66,3 +68,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "36c4d9e967bd80ccdbfa0f4a42f594080f95f105"
"gitHead": "93d8af817724c1c5b06d80ffa2492fe5b4fb7bc4"
}

@@ -16,3 +16,3 @@ import { Path } from "@thi.ng/api";

*
* @param path
* @param path -
*/

@@ -26,5 +26,6 @@ export declare const toPath: (path: Path) => (string | number | symbol)[];

*
* @param obj
* @param path
* @param obj -
* @param path -
*/
export declare const exists: (obj: any, path: Path) => boolean;
//# sourceMappingURL=path.d.ts.map

@@ -16,3 +16,3 @@ import { isArray, isString } from "@thi.ng/checks";

*
* @param path
* @param path -
*/

@@ -34,4 +34,4 @@ export const toPath = (path) => isArray(path)

*
* @param obj
* @param path
* @param obj -
* @param path -
*/

@@ -38,0 +38,0 @@ export const exists = (obj, path) => {

@@ -40,6 +40,8 @@ <!-- This file is generated - DO NOT EDIT! -->

Package sizes (gzipped): ESM: 1.0KB / CJS: 1.1KB / UMD: 1.1KB
## Dependencies
- [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/master/packages/checks)
- [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/master/packages/errors)
- [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
- [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)

@@ -49,3 +51,3 @@ ## Usage examples

Several demos in this repo's
[/examples](https://github.com/thi-ng/umbrella/tree/master/examples)
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
directory are using this package.

@@ -55,21 +57,27 @@

### hdom-elm <!-- NOTOC -->
Using hdom in an Elm-like manner
[Live demo](https://demo.thi.ng/umbrella/hdom-elm/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/hdom-elm)
### interceptor-basics2 <!-- NOTOC -->
[Live demo](https://demo.thi.ng/umbrella/interceptor-basics2/) | [Source](https://github.com/thi-ng/umbrella/tree/master/examples/interceptor-basics2)
[Live demo](https://demo.thi.ng/umbrella/interceptor-basics2/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/interceptor-basics2)
### rstream-event-loop <!-- NOTOC -->
![screenshot](https://raw.githubusercontent.com/thi-ng/umbrella/master/assets/examples/rstream-event-loop.png)
![screenshot](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rstream-event-loop.png)
Minimal demo of using rstream constructs to form an interceptor-style event loop
[Live demo](https://demo.thi.ng/umbrella/rstream-event-loop/) | [Source](https://github.com/thi-ng/umbrella/tree/master/examples/rstream-event-loop)
[Live demo](https://demo.thi.ng/umbrella/rstream-event-loop/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rstream-event-loop)
### todo-list <!-- NOTOC -->
[Live demo](https://demo.thi.ng/umbrella/todo-list/) | [Source](https://github.com/thi-ng/umbrella/tree/master/examples/todo-list)
[Live demo](https://demo.thi.ng/umbrella/todo-list/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/todo-list)
### triple-query <!-- NOTOC -->
[Live demo](https://demo.thi.ng/umbrella/triple-query/) | [Source](https://github.com/thi-ng/umbrella/tree/master/examples/triple-query)
[Live demo](https://demo.thi.ng/umbrella/triple-query/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/triple-query)

@@ -283,2 +291,2 @@ ## API

&copy; 2016 - 2019 Karsten Schmidt // Apache Software License 2.0
&copy; 2016 - 2020 Karsten Schmidt // Apache Software License 2.0

@@ -30,2 +30,4 @@ # ${pkg.name}

${pkg.size}
## Dependencies

@@ -32,0 +34,0 @@

@@ -17,5 +17,6 @@ /**

*
* @param state
* @param pairs
* @param state -
* @param pairs -
*/
export declare const setInMany: (state: any, ...pairs: any[]) => any;
//# sourceMappingURL=set-in-many.d.ts.map

@@ -19,4 +19,4 @@ import { illegalArgs } from "@thi.ng/errors";

*
* @param state
* @param pairs
* @param state -
* @param pairs -
*/

@@ -23,0 +23,0 @@ export const setInMany = (state, ...pairs) => {

@@ -16,4 +16,4 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -24,5 +24,5 @@ export declare const setIn: (state: any, path: Path, val: any) => any;

*
* @param state
* @param path
* @param val
* @param state -
* @param path -
* @param val -
*/

@@ -39,1 +39,2 @@ export declare function setInT<T>(state: T, path: [], val: T): T;

export declare function setInT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(state: T, path: [A, B, C, D, E, F, G, H, ...PropertyKey[]], val: any): any;
//# sourceMappingURL=set-in.d.ts.map

@@ -16,4 +16,4 @@ import { setterT } from "./setter";

*
* @param state
* @param path
* @param state -
* @param path -
*/

@@ -20,0 +20,0 @@ export const setIn = (state, path, val) => setterT(path)(state, val);

@@ -57,3 +57,3 @@ import { Fn2, Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param path
* @param path -
*/

@@ -64,3 +64,3 @@ export declare const setter: (path: Path) => Fn2<any, any, any>;

*
* @param path
* @param path -
*/

@@ -77,1 +77,2 @@ export declare function setterT<T>(path: []): Fn2<T, T, T>;

export declare function setterT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(path: [A, B, C, D, E, F, G, H, ...PropertyKey[]]): Fn2<T, any, any>;
//# sourceMappingURL=setter.d.ts.map

@@ -58,3 +58,3 @@ import { isArray } from "@thi.ng/checks";

*
* @param path
* @param path -
*/

@@ -61,0 +61,0 @@ export const setter = (path) => setterT(path);

@@ -24,5 +24,5 @@ import { Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param state
* @param path
* @param fn
* @param state -
* @param path -
* @param fn -
*/

@@ -39,1 +39,2 @@ export declare function updateInT<T>(state: T, path: [], fn: UpdateFn<T>): T;

export declare function updateInT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(state: T, path: [A, B, C, D, E, F, G, H, ...PropertyKey[]], fn: UpdateFn<any>, ...args: any[]): T;
//# sourceMappingURL=update-in.d.ts.map

@@ -20,4 +20,4 @@ import { FnO, Keys, Keys1, Keys2, Keys3, Keys4, Keys5, Keys6, Keys7, Path, Val1, Val2, Val3, Val4, Val5, Val6, Val7, Val8 } from "@thi.ng/api";

*
* @param path
* @param fn
* @param path -
* @param fn -
*/

@@ -28,4 +28,4 @@ export declare const updater: (path: Path, fn: UpdateFn<any>) => FnO<any, any>;

*
* @param path
* @param fn
* @param path -
* @param fn -
*/

@@ -42,1 +42,2 @@ export declare function updaterT<T>(path: [], fn: UpdateFn<T>): FnO<T, T>;

export declare function updaterT<T, A extends Keys<T>, B extends Keys1<T, A>, C extends Keys2<T, A, B>, D extends Keys3<T, A, B, C>, E extends Keys4<T, A, B, C, D>, F extends Keys5<T, A, B, C, D, E>, G extends Keys6<T, A, B, C, D, E, F>, H extends Keys7<T, A, B, C, D, E, F, G>>(path: [A, B, C, D, E, F, G, H, ...PropertyKey[]], fn: UpdateFn<any>): FnO<T, T>;
//# sourceMappingURL=updater.d.ts.map

@@ -20,4 +20,4 @@ import { getterT } from "./getter";

*
* @param path
* @param fn
* @param path -
* @param fn -
*/

@@ -24,0 +24,0 @@ export const updater = (path, fn) => updaterT(path, fn);

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