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

ts-toolbelt

Package Overview
Dependencies
Maintainers
1
Versions
916
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-toolbelt - npm Package Compare versions

Comparing version 9.5.12 to 9.5.13-test.1615391047592

37

CHANGELOG.md

@@ -5,2 +5,39 @@ # Changelog

### [9.5.13](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.13) (2021-03-10)
### Bug Fixes
* **f.autopath:** distribute ([29eddd9](https://github.com/millsp/ts-toolbelt/commit/29eddd99c6826696941c50681ce4858243786110))
* **f.autopath:** do not show primitive props ([1ad2638](https://github.com/millsp/ts-toolbelt/commit/1ad26389aa6a9a795d19d90d2724c73ae2bd51d9))
* **f.autopath:** no primitve paths ([2bdb477](https://github.com/millsp/ts-toolbelt/commit/2bdb4778325288154c8f71c0a5ae4a1b7e2b217f))
* **f.narrow:** fix variance and array inference ([4c7618d](https://github.com/millsp/ts-toolbelt/commit/4c7618d77b07d6b8c6dfd5087aa85a073bf57db3))
* **f.narrow:** higher order function support ([dad05ee](https://github.com/millsp/ts-toolbelt/commit/dad05eec6e6710ea4f63063658a3dee4d9c0ca28))
* **f.narrow:** preserve fns and better display ([a0d62d8](https://github.com/millsp/ts-toolbelt/commit/a0d62d8cfcd28eab7132c225ba187556ca749b4d))
* **f.narrow:** preserve functions ([c34f1b9](https://github.com/millsp/ts-toolbelt/commit/c34f1b95d0e0855203104eb696cfcb8221a65374))
* **f.narrow:** revert variance fixes ([12e014a](https://github.com/millsp/ts-toolbelt/commit/12e014a3f3d34047a3722486a73493f857a3697a))
* **f.narrow:** variance ([866ecd7](https://github.com/millsp/ts-toolbelt/commit/866ecd76744fc38244d85e7ef7b4bb90105cf7eb))
* **fn:** allow for curried in compose ([2bc5604](https://github.com/millsp/ts-toolbelt/commit/2bc560446916b423977c25e396b4f1f310b6c03f))
* **o.paths:** dive within arrays and deeper ([626beb6](https://github.com/millsp/ts-toolbelt/commit/626beb61b3100c5e4fd699c946e0e2fed7e24cb6))
### Others
* **list:** more flexible keys ([d9415b2](https://github.com/millsp/ts-toolbelt/commit/d9415b2f85633c7c74a815c9909899114faf530c))
* **o.p:** re-implement ([0f44362](https://github.com/millsp/ts-toolbelt/commit/0f443626dc3b114b6784d2053510a1e0c2f7f839))
* **release:** 9.5.10 ([1f3928a](https://github.com/millsp/ts-toolbelt/commit/1f3928a70ff2a7e903a5398b53295c9c9997b42c))
* **release:** 9.5.11 ([bde9210](https://github.com/millsp/ts-toolbelt/commit/bde9210d0a361ddb1e03920a0c2bd42dad17ee30))
* **release:** 9.5.12 ([80579e1](https://github.com/millsp/ts-toolbelt/commit/80579e1eaa17b2d1c61bd7881d0ea6ff94753141))
* **release:** 9.5.2 ([ec4a953](https://github.com/millsp/ts-toolbelt/commit/ec4a953cabe6c4d704c0dca5f37d1dc630de047b))
* **release:** 9.5.3 ([0836f6e](https://github.com/millsp/ts-toolbelt/commit/0836f6e8187287a0c86f249e4e552d68a44e4f60))
* **release:** 9.5.4 ([855855e](https://github.com/millsp/ts-toolbelt/commit/855855e520ed4a04059f9d61884d2045dd0d751b))
* **release:** 9.5.5 ([e28bddf](https://github.com/millsp/ts-toolbelt/commit/e28bddf33066850a764e2ba344883ff84da561b9))
* **release:** 9.5.6 ([b8e0d0a](https://github.com/millsp/ts-toolbelt/commit/b8e0d0a83228baf666e00f4fdb0d99ca936c133f))
* **release:** 9.5.7 ([5646455](https://github.com/millsp/ts-toolbelt/commit/564645547862c7d698f4a03b15ccb7a5ffb5fc29))
* **release:** 9.5.8 ([bceb8be](https://github.com/millsp/ts-toolbelt/commit/bceb8be67701f9c7aba9608aed851567e8118ca5))
* **release:** 9.5.9 ([533a6ac](https://github.com/millsp/ts-toolbelt/commit/533a6ac0f7b713933c94f0962166c7a0245b055e))
* **string:** instantiation limiters ([9a678d8](https://github.com/millsp/ts-toolbelt/commit/9a678d8a400c97436d428dad05405abb154af958))
* **update:** remove dirty code ([9d0ff64](https://github.com/millsp/ts-toolbelt/commit/9d0ff6441518c2c9a01cea7726c08acd19eb37d9))
* cleanup ([6f23f2e](https://github.com/millsp/ts-toolbelt/commit/6f23f2ec79145a0545eb45d15d50d0363a119b12))
### [9.5.12](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.12) (2021-03-10)

@@ -7,0 +44,0 @@

2

out/List/ObjectOf.d.ts

@@ -13,2 +13,2 @@ import { _Omit } from '../Object/Omit';

*/
export declare type ObjectOf<O extends List> = O extends List ? number extends Length<O> ? _Pick<O, number> : _Omit<O, keyof any[]> : O;
export declare type ObjectOf<O extends List> = O extends unknown ? number extends Length<O> ? _Pick<O, number> : _Omit<O, keyof any[]> : never;

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

import { OptionalFlat } from '../Object/Optional';
import { Key } from '../Any/Key';

@@ -6,24 +5,18 @@ import { NonNullableFlat } from '../Object/NonNullable';

import { List } from '../List/List';
import { Append } from '../List/Append';
import { BuiltIn } from '../Misc/BuiltIn';
import { Primitive } from '../Misc/Primitive';
import { Length } from '../List/Length';
import { Keys } from '../Any/Keys';
/**
* @hidden
*/
declare type __Paths<O, Paths extends List<Key> = []> = Length<Paths> extends 10 ? Paths : {
0: {
[K in keyof O]: __Paths<O[K], Append<Paths, K>>;
}[keyof O];
1: {
[K in keyof O]: __Paths<O[K], Append<Paths, K>>;
}[keyof O & number];
2: NonNullableFlat<OptionalFlat<Paths>>;
}[[
keyof O
] extends [never] ? 2 : O extends BuiltIn | Primitive ? 2 : O extends ReadonlyArray<any> ? 1 : 0];
declare type UnionOf<A> = A extends List ? A[number] : A[keyof A];
/**
* @hidden
*/
export declare type _Paths<O extends object> = __Paths<O> extends infer X ? Cast<X, List<Key>> : never;
declare type _Paths<O, P extends List = []> = UnionOf<{
[K in keyof O]: O[K] extends BuiltIn | Primitive ? NonNullableFlat<[...P, K?]> : [
Keys<O[K]>
] extends [never] ? NonNullableFlat<[...P, K?]> : 12 extends Length<P> ? NonNullableFlat<[...P, K?]> : _Paths<O[K], [...P, K?]>;
}>;
/**

@@ -38,3 +31,3 @@ * Get all the possible paths of `O`

*/
export declare type Paths<O extends object> = O extends unknown ? _Paths<O> : never;
export declare type Paths<O, P extends List = []> = _Paths<O, P> extends infer X ? Cast<X, List<Key>> : never;
export {};

@@ -1,9 +0,8 @@

import { Tail } from '../List/Tail';
import { List } from '../List/List';
import { Literal } from './_Internal';
import { Length } from '../List/Length';
import { Cast } from '../Any/Cast';
/**
* @hidden
*/
declare type _Join<T extends List<Literal>, D extends string, S extends string = ''> = T extends [Literal] ? `${S}${T[0]}` : _Join<Tail<T>, D, `${S}${T[0]}${D}`>;
declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? `${T[0]}` : T extends [Literal, ...infer R] ? `${T[0]}${D}${_Join<R, D>}` : string;
/**

@@ -14,3 +13,3 @@ * Concat many literals together

*/
export declare type Join<T extends List<Literal>, D extends string = ''> = T extends [] ? '' : number extends Length<T> ? string : _Join<T, D>;
export declare type Join<T extends List<Literal>, D extends string = ''> = _Join<T, D> extends infer X ? Cast<X, string> : never;
export {};

@@ -0,3 +1,8 @@

import { Cast } from '../Any/Cast';
import { Literal } from './_Internal';
/**
* @hidden
*/
declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends `${infer BS}${R}${infer AS}` ? Replace<`${BS}${W}${AS}`, R, W> : S;
/**
* Replace `R` with `W` in `S`

@@ -8,2 +13,3 @@ * @param S

*/
export declare type Replace<S extends string, R extends Literal, W extends Literal> = S extends `${infer BS}${R}${infer AS}` ? Replace<`${BS}${W}${AS}`, R, W> : S;
export declare type Replace<S extends string, R extends Literal, W extends Literal> = _Replace<S, R, W> extends infer X ? Cast<X, string> : never;
export {};

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

import { Cast } from '../Any/Cast';
import { Pop } from '../List/Pop';

@@ -5,4 +6,8 @@ /**

*/
declare type _Split<S extends string, D extends string, T extends string[] = []> = S extends `${infer BS}${D}${infer AS}` ? _Split<AS, D, [...T, BS]> : [...T, S];
declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends `${infer BS}${D}${infer AS}` ? __Split<AS, D, [...T, BS]> : [...T, S];
/**
* @hidden
*/
declare type _Split<S extends string, D extends string = ''> = D extends '' ? Pop<__Split<S, D>> : __Split<S, D>;
/**
* Split `S` by `D` into a [[List]]

@@ -12,3 +17,3 @@ * @param S to split up

*/
export declare type Split<S extends string, D extends string = ''> = D extends '' ? Pop<_Split<S, D>> : _Split<S, D>;
export declare type Split<S extends string, D extends string = ''> = _Split<S, D> extends infer X ? Cast<X, string[]> : never;
export {};
{
"name": "ts-toolbelt",
"version": "9.5.12",
"version": "9.5.13-test.1615391047592",
"description": "TypeScript's largest utility library",

@@ -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