@goodbyenjn/utils 26.4.2 → 26.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk-4041cd45.d.ts +35 -0
- package/dist/chunks/{chunk-1b381080.js → chunk-54c37c6d.js} +1 -1
- package/dist/chunks/{chunk-9fe6b612.d.ts → chunk-59515eeb.d.ts} +1 -1
- package/dist/chunks/{chunk-bd9f56dd.d.ts → chunk-7e352ea5.d.ts} +2 -2
- package/dist/chunks/{chunk-71e0c144.d.ts → chunk-8b2d37b6.d.ts} +2 -2
- package/dist/chunks/{chunk-11b9216b.js → chunk-f44bf888.js} +25 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/exec.d.ts +4 -4
- package/dist/exec.js +1 -2
- package/dist/fs.d.ts +3 -3
- package/dist/fs.js +2 -3
- package/dist/json.d.ts +2 -2
- package/dist/json.js +2 -2
- package/dist/remeda.d.ts +4 -4
- package/dist/remeda.js +1 -1
- package/dist/result.d.ts +1 -1
- package/dist/result.js +1 -1
- package/dist/types.d.ts +2 -3
- package/package.json +1 -1
- package/dist/chunks/chunk-3c6f28c7.d.ts +0 -39
- package/dist/chunks/chunk-3ce2ea14.js +0 -36
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AbstractClass, AbstractConstructor, AllExtend, AllExtendOptions, AllUnionFields, Alphanumeric, And, AndAll, ArrayElement, ArrayIndices, ArrayLength, ArrayReverse, ArraySlice, ArraySplice, ArrayTail, ArrayValues, Arrayable, AsyncReturnType, Asyncify, CamelCase, CamelCaseOptions, CamelCasedProperties, CamelCasedPropertiesDeep, Class, ConditionalExcept, ConditionalKeys, ConditionalPick, ConditionalPickDeep, ConditionalPickDeepOptions, ConditionalSimplify, ConditionalSimplifyDeep, Constructor, DelimiterCase, DelimiterCasedProperties, DelimiterCasedPropertiesDeep, DigitCharacter, DistributedOmit, DistributedPick, EmptyObject, Entries, Entry, Exact, Except, Except as Except$1, ExceptOptions, ExcludeExactly, ExcludeRestElement, ExcludeStrict, ExclusifyUnion, ExtendsStrict, ExtractRestElement, ExtractStrict, FindGlobalInstanceType, FindGlobalType, Finite, FixedLengthArray, Float, Get, GetOptions, GetTagMetadata, GlobalThis, GreaterThan, GreaterThanOrEqual, HasOptionalKeys, HasReadonlyKeys, HasRequiredKeys, HasWritableKeys, If, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, Includes, IntClosedRange, IntRange, Integer, InvariantOf, IsAny, IsBooleanLiteral, IsEmptyObject, IsEqual, IsFloat, IsInteger, IsLiteral, IsLowercase, IsNegative, IsNever, IsNull, IsNullable, IsNumericLiteral, IsOptional, IsOptionalKeyOf, IsReadonlyKeyOf, IsRequiredKeyOf, IsStringLiteral, IsSymbolLiteral, IsTuple, IsTupleOptions, IsUndefined, IsUnion, IsUnknown, IsUppercase, IsWritableKeyOf, IterableElement, IterableElement as IterableElement$1, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, Jsonifiable, Jsonify, KebabCase, KebabCasedProperties, KebabCasedPropertiesDeep, KeyAsString, KeysOfUnion, LastArrayElement, LessThan, LessThanOrEqual, LiteralToPrimitive, LiteralToPrimitiveDeep, LiteralUnion, LowercaseLetter, Merge, MergeDeep, MergeDeepOptions, MergeExclusive, MultidimensionalArray, MultidimensionalReadonlyArray, Negative, NegativeFloat, NegativeInfinity, NegativeInteger, NonEmptyObject, NonEmptyString, NonEmptyTuple, NonNegative, NonNegativeInteger, ObjectMerge, OmitDeep, OmitIndexSignature, Opaque, OptionalKeysOf, Or, OrAll, OverrideProperties, PackageJson, PartialDeep, PartialDeepOptions, PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions, PascalCase, PascalCasedProperties, PascalCasedPropertiesDeep, Paths, PathsOptions, PickDeep, PickIndexSignature, PositiveInfinity, Primitive, Promisable, ReadonlyDeep, ReadonlyKeysOf, ReadonlyTuple, RemovePrefix, RemovePrefixOptions, Replace, ReplaceOptions, RequireAllOrNone, RequireAtLeastOne, RequireExactlyOne, RequireOneOrNone, RequiredDeep, RequiredKeysOf, Schema, SchemaOptions, ScreamingSnakeCase, SetFieldType, SetFieldTypeOptions, SetNonNullable, SetNonNullableDeep, SetOptional, SetParameterType, SetReadonly, SetRequired, SetRequiredDeep, SetReturnType, SharedUnionFields, SharedUnionFieldsDeep, SharedUnionFieldsDeepOptions, Simplify, SimplifyDeep, SingleKeyObject, SnakeCase, SnakeCasedProperties, SnakeCasedPropertiesDeep, SomeExtend, SomeExtendOptions, Split, SplitOnRestElement, SplitOptions, Spread, StringRepeat, StringSlice, Stringified, StructuredCloneable, Subtract, Sum, Tagged, TaggedUnion, Trim, TsConfigJson, TupleOf, TupleToObject, TupleToUnion, TypedArray, UndefinedOnPartialDeep, UnionMember, UnionToIntersection, UnionToTuple, UnknownArray, UnknownMap, UnknownRecord, UnknownSet, UnwrapOpaque, UnwrapPartial, UnwrapTagged, UppercaseLetter, ValueOf, Words, WordsOptions, Writable, WritableDeep, WritableKeysOf, Xor } from "type-fest";
|
|
2
|
+
|
|
3
|
+
//#region src/types/fn.d.ts
|
|
4
|
+
type Fn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => Return;
|
|
5
|
+
type FnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => Return) & {
|
|
6
|
+
prototype: This;
|
|
7
|
+
};
|
|
8
|
+
type AsyncFn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => PromiseLike<Return>;
|
|
9
|
+
type AsyncFnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => PromiseLike<Return>) & {
|
|
10
|
+
prototype: This;
|
|
11
|
+
};
|
|
12
|
+
type SyncFn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => Return extends PromiseLike<any> ? never : Return;
|
|
13
|
+
type SyncFnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => Return extends PromiseLike<any> ? never : Return) & {
|
|
14
|
+
prototype: This;
|
|
15
|
+
};
|
|
16
|
+
type TemplateFn<Return = any> = (template: TemplateStringsArray, ...values: any[]) => Return;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/types/nullable.d.ts
|
|
19
|
+
type Nullable<T> = T | null | undefined;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/types/omit-by-key.d.ts
|
|
22
|
+
type OmitByKey<ObjectType, KeysType extends keyof ObjectType> = Except<ObjectType, KeysType, {
|
|
23
|
+
requireExactProps: true;
|
|
24
|
+
}>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/types/optional.d.ts
|
|
27
|
+
type Optional<T> = T | undefined;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/types/set-nullable.d.ts
|
|
30
|
+
type SetNullable<BaseType, Keys extends keyof BaseType = keyof BaseType> = { [Key in keyof BaseType]: Key extends Keys ? Nullable<BaseType[Key]> : BaseType[Key] };
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/types/yield-type.d.ts
|
|
33
|
+
type YieldType<TargetGeneratorFn extends Fn<Generator | AsyncGenerator>> = IterableElement<ReturnType<TargetGeneratorFn>>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { FindGlobalType as $, Promisable as $n, TupleToUnion as $r, JsonObject as $t, ConditionalSimplify as A, SyncFnWithThis as Ai, NonNegativeInteger as An, SimplifyDeep as Ar, IsLiteral as At, Entries as B, PartialDeep as Bn, Spread as Br, IsRequiredKeyOf as Bt, CamelCasedPropertiesDeep as C, OmitByKey as Ci, NegativeFloat as Cn, SetRequired as Cr, InvariantOf as Ct, ConditionalPick as D, Fn as Di, NonEmptyString as Dn, SharedUnionFieldsDeep as Dr, IsEqual as Dt, ConditionalKeys as E, AsyncFnWithThis as Ei, NonEmptyObject as En, SharedUnionFields as Er, IsEmptyObject as Et, DelimiterCasedPropertiesDeep as F, type OptionalKeysOf as Fn, SomeExtend as Fr, IsNullable as Ft, ExcludeExactly as G, PascalCasedProperties as Gn, Subtract as Gr, IsUndefined as Gt, Exact as H, PartialOnUndefinedDeep as Hn, StringSlice as Hr, IsSymbolLiteral as Ht, DigitCharacter as I, Or as In, SomeExtendOptions as Ir, IsNumericLiteral as It, ExclusifyUnion as J, PathsOptions as Jn, TaggedUnion as Jr, IsUppercase as Jt, ExcludeRestElement as K, PascalCasedPropertiesDeep as Kn, Sum as Kr, IsUnion as Kt, DistributedOmit as L, OrAll as Ln, Split as Lr, IsOptional as Lt, Constructor as M, OmitDeep as Mn, SnakeCase as Mr, IsNegative as Mt, DelimiterCase as N, OmitIndexSignature as Nn, SnakeCasedProperties as Nr, IsNever as Nt, ConditionalPickDeep as O, FnWithThis as Oi, NonEmptyTuple as On, type SharedUnionFieldsDeepOptions as Or, IsFloat as Ot, DelimiterCasedProperties as P, Opaque as Pn, SnakeCasedPropertiesDeep as Pr, IsNull as Pt, FindGlobalInstanceType as Q, Primitive as Qn, TupleToObject as Qr, JsonArray as Qt, DistributedPick as R, OverrideProperties as Rn, SplitOnRestElement as Rr, IsOptionalKeyOf as Rt, CamelCasedProperties as S, Optional as Si, Negative as Sn, SetReadonly as Sr, Integer as St, ConditionalExcept as T, AsyncFn as Ti, NegativeInteger as Tn, SetReturnType as Tr, IsBooleanLiteral as Tt, Except$1 as U, PartialOnUndefinedDeepOptions as Un, Stringified as Ur, IsTuple as Ut, Entry as V, PartialDeepOptions as Vn, StringRepeat as Vr, IsStringLiteral as Vt, ExceptOptions as W, PascalCase as Wn, StructuredCloneable as Wr, IsTupleOptions as Wt, ExtractRestElement as X, PickIndexSignature as Xn, TsConfigJson as Xr, IterableElement$1 as Xt, ExtendsStrict as Y, PickDeep as Yn, Trim as Yr, IsWritableKeyOf as Yt, ExtractStrict as Z, PositiveInfinity as Zn, TupleOf as Zr, Join as Zt, Arrayable as _, WritableDeep as _i, MergeDeep as _n, SetFieldTypeOptions as _r, IfNull as _t, AllUnionFields as a, UnknownArray as ai, KebabCasedProperties as an, Replace as ar, GetTagMetadata as at, CamelCase as b, YieldType as bi, MultidimensionalArray as bn, SetOptional as br, IntClosedRange as bt, AndAll as c, UnknownSet as ci, KeysOfUnion as cn, RequireAtLeastOne as cr, GreaterThanOrEqual as ct, ArrayLength as d, UnwrapTagged as di, LessThanOrEqual as dn, RequiredDeep as dr, HasRequiredKeys as dt, TypedArray as ei, JsonPrimitive as en, ReadonlyDeep as er, Finite as et, ArrayReverse as f, UppercaseLetter as fi, LiteralToPrimitive as fn, RequiredKeysOf as fr, HasWritableKeys as ft, ArrayValues as g, Writable as gi, Merge as gn, SetFieldType as gr, IfNever as gt, ArrayTail as h, WordsOptions as hi, LowercaseLetter as hn, ScreamingSnakeCase as hr, IfEmptyObject as ht, AllExtendOptions as i, UnionToTuple as ii, KebabCase as in, RemovePrefixOptions as ir, GetOptions as it, ConditionalSimplifyDeep as j, TemplateFn as ji, ObjectMerge as jn, SingleKeyObject as jr, IsLowercase as jt, ConditionalPickDeepOptions as k, SyncFn as ki, NonNegative as kn, Simplify as kr, IsInteger as kt, ArrayElement as l, UnwrapOpaque as li, LastArrayElement as ln, RequireExactlyOne as lr, HasOptionalKeys as lt, ArraySplice as m, Words as mi, LiteralUnion as mn, SchemaOptions as mr, IfAny as mt, AbstractConstructor as n, UnionMember as ni, Jsonifiable as nn, ReadonlyTuple as nr, Float as nt, Alphanumeric as o, UnknownMap as oi, KebabCasedPropertiesDeep as on, ReplaceOptions as or, GlobalThis as ot, ArraySlice as p, ValueOf as pi, LiteralToPrimitiveDeep as pn, Schema as pr, If as pt, ExcludeStrict as q, Paths as qn, Tagged as qr, IsUnknown as qt, AllExtend as r, UnionToIntersection as ri, Jsonify as rn, RemovePrefix as rr, Get as rt, And as s, UnknownRecord as si, KeyAsString as sn, RequireAllOrNone as sr, GreaterThan as st, AbstractClass as t, UndefinedOnPartialDeep as ti, JsonValue as tn, ReadonlyKeysOf as tr, FixedLengthArray as tt, ArrayIndices as u, UnwrapPartial as ui, LessThan as un, RequireOneOrNone as ur, HasReadonlyKeys as ut, AsyncReturnType as v, WritableKeysOf as vi, MergeDeepOptions as vn, SetNonNullable as vr, IfUnknown as vt, Class as w, Nullable as wi, NegativeInfinity as wn, SetRequiredDeep as wr, IsAny as wt, CamelCaseOptions as x, SetNullable as xi, MultidimensionalReadonlyArray as xn, SetParameterType as xr, IntRange as xt, Asyncify as y, Xor as yi, MergeExclusive as yn, SetNonNullableDeep as yr, Includes as yt, EmptyObject as z, PackageJson as zn, SplitOptions as zr, IsReadonlyKeyOf as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Si as err, w as nil, xi as Result } from "./chunk-
|
|
1
|
+
import { Si as err, w as nil, xi as Result } from "./chunk-f44bf888.js";
|
|
2
2
|
//#region src/json/safe.ts
|
|
3
3
|
const safeStringify = Result.wrap(JSON.stringify);
|
|
4
4
|
const stringify$1 = (value, replacer, space) => Result.gen(function* () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { On as NonEmptyTuple, Ti as AsyncFn, ki as SyncFn } from "./chunk-4041cd45.js";
|
|
2
2
|
|
|
3
3
|
//#region src/result/types.d.ts
|
|
4
4
|
type ExtractOkTypes<T extends readonly Result[]> = { [K in keyof T]: T[K] extends Result<infer U, unknown> ? U : never };
|
|
@@ -53,7 +53,7 @@ declare class Result<T = unknown, E = unknown> {
|
|
|
53
53
|
* Combines multiple `Result` instances into one `Result` containing an array of all `Ok` values,
|
|
54
54
|
* or the first `Err` encountered
|
|
55
55
|
*/
|
|
56
|
-
static all<T extends
|
|
56
|
+
static all<T extends NonEmptyTuple<Result>>(results: T): ResultAll<T>;
|
|
57
57
|
static all<T extends readonly Result[]>(results: T): ResultAll<T>;
|
|
58
58
|
/**
|
|
59
59
|
* Wraps a generator function where `yield` can return `Err` values early.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Di as Fn, Ti as AsyncFn, ji as TemplateFn, qr as Tagged } from "./chunk-4041cd45.js";
|
|
2
2
|
|
|
3
3
|
//#region src/common/error.d.ts
|
|
4
4
|
declare const normalizeError: (error: unknown, caller?: Function) => Error;
|
|
@@ -21,7 +21,7 @@ declare const linear: (value: number, range: [min: number, max: number]) => numb
|
|
|
21
21
|
declare const scale: (value: number, inRange: [min: number, max: number], outRange: [min: number, max: number]) => number;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/common/nil.d.ts
|
|
24
|
-
type Nil =
|
|
24
|
+
type Nil = Tagged<symbol, "nil">;
|
|
25
25
|
declare const nil: Nil;
|
|
26
26
|
declare const isNil: (value: unknown) => value is Nil;
|
|
27
27
|
//#endregion
|
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
2
|
import { add, addProp, allPass, anyPass, capitalize, ceil, chunk, clamp, clone, concat, conditional, constant, countBy, debounce as debounce$1, defaultTo, difference, differenceWith, divide, doNothing, drop, dropFirstBy, dropLast, dropLastWhile, dropWhile, endsWith, entries, evolve, filter, find, findIndex, findLast, findLastIndex, first, firstBy, flat, flatMap, floor, forEach, forEachObj, fromEntries, fromKeys, funnel, groupBy, groupByProp, hasAtLeast, hasSubObject, identity, indexBy, intersection, intersectionWith, invert, isArray, isBigInt, isBoolean, isDate, isDeepEqual, isDefined, isEmpty, isEmptyish, isError, isFunction, isIncludedIn, isNonNull, isNonNullish, isNot, isNullish, isNumber, isObjectType, isObjectType as isObjectType$1, isPlainObject, isPromise, isShallowEqual, isStrictEqual, isString as isString$1, isSymbol, isTruthy, join as join$1, keys, last, length, map, mapKeys, mapToObj, mapValues, mapWithFeedback, mean, meanBy, median, merge, mergeAll, mergeDeep, multiply, nthBy, objOf, omit, omitBy, once, only, partialBind, partialLastBind, partition, pathOr, pick, pickBy, pipe, piped, product, prop, pullObject, purry, purry as purry$1, randomBigInt, randomInteger, randomString, range, rankBy, reduce, reverse, round, sample, set, setPath, shuffle, sliceString, sort, sortBy, sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy, splice, split as split$1, splitAt, splitWhen, startsWith, stringToPath, subtract, sum, sumBy, swapIndices, swapProps, take, takeFirstBy, takeLast, takeLastWhile, takeWhile, tap, times, toCamelCase, toKebabCase, toLowerCase, toSnakeCase, toTitleCase, toUpperCase, truncate, uncapitalize, unique, uniqueBy, uniqueWith, values, when, zip, zipWith } from "remeda";
|
|
3
3
|
import { accumulateAsync as accumulateP, accumulateSync as accumulate, awaitAll, buffer, chunkAsync as chunkP, compose, concatAsync as concatP, concurrency, differenceAsync as differenceP, differenceByAsync as differenceByP, differenceBySync as differenceBy, differenceWithAsync as differenceWithP, dropAsync as dropP, everyAsync as everyP, everySync as every, executeAsync as executeP, executeSync as execute, filterAsync as filterP, findAsync as findP, flatMapAsync as flatMapP, flattenAsync as flattenP, flattenSync as flatten, forEachAsync as forEachP, intersectionAsync as intersectionP, intersectionByAsync as intersectionByP, intersectionBySync as intersectionBy, intersectionWithAsync as intersectionWithP, mapAsync as mapP, peekAsync as peekP, peekSync as peek, reduceAsync as reduceP, serializeAsync as serializeP, serializeSync as serialize, someAsync as someP, someSync as some, takeAsync as takeP, throttle as throttle$1, toArrayAsync as toArrayP, toArraySync as toArray, toIteratorAsync as toIteratorP, toIteratorSync as toIterator, uniqueAsync as uniqueP, uniqueByAsync as uniqueByP, uniqueWithAsync as uniqueWithP } from "rotery";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var __create = Object.create;
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
+
key = keys[i];
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: ((k) => from[k]).bind(null, key),
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
var __require = createRequire(import.meta.url);
|
|
4
27
|
const configure = __toESM(__commonJSMin(((exports, module) => {
|
|
5
28
|
const { hasOwnProperty } = Object.prototype;
|
|
6
29
|
const stringify = configure();
|
|
@@ -967,4 +990,4 @@ const throttle = (fn, wait = 0, options = {}) => {
|
|
|
967
990
|
});
|
|
968
991
|
};
|
|
969
992
|
//#endregion
|
|
970
|
-
export { differenceBy as $, pipe as $n, toIterator as $r, isArray as $t, accumulateP as A, mapValues as An, splice as Ar, flatMapP as At, chunkP as B, objOf as Bn, swapProps as Br, groupBy as Bt, isNil as C, isResult as Ci, keys as Cn, sort as Cr, findLast as Ct, getErrorMessage as D, mapKeys as Dn, sortedIndexWith as Dr, firstBy as Dt, scale as E, stableStringify as Ei, map as En, sortedIndexBy as Er, first as Et, awaitAll as F, merge as Fn, stringToPath as Fr, forEachObj as Ft, concatP as G, partialBind as Gn, takeP as Gr, indexBy as Gt, clone as H, omitBy as Hn, takeFirstBy as Hr, hasAtLeast as Ht, buffer as I, mergeAll as In, subtract as Ir, forEachP as It, constant as J, pathOr as Jn, throttle$1 as Jr, intersectionByP as Jt, concurrency as K, partialLastBind as Kn, takeWhile as Kr, intersection as Kt, capitalize as L, mergeDeep as Ln, sum as Lr, fromEntries as Lt, addProp as M, mean as Mn, splitAt as Mr, flattenP as Mt, allPass as N, meanBy as Nn, splitWhen as Nr, floor as Nt, normalizeError as O, mapP as On, sortedLastIndex as Or, flat as Ot, anyPass as P, median as Pn, startsWith as Pr, forEach as Pt, difference as Q, pickBy as Qn, toCamelCase as Qr, invert as Qt, ceil as R, multiply as Rn, sumBy as Rr, fromKeys as Rt, parseValueToBoolean as S, err as Si, join$1 as Sn, someP as Sr, findIndex as St, linear as T, ResultError as Ti, length as Tn, sortedIndex as Tr, findP as Tt, compose as U, once as Un, takeLast as Ur, hasSubObject as Ut, clamp as V, omit as Vn, take as Vr, groupByProp as Vt, concat as W, only as Wn, takeLastWhile as Wr, identity as Wt, debounce$1 as X, peekP as Xn, toArray as Xr, intersectionWith as Xt, countBy as Y, peek as Yn, times as Yr, intersectionP as Yt, defaultTo as Z, pick as Zn, toArrayP as Zr, intersectionWithP as Zt, createLock as _, zipWith as _i, isShallowEqual as _n, set as _r, execute as _t, concatTemplateStrings as a, toUpperCase as ai, isEmpty as an, randomBigInt as ar, doNothing as at, sleep as b, hasOwnProperty as bi, isSymbol as bn, sliceString as br, filterP as bt, joinWithSlash as c, unique as ci, isIncludedIn as cn, range as cr, dropLast as ct, split as d, uniqueP as di, isNot as dn, reduceP as dr, dropWhile as dt, toIteratorP as ei, isBigInt as en, piped as er, differenceByP as et, splitByLineBreak as f, uniqueWith as fi, isNullish as fn, reverse as fr, endsWith as ft, unindent as g, zip as gi, isPromise as gn, serializeP as gr, evolve as gt, toForwardSlash as h, when as hi, isPlainObject as hn, serialize as hr, everyP as ht, addSuffix as i, toTitleCase as ii, isDefined as in, purry$1 as ir, divide as it, add as j, mapWithFeedback as jn, split$1 as jr, flatten as jt, accumulate as k, mapToObj as kn, sortedLastIndexBy as kr, flatMap as kt, removePrefix as l, uniqueBy as li, isNonNull as ln, rankBy as lr, dropLastWhile as lt, template as m, values as mi, isObjectType$1 as mn, sample as mr, every as mt, throttle as n, toLowerCase as ni, isDate as nn, prop as nr, differenceWith as nt, indent as o, truncate as oi, isEmptyish as on, randomInteger as or, drop as ot, splitWithSlash as p, uniqueWithP as pi, isNumber as pn, round as pr, entries as pt, conditional as q, partition as qn, tap as qr, intersectionBy as qt, addPrefix as r, toSnakeCase as ri, isDeepEqual as rn, pullObject as rr, differenceWithP as rt, join as s, uncapitalize as si, isError as sn, randomString as sr, dropFirstBy as st, debounce as t, toKebabCase as ti, isBoolean as tn, product as tr, differenceP as tt, removeSuffix as u, uniqueByP as ui, isNonNullish as un, reduce as ur, dropP as ut, createPromiseWithResolvers as v, isPromiseLike as vi, isStrictEqual as vn, setPath as vr, executeP as vt, nil as w, ok as wi, last as wn, sortBy as wr, findLastIndex as wt, parseKeyValuePairs as x, Result as xi, isTruthy as xn, some as xr, find as xt, createSingleton as y, isFunction$1 as yi, isString$1 as yn, shuffle as yr, filter as yt, chunk as z, nthBy as zn, swapIndices as zr, funnel as zt };
|
|
993
|
+
export { differenceBy as $, pipe as $n, toIterator as $r, isArray as $t, accumulateP as A, mapValues as An, splice as Ar, flatMapP as At, chunkP as B, objOf as Bn, swapProps as Br, groupBy as Bt, isNil as C, isResult as Ci, keys as Cn, sort as Cr, findLast as Ct, getErrorMessage as D, __commonJSMin as Di, mapKeys as Dn, sortedIndexWith as Dr, firstBy as Dt, scale as E, stableStringify as Ei, map as En, sortedIndexBy as Er, first as Et, awaitAll as F, merge as Fn, stringToPath as Fr, forEachObj as Ft, concatP as G, partialBind as Gn, takeP as Gr, indexBy as Gt, clone as H, omitBy as Hn, takeFirstBy as Hr, hasAtLeast as Ht, buffer as I, mergeAll as In, subtract as Ir, forEachP as It, constant as J, pathOr as Jn, throttle$1 as Jr, intersectionByP as Jt, concurrency as K, partialLastBind as Kn, takeWhile as Kr, intersection as Kt, capitalize as L, mergeDeep as Ln, sum as Lr, fromEntries as Lt, addProp as M, mean as Mn, splitAt as Mr, flattenP as Mt, allPass as N, meanBy as Nn, splitWhen as Nr, floor as Nt, normalizeError as O, __require as Oi, mapP as On, sortedLastIndex as Or, flat as Ot, anyPass as P, median as Pn, startsWith as Pr, forEach as Pt, difference as Q, pickBy as Qn, toCamelCase as Qr, invert as Qt, ceil as R, multiply as Rn, sumBy as Rr, fromKeys as Rt, parseValueToBoolean as S, err as Si, join$1 as Sn, someP as Sr, findIndex as St, linear as T, ResultError as Ti, length as Tn, sortedIndex as Tr, findP as Tt, compose as U, once as Un, takeLast as Ur, hasSubObject as Ut, clamp as V, omit as Vn, take as Vr, groupByProp as Vt, concat as W, only as Wn, takeLastWhile as Wr, identity as Wt, debounce$1 as X, peekP as Xn, toArray as Xr, intersectionWith as Xt, countBy as Y, peek as Yn, times as Yr, intersectionP as Yt, defaultTo as Z, pick as Zn, toArrayP as Zr, intersectionWithP as Zt, createLock as _, zipWith as _i, isShallowEqual as _n, set as _r, execute as _t, concatTemplateStrings as a, toUpperCase as ai, isEmpty as an, randomBigInt as ar, doNothing as at, sleep as b, hasOwnProperty as bi, isSymbol as bn, sliceString as br, filterP as bt, joinWithSlash as c, unique as ci, isIncludedIn as cn, range as cr, dropLast as ct, split as d, uniqueP as di, isNot as dn, reduceP as dr, dropWhile as dt, toIteratorP as ei, isBigInt as en, piped as er, differenceByP as et, splitByLineBreak as f, uniqueWith as fi, isNullish as fn, reverse as fr, endsWith as ft, unindent as g, zip as gi, isPromise as gn, serializeP as gr, evolve as gt, toForwardSlash as h, when as hi, isPlainObject as hn, serialize as hr, everyP as ht, addSuffix as i, toTitleCase as ii, isDefined as in, purry$1 as ir, divide as it, add as j, mapWithFeedback as jn, split$1 as jr, flatten as jt, accumulate as k, __toESM as ki, mapToObj as kn, sortedLastIndexBy as kr, flatMap as kt, removePrefix as l, uniqueBy as li, isNonNull as ln, rankBy as lr, dropLastWhile as lt, template as m, values as mi, isObjectType$1 as mn, sample as mr, every as mt, throttle as n, toLowerCase as ni, isDate as nn, prop as nr, differenceWith as nt, indent as o, truncate as oi, isEmptyish as on, randomInteger as or, drop as ot, splitWithSlash as p, uniqueWithP as pi, isNumber as pn, round as pr, entries as pt, conditional as q, partition as qn, tap as qr, intersectionBy as qt, addPrefix as r, toSnakeCase as ri, isDeepEqual as rn, pullObject as rr, differenceWithP as rt, join as s, uncapitalize as si, isError as sn, randomString as sr, dropFirstBy as st, debounce as t, toKebabCase as ti, isBoolean as tn, product as tr, differenceP as tt, removeSuffix as u, uniqueByP as ui, isNonNullish as un, reduce as ur, dropP as ut, createPromiseWithResolvers as v, isPromiseLike as vi, isStrictEqual as vn, setPath as vr, executeP as vt, nil as w, ok as wi, last as wn, sortBy as wr, findLastIndex as wt, parseKeyValuePairs as x, Result as xi, isTruthy as xn, some as xr, find as xt, createSingleton as y, isFunction$1 as yi, isString$1 as yn, shuffle as yr, filter as yt, chunk as z, nthBy as zn, swapIndices as zr, funnel as zt };
|
package/dist/common.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Nil, C as Singleton, D as sleep, E as createSingleton, F as getErrorMessage, I as normalizeError, M as nil, N as linear, O as parseKeyValuePairs, P as scale, S as PromiseWithResolvers, T as createPromiseWithResolvers, _ as splitWithSlash, a as debounce, b as unindent, c as addSuffix, d as join, f as joinWithSlash, g as splitByLineBreak, h as split, i as ThrottledFn, j as isNil, k as parseValueToBoolean, l as concatTemplateStrings, m as removeSuffix, n as DebouncedFn, o as throttle, p as removePrefix, r as ThrottleOptions, s as addPrefix, t as DebounceOptions, u as indent, v as template, w as createLock, x as Lock, y as toForwardSlash } from "./chunks/chunk-
|
|
1
|
+
import { A as Nil, C as Singleton, D as sleep, E as createSingleton, F as getErrorMessage, I as normalizeError, M as nil, N as linear, O as parseKeyValuePairs, P as scale, S as PromiseWithResolvers, T as createPromiseWithResolvers, _ as splitWithSlash, a as debounce, b as unindent, c as addSuffix, d as join, f as joinWithSlash, g as splitByLineBreak, h as split, i as ThrottledFn, j as isNil, k as parseValueToBoolean, l as concatTemplateStrings, m as removeSuffix, n as DebouncedFn, o as throttle, p as removePrefix, r as ThrottleOptions, s as addPrefix, t as DebounceOptions, u as indent, v as template, w as createLock, x as Lock, y as toForwardSlash } from "./chunks/chunk-8b2d37b6.js";
|
|
2
2
|
export { DebounceOptions, DebouncedFn, Lock, Nil, PromiseWithResolvers, Singleton, ThrottleOptions, ThrottledFn, addPrefix, addSuffix, concatTemplateStrings, createLock, createPromiseWithResolvers, createSingleton, debounce, getErrorMessage, indent, isNil, join, joinWithSlash, linear, nil, normalizeError, parseKeyValuePairs, parseValueToBoolean, removePrefix, removeSuffix, scale, sleep, split, splitByLineBreak, splitWithSlash, template, throttle, toForwardSlash, unindent };
|
package/dist/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as isNil, D as getErrorMessage, E as scale, O as normalizeError, S as parseValueToBoolean, T as linear, _ as createLock, a as concatTemplateStrings, b as sleep, c as joinWithSlash, d as split, f as splitByLineBreak, g as unindent, h as toForwardSlash, i as addSuffix, l as removePrefix, m as template, n as throttle, o as indent, p as splitWithSlash, r as addPrefix, s as join, t as debounce, u as removeSuffix, v as createPromiseWithResolvers, w as nil, x as parseKeyValuePairs, y as createSingleton } from "./chunks/chunk-
|
|
1
|
+
import { C as isNil, D as getErrorMessage, E as scale, O as normalizeError, S as parseValueToBoolean, T as linear, _ as createLock, a as concatTemplateStrings, b as sleep, c as joinWithSlash, d as split, f as splitByLineBreak, g as unindent, h as toForwardSlash, i as addSuffix, l as removePrefix, m as template, n as throttle, o as indent, p as splitWithSlash, r as addPrefix, s as join, t as debounce, u as removeSuffix, v as createPromiseWithResolvers, w as nil, x as parseKeyValuePairs, y as createSingleton } from "./chunks/chunk-f44bf888.js";
|
|
2
2
|
export { addPrefix, addSuffix, concatTemplateStrings, createLock, createPromiseWithResolvers, createSingleton, debounce, getErrorMessage, indent, isNil, join, joinWithSlash, linear, nil, normalizeError, parseKeyValuePairs, parseValueToBoolean, removePrefix, removeSuffix, scale, sleep, split, splitByLineBreak, splitWithSlash, template, throttle, toForwardSlash, unindent };
|
package/dist/exec.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as Result } from "./chunks/chunk-
|
|
1
|
+
import { Tr as SetReturnType, ji as TemplateFn, wi as Nullable } from "./chunks/chunk-4041cd45.js";
|
|
2
|
+
import { i as Result } from "./chunks/chunk-7e352ea5.js";
|
|
3
3
|
import { ChildProcess, SpawnOptions } from "node:child_process";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
|
|
@@ -86,7 +86,7 @@ interface ExtendProcessInstance$1 extends PromiseLike<Result<Output, Error>>, As
|
|
|
86
86
|
exec: Exec$1;
|
|
87
87
|
pipe: Exec$1;
|
|
88
88
|
}
|
|
89
|
-
type Exec$1 =
|
|
89
|
+
type Exec$1 = SetReturnType<BaseExecSpawn, ProcessInstance$1> & SetReturnType<BaseExecCommandTemplate, ProcessInstance$1> & SetReturnType<BaseExecCommandString, ProcessInstance$1> & SetReturnType<BaseExecFactory, SetReturnType<BaseExecCommandTemplate, ProcessInstance$1> & SetReturnType<BaseExecCommandString, ProcessInstance$1>>;
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/exec/safe/index.d.ts
|
|
92
92
|
declare class Process$1 extends BaseProcess implements ProcessInstance$1 {
|
|
@@ -111,7 +111,7 @@ interface ExtendProcessInstance extends PromiseLike<Output>, AsyncIterable<strin
|
|
|
111
111
|
exec: Exec;
|
|
112
112
|
pipe: Exec;
|
|
113
113
|
}
|
|
114
|
-
type Exec =
|
|
114
|
+
type Exec = SetReturnType<BaseExecSpawn, ProcessInstance> & SetReturnType<BaseExecCommandTemplate, ProcessInstance> & SetReturnType<BaseExecCommandString, ProcessInstance> & SetReturnType<BaseExecFactory, SetReturnType<BaseExecCommandTemplate, ProcessInstance> & SetReturnType<BaseExecCommandString, ProcessInstance>>;
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region src/exec/unsafe/index.d.ts
|
|
117
117
|
declare class Process extends BaseProcess implements ProcessInstance {
|
package/dist/exec.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $t as isArray, D as getErrorMessage, Si as err, a as concatTemplateStrings, hn as isPlainObject, v as createPromiseWithResolvers, wi as ok, yn as isString$1 } from "./chunks/chunk-11b9216b.js";
|
|
1
|
+
import { $t as isArray, D as getErrorMessage, Di as __commonJSMin, Oi as __require, Si as err, a as concatTemplateStrings, hn as isPlainObject, v as createPromiseWithResolvers, wi as ok, yn as isString$1 } from "./chunks/chunk-f44bf888.js";
|
|
3
2
|
import { isString } from "remeda";
|
|
4
3
|
import { spawn } from "node:child_process";
|
|
5
4
|
import path from "node:path";
|
package/dist/fs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { A as Nil } from "./chunks/chunk-
|
|
3
|
-
import { i as Result, u as InferErrType } from "./chunks/chunk-
|
|
4
|
-
import { n as stringify, t as parse } from "./chunks/chunk-
|
|
2
|
+
import { A as Nil } from "./chunks/chunk-8b2d37b6.js";
|
|
3
|
+
import { i as Result, u as InferErrType } from "./chunks/chunk-7e352ea5.js";
|
|
4
|
+
import { n as stringify, t as parse } from "./chunks/chunk-59515eeb.js";
|
|
5
5
|
import * as nativeFs from "fs";
|
|
6
6
|
|
|
7
7
|
//#region node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.d.mts
|
package/dist/fs.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as stringify, n as stringify$1, r as parse, t as parse$1 } from "./chunks/chunk-1b381080.js";
|
|
1
|
+
import { $t as isArray, C as isNil, Di as __commonJSMin, Si as err, Vn as omit, ki as __toESM, l as removePrefix, pn as isNumber, w as nil$2, wi as ok, xi as Result, yn as isString } from "./chunks/chunk-f44bf888.js";
|
|
2
|
+
import { i as stringify, n as stringify$1, r as parse, t as parse$1 } from "./chunks/chunk-54c37c6d.js";
|
|
4
3
|
import path, { dirname } from "node:path";
|
|
5
4
|
import { basename, dirname as dirname$1, isAbsolute, normalize, posix, relative, resolve, sep } from "path";
|
|
6
5
|
import * as nativeFs from "fs";
|
package/dist/json.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Nil } from "./chunks/chunk-
|
|
2
|
-
import { n as stringify, t as parse$1 } from "./chunks/chunk-
|
|
1
|
+
import { A as Nil } from "./chunks/chunk-8b2d37b6.js";
|
|
2
|
+
import { n as stringify, t as parse$1 } from "./chunks/chunk-59515eeb.js";
|
|
3
3
|
|
|
4
4
|
//#region node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.d.ts
|
|
5
5
|
type Replacer = (number | string)[] | null | undefined | ((key: string, value: unknown) => string | number | boolean | null | object);
|
package/dist/json.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Ei as stableStringify } from "./chunks/chunk-
|
|
2
|
-
import { i as stringify, n as stringify$1, r as parse$1, t as parse } from "./chunks/chunk-
|
|
1
|
+
import { Ei as stableStringify } from "./chunks/chunk-f44bf888.js";
|
|
2
|
+
import { i as stringify, n as stringify$1, r as parse$1, t as parse } from "./chunks/chunk-54c37c6d.js";
|
|
3
3
|
export { parse, parse$1 as safeParse, stringify as safeStringify, stableStringify, stringify$1 as stringify };
|
package/dist/remeda.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as isNil } from "./chunks/chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { o as isResult } from "./chunks/chunk-
|
|
1
|
+
import { j as isNil } from "./chunks/chunk-8b2d37b6.js";
|
|
2
|
+
import { wt as IsAny } from "./chunks/chunk-4041cd45.js";
|
|
3
|
+
import { o as isResult } from "./chunks/chunk-7e352ea5.js";
|
|
4
4
|
import { add, addProp, allPass, anyPass, capitalize, ceil, chunk, clamp, clone, concat, conditional, constant, countBy, debounce, defaultTo, difference, differenceWith, divide, doNothing, drop, dropFirstBy, dropLast, dropLastWhile, dropWhile, endsWith, entries, evolve, filter, find, findIndex, findLast, findLastIndex, first, firstBy, flat, flatMap, floor, forEach, forEachObj, fromEntries, fromKeys, funnel, groupBy, groupByProp, hasAtLeast, hasSubObject, identity, indexBy, intersection, intersectionWith, invert, isArray, isBigInt, isBoolean, isDate, isDeepEqual, isDefined, isEmpty, isEmptyish, isError, isIncludedIn, isNonNull, isNonNullish, isNot, isNullish, isNumber, isObjectType, isPlainObject, isPromise, isShallowEqual, isStrictEqual, isString, isSymbol, isTruthy, join, keys, last, length, map, mapKeys, mapToObj, mapValues, mapWithFeedback, mean, meanBy, median, merge, mergeAll, mergeDeep, multiply, nthBy, objOf, omit, omitBy, once, only, partialBind, partialLastBind, partition, pathOr, pick, pickBy, pipe, piped, product, prop, pullObject, purry, randomBigInt, randomInteger, randomString, range, rankBy, reduce, reverse, round, sample, set, setPath, shuffle, sliceString, sort, sortBy, sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy, splice, split, splitAt, splitWhen, startsWith, stringToPath, subtract, sum, sumBy, swapIndices, swapProps, take, takeFirstBy, takeLast, takeLastWhile, takeWhile, tap, times, toCamelCase, toKebabCase, toLowerCase, toSnakeCase, toTitleCase, toUpperCase, truncate, uncapitalize, unique, uniqueBy, uniqueWith, values, when, zip, zipWith } from "remeda";
|
|
5
5
|
import { Chunked, Curried, NthCurried, Purried, Series, StaticSeries, SyncSeries, accumulateAsync as accumulateP, accumulateSync as accumulate, awaitAll, buffer, chunkAsync as chunkP, compose, concatAsync as concatP, concurrency, differenceAsync as differenceP, differenceByAsync as differenceByP, differenceBySync as differenceBy, differenceWithAsync as differenceWithP, dropAsync as dropP, everyAsync as everyP, everySync as every, executeAsync as executeP, executeSync as execute, filterAsync as filterP, findAsync as findP, flatMapAsync as flatMapP, flattenAsync as flattenP, flattenSync as flatten, forEachAsync as forEachP, intersectionAsync as intersectionP, intersectionByAsync as intersectionByP, intersectionBySync as intersectionBy, intersectionWithAsync as intersectionWithP, mapAsync as mapP, peekAsync as peekP, peekSync as peek, reduceAsync as reduceP, serializeAsync as serializeP, serializeSync as serialize, someAsync as someP, someSync as some, takeAsync as takeP, throttle, toArrayAsync as toArrayP, toArraySync as toArray, toIteratorAsync as toIteratorP, toIteratorSync as toIterator, uniqueAsync as uniqueP, uniqueByAsync as uniqueByP, uniqueWithAsync as uniqueWithP } from "rotery";
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import { Chunked, Curried, NthCurried, Purried, Series, StaticSeries, SyncSeries
|
|
|
12
12
|
* @example
|
|
13
13
|
* function isMyType<T>(data: T | MyType): data is NarrowedTo<T, MyType> { ... }
|
|
14
14
|
*/
|
|
15
|
-
type NarrowedTo<T, Base> = Extract<T, Base> extends never ? Base :
|
|
15
|
+
type NarrowedTo<T, Base> = Extract<T, Base> extends never ? Base : IsAny<T> extends true ? Base : Extract<T, Base>;
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/remeda/hasOwnProperty.d.ts
|
|
18
18
|
/**
|
package/dist/remeda.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as differenceBy, $n as pipe, $r as toIterator, $t as isArray, A as accumulateP, An as mapValues, Ar as splice, At as flatMapP, B as chunkP, Bn as objOf, Br as swapProps, Bt as groupBy, C as isNil, Ci as isResult, Cn as keys, Cr as sort, Ct as findLast, Dn as mapKeys, Dr as sortedIndexWith, Dt as firstBy, En as map, Er as sortedIndexBy, Et as first, F as awaitAll, Fn as merge, Fr as stringToPath, Ft as forEachObj, G as concatP, Gn as partialBind, Gr as takeP, Gt as indexBy, H as clone, Hn as omitBy, Hr as takeFirstBy, Ht as hasAtLeast, I as buffer, In as mergeAll, Ir as subtract, It as forEachP, J as constant, Jn as pathOr, Jr as throttle, Jt as intersectionByP, K as concurrency, Kn as partialLastBind, Kr as takeWhile, Kt as intersection, L as capitalize, Ln as mergeDeep, Lr as sum, Lt as fromEntries, M as addProp, Mn as mean, Mr as splitAt, Mt as flattenP, N as allPass, Nn as meanBy, Nr as splitWhen, Nt as floor, On as mapP, Or as sortedLastIndex, Ot as flat, P as anyPass, Pn as median, Pr as startsWith, Pt as forEach, Q as difference, Qn as pickBy, Qr as toCamelCase, Qt as invert, R as ceil, Rn as multiply, Rr as sumBy, Rt as fromKeys, Sn as join, Sr as someP, St as findIndex, Tn as length, Tr as sortedIndex, Tt as findP, U as compose, Un as once, Ur as takeLast, Ut as hasSubObject, V as clamp, Vn as omit, Vr as take, Vt as groupByProp, W as concat, Wn as only, Wr as takeLastWhile, Wt as identity, X as debounce, Xn as peekP, Xr as toArray, Xt as intersectionWith, Y as countBy, Yn as peek, Yr as times, Yt as intersectionP, Z as defaultTo, Zn as pick, Zr as toArrayP, Zt as intersectionWithP, _i as zipWith, _n as isShallowEqual, _r as set, _t as execute, ai as toUpperCase, an as isEmpty, ar as randomBigInt, at as doNothing, bi as hasOwnProperty, bn as isSymbol, br as sliceString, bt as filterP, ci as unique, cn as isIncludedIn, cr as range, ct as dropLast, di as uniqueP, dn as isNot, dr as reduceP, dt as dropWhile, ei as toIteratorP, en as isBigInt, er as piped, et as differenceByP, fi as uniqueWith, fn as isNullish, fr as reverse, ft as endsWith, gi as zip, gn as isPromise, gr as serializeP, gt as evolve, hi as when, hn as isPlainObject, hr as serialize, ht as everyP, ii as toTitleCase, in as isDefined, ir as purry, it as divide, j as add, jn as mapWithFeedback, jr as split, jt as flatten, k as accumulate, kn as mapToObj, kr as sortedLastIndexBy, kt as flatMap, li as uniqueBy, ln as isNonNull, lr as rankBy, lt as dropLastWhile, mi as values, mn as isObjectType, mr as sample, mt as every, ni as toLowerCase, nn as isDate, nr as prop, nt as differenceWith, oi as truncate, on as isEmptyish, or as randomInteger, ot as drop, pi as uniqueWithP, pn as isNumber, pr as round, pt as entries, q as conditional, qn as partition, qr as tap, qt as intersectionBy, ri as toSnakeCase, rn as isDeepEqual, rr as pullObject, rt as differenceWithP, si as uncapitalize, sn as isError, sr as randomString, st as dropFirstBy, ti as toKebabCase, tn as isBoolean, tr as product, tt as differenceP, ui as uniqueByP, un as isNonNullish, ur as reduce, ut as dropP, vi as isPromiseLike, vn as isStrictEqual, vr as setPath, vt as executeP, wn as last, wr as sortBy, wt as findLastIndex, xn as isTruthy, xr as some, xt as find, yi as isFunction, yn as isString, yr as shuffle, yt as filter, z as chunk, zn as nthBy, zr as swapIndices, zt as funnel } from "./chunks/chunk-
|
|
1
|
+
import { $ as differenceBy, $n as pipe, $r as toIterator, $t as isArray, A as accumulateP, An as mapValues, Ar as splice, At as flatMapP, B as chunkP, Bn as objOf, Br as swapProps, Bt as groupBy, C as isNil, Ci as isResult, Cn as keys, Cr as sort, Ct as findLast, Dn as mapKeys, Dr as sortedIndexWith, Dt as firstBy, En as map, Er as sortedIndexBy, Et as first, F as awaitAll, Fn as merge, Fr as stringToPath, Ft as forEachObj, G as concatP, Gn as partialBind, Gr as takeP, Gt as indexBy, H as clone, Hn as omitBy, Hr as takeFirstBy, Ht as hasAtLeast, I as buffer, In as mergeAll, Ir as subtract, It as forEachP, J as constant, Jn as pathOr, Jr as throttle, Jt as intersectionByP, K as concurrency, Kn as partialLastBind, Kr as takeWhile, Kt as intersection, L as capitalize, Ln as mergeDeep, Lr as sum, Lt as fromEntries, M as addProp, Mn as mean, Mr as splitAt, Mt as flattenP, N as allPass, Nn as meanBy, Nr as splitWhen, Nt as floor, On as mapP, Or as sortedLastIndex, Ot as flat, P as anyPass, Pn as median, Pr as startsWith, Pt as forEach, Q as difference, Qn as pickBy, Qr as toCamelCase, Qt as invert, R as ceil, Rn as multiply, Rr as sumBy, Rt as fromKeys, Sn as join, Sr as someP, St as findIndex, Tn as length, Tr as sortedIndex, Tt as findP, U as compose, Un as once, Ur as takeLast, Ut as hasSubObject, V as clamp, Vn as omit, Vr as take, Vt as groupByProp, W as concat, Wn as only, Wr as takeLastWhile, Wt as identity, X as debounce, Xn as peekP, Xr as toArray, Xt as intersectionWith, Y as countBy, Yn as peek, Yr as times, Yt as intersectionP, Z as defaultTo, Zn as pick, Zr as toArrayP, Zt as intersectionWithP, _i as zipWith, _n as isShallowEqual, _r as set, _t as execute, ai as toUpperCase, an as isEmpty, ar as randomBigInt, at as doNothing, bi as hasOwnProperty, bn as isSymbol, br as sliceString, bt as filterP, ci as unique, cn as isIncludedIn, cr as range, ct as dropLast, di as uniqueP, dn as isNot, dr as reduceP, dt as dropWhile, ei as toIteratorP, en as isBigInt, er as piped, et as differenceByP, fi as uniqueWith, fn as isNullish, fr as reverse, ft as endsWith, gi as zip, gn as isPromise, gr as serializeP, gt as evolve, hi as when, hn as isPlainObject, hr as serialize, ht as everyP, ii as toTitleCase, in as isDefined, ir as purry, it as divide, j as add, jn as mapWithFeedback, jr as split, jt as flatten, k as accumulate, kn as mapToObj, kr as sortedLastIndexBy, kt as flatMap, li as uniqueBy, ln as isNonNull, lr as rankBy, lt as dropLastWhile, mi as values, mn as isObjectType, mr as sample, mt as every, ni as toLowerCase, nn as isDate, nr as prop, nt as differenceWith, oi as truncate, on as isEmptyish, or as randomInteger, ot as drop, pi as uniqueWithP, pn as isNumber, pr as round, pt as entries, q as conditional, qn as partition, qr as tap, qt as intersectionBy, ri as toSnakeCase, rn as isDeepEqual, rr as pullObject, rt as differenceWithP, si as uncapitalize, sn as isError, sr as randomString, st as dropFirstBy, ti as toKebabCase, tn as isBoolean, tr as product, tt as differenceP, ui as uniqueByP, un as isNonNullish, ur as reduce, ut as dropP, vi as isPromiseLike, vn as isStrictEqual, vr as setPath, vt as executeP, wn as last, wr as sortBy, wt as findLastIndex, xn as isTruthy, xr as some, xt as find, yi as isFunction, yn as isString, yr as shuffle, yt as filter, z as chunk, zn as nthBy, zr as swapIndices, zt as funnel } from "./chunks/chunk-f44bf888.js";
|
|
2
2
|
export { accumulate, accumulateP, add, addProp, allPass, anyPass, awaitAll, buffer, capitalize, ceil, chunk, chunkP, clamp, clone, compose, concat, concatP, concurrency, conditional, constant, countBy, debounce, defaultTo, difference, differenceBy, differenceByP, differenceP, differenceWith, differenceWithP, divide, doNothing, drop, dropFirstBy, dropLast, dropLastWhile, dropP, dropWhile, endsWith, entries, every, everyP, evolve, execute, executeP, filter, filterP, find, findIndex, findLast, findLastIndex, findP, first, firstBy, flat, flatMap, flatMapP, flatten, flattenP, floor, forEach, forEachObj, forEachP, fromEntries, fromKeys, funnel, groupBy, groupByProp, hasAtLeast, hasOwnProperty, hasSubObject, identity, indexBy, intersection, intersectionBy, intersectionByP, intersectionP, intersectionWith, intersectionWithP, invert, isArray, isBigInt, isBoolean, isDate, isDeepEqual, isDefined, isEmpty, isEmptyish, isError, isFunction, isIncludedIn, isNil, isNonNull, isNonNullish, isNot, isNullish, isNumber, isObjectType, isPlainObject, isPromise, isPromiseLike, isResult, isShallowEqual, isStrictEqual, isString, isSymbol, isTruthy, join, keys, last, length, map, mapKeys, mapP, mapToObj, mapValues, mapWithFeedback, mean, meanBy, median, merge, mergeAll, mergeDeep, multiply, nthBy, objOf, omit, omitBy, once, only, partialBind, partialLastBind, partition, pathOr, peek, peekP, pick, pickBy, pipe, piped, product, prop, pullObject, purry, randomBigInt, randomInteger, randomString, range, rankBy, reduce, reduceP, reverse, round, sample, serialize, serializeP, set, setPath, shuffle, sliceString, some, someP, sort, sortBy, sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy, splice, split, splitAt, splitWhen, startsWith, stringToPath, subtract, sum, sumBy, swapIndices, swapProps, take, takeFirstBy, takeLast, takeLastWhile, takeP, takeWhile, tap, throttle, times, toArray, toArrayP, toCamelCase, toIterator, toIteratorP, toKebabCase, toLowerCase, toSnakeCase, toTitleCase, toUpperCase, truncate, uncapitalize, unique, uniqueBy, uniqueByP, uniqueP, uniqueWith, uniqueWithP, values, when, zip, zipWith };
|
package/dist/result.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as err, c as ExtractErrTypes, d as InferOkType, f as ResultAll, i as Result, l as ExtractOkTypes, n as Err, o as isResult, r as Ok, s as ok, t as ResultError, u as InferErrType } from "./chunks/chunk-
|
|
1
|
+
import { a as err, c as ExtractErrTypes, d as InferOkType, f as ResultAll, i as Result, l as ExtractOkTypes, n as Err, o as isResult, r as Ok, s as ok, t as ResultError, u as InferErrType } from "./chunks/chunk-7e352ea5.js";
|
|
2
2
|
export { Err, ExtractErrTypes, ExtractOkTypes, InferErrType, InferOkType, Ok, Result, ResultAll, ResultError, err, isResult, ok };
|
package/dist/result.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ci as isResult, Si as err, Ti as ResultError, wi as ok, xi as Result } from "./chunks/chunk-
|
|
1
|
+
import { Ci as isResult, Si as err, Ti as ResultError, wi as ok, xi as Result } from "./chunks/chunk-f44bf888.js";
|
|
2
2
|
export { Result, ResultError, err, isResult, ok };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export { AsyncFn, AsyncFnWithThis, Fn, FnWithThis, Nullable, OmitByKey, Optional, SetNullable, SyncFn, SyncFnWithThis, TemplateFn, YieldType };
|
|
1
|
+
import { $ as FindGlobalType, $n as Promisable, $r as TupleToUnion, $t as JsonObject, A as ConditionalSimplify, Ai as SyncFnWithThis, An as NonNegativeInteger, Ar as SimplifyDeep, At as IsLiteral, B as Entries, Bn as PartialDeep, Br as Spread, Bt as IsRequiredKeyOf, C as CamelCasedPropertiesDeep, Ci as OmitByKey, Cn as NegativeFloat, Cr as SetRequired, Ct as InvariantOf, D as ConditionalPick, Di as Fn, Dn as NonEmptyString, Dr as SharedUnionFieldsDeep, Dt as IsEqual, E as ConditionalKeys, Ei as AsyncFnWithThis, En as NonEmptyObject, Er as SharedUnionFields, Et as IsEmptyObject, F as DelimiterCasedPropertiesDeep, Fn as OptionalKeysOf, Fr as SomeExtend, Ft as IsNullable, G as ExcludeExactly, Gn as PascalCasedProperties, Gr as Subtract, Gt as IsUndefined, H as Exact, Hn as PartialOnUndefinedDeep, Hr as StringSlice, Ht as IsSymbolLiteral, I as DigitCharacter, In as Or, Ir as SomeExtendOptions, It as IsNumericLiteral, J as ExclusifyUnion, Jn as PathsOptions, Jr as TaggedUnion, Jt as IsUppercase, K as ExcludeRestElement, Kn as PascalCasedPropertiesDeep, Kr as Sum, Kt as IsUnion, L as DistributedOmit, Ln as OrAll, Lr as Split, Lt as IsOptional, M as Constructor, Mn as OmitDeep, Mr as SnakeCase, Mt as IsNegative, N as DelimiterCase, Nn as OmitIndexSignature, Nr as SnakeCasedProperties, Nt as IsNever, O as ConditionalPickDeep, Oi as FnWithThis, On as NonEmptyTuple, Or as SharedUnionFieldsDeepOptions, Ot as IsFloat, P as DelimiterCasedProperties, Pn as Opaque, Pr as SnakeCasedPropertiesDeep, Pt as IsNull, Q as FindGlobalInstanceType, Qn as Primitive, Qr as TupleToObject, Qt as JsonArray, R as DistributedPick, Rn as OverrideProperties, Rr as SplitOnRestElement, Rt as IsOptionalKeyOf, S as CamelCasedProperties, Si as Optional, Sn as Negative, Sr as SetReadonly, St as Integer, T as ConditionalExcept, Ti as AsyncFn, Tn as NegativeInteger, Tr as SetReturnType, Tt as IsBooleanLiteral, U as Except, Un as PartialOnUndefinedDeepOptions, Ur as Stringified, Ut as IsTuple, V as Entry, Vn as PartialDeepOptions, Vr as StringRepeat, Vt as IsStringLiteral, W as ExceptOptions, Wn as PascalCase, Wr as StructuredCloneable, Wt as IsTupleOptions, X as ExtractRestElement, Xn as PickIndexSignature, Xr as TsConfigJson, Xt as IterableElement, Y as ExtendsStrict, Yn as PickDeep, Yr as Trim, Yt as IsWritableKeyOf, Z as ExtractStrict, Zn as PositiveInfinity, Zr as TupleOf, Zt as Join, _ as Arrayable, _i as WritableDeep, _n as MergeDeep, _r as SetFieldTypeOptions, _t as IfNull, a as AllUnionFields, ai as UnknownArray, an as KebabCasedProperties, ar as Replace, at as GetTagMetadata, b as CamelCase, bi as YieldType, bn as MultidimensionalArray, br as SetOptional, bt as IntClosedRange, c as AndAll, ci as UnknownSet, cn as KeysOfUnion, cr as RequireAtLeastOne, ct as GreaterThanOrEqual, d as ArrayLength, di as UnwrapTagged, dn as LessThanOrEqual, dr as RequiredDeep, dt as HasRequiredKeys, ei as TypedArray, en as JsonPrimitive, er as ReadonlyDeep, et as Finite, f as ArrayReverse, fi as UppercaseLetter, fn as LiteralToPrimitive, fr as RequiredKeysOf, ft as HasWritableKeys, g as ArrayValues, gi as Writable, gn as Merge, gr as SetFieldType, gt as IfNever, h as ArrayTail, hi as WordsOptions, hn as LowercaseLetter, hr as ScreamingSnakeCase, ht as IfEmptyObject, i as AllExtendOptions, ii as UnionToTuple, in as KebabCase, ir as RemovePrefixOptions, it as GetOptions, j as ConditionalSimplifyDeep, ji as TemplateFn, jn as ObjectMerge, jr as SingleKeyObject, jt as IsLowercase, k as ConditionalPickDeepOptions, ki as SyncFn, kn as NonNegative, kr as Simplify, kt as IsInteger, l as ArrayElement, li as UnwrapOpaque, ln as LastArrayElement, lr as RequireExactlyOne, lt as HasOptionalKeys, m as ArraySplice, mi as Words, mn as LiteralUnion, mr as SchemaOptions, mt as IfAny, n as AbstractConstructor, ni as UnionMember, nn as Jsonifiable, nr as ReadonlyTuple, nt as Float, o as Alphanumeric, oi as UnknownMap, on as KebabCasedPropertiesDeep, or as ReplaceOptions, ot as GlobalThis, p as ArraySlice, pi as ValueOf, pn as LiteralToPrimitiveDeep, pr as Schema, pt as If, q as ExcludeStrict, qn as Paths, qr as Tagged, qt as IsUnknown, r as AllExtend, ri as UnionToIntersection, rn as Jsonify, rr as RemovePrefix, rt as Get, s as And, si as UnknownRecord, sn as KeyAsString, sr as RequireAllOrNone, st as GreaterThan, t as AbstractClass, ti as UndefinedOnPartialDeep, tn as JsonValue, tr as ReadonlyKeysOf, tt as FixedLengthArray, u as ArrayIndices, ui as UnwrapPartial, un as LessThan, ur as RequireOneOrNone, ut as HasReadonlyKeys, v as AsyncReturnType, vi as WritableKeysOf, vn as MergeDeepOptions, vr as SetNonNullable, vt as IfUnknown, w as Class, wi as Nullable, wn as NegativeInfinity, wr as SetRequiredDeep, wt as IsAny, x as CamelCaseOptions, xi as SetNullable, xn as MultidimensionalReadonlyArray, xr as SetParameterType, xt as IntRange, y as Asyncify, yi as Xor, yn as MergeExclusive, yr as SetNonNullableDeep, yt as Includes, z as EmptyObject, zn as PackageJson, zr as SplitOptions, zt as IsReadonlyKeyOf } from "./chunks/chunk-4041cd45.js";
|
|
2
|
+
export { AbstractClass, AbstractConstructor, AllExtend, AllExtendOptions, AllUnionFields, Alphanumeric, And, AndAll, ArrayElement, ArrayIndices, ArrayLength, ArrayReverse, ArraySlice, ArraySplice, ArrayTail, ArrayValues, Arrayable, AsyncFn, AsyncFnWithThis, AsyncReturnType, Asyncify, CamelCase, CamelCaseOptions, CamelCasedProperties, CamelCasedPropertiesDeep, Class, ConditionalExcept, ConditionalKeys, ConditionalPick, ConditionalPickDeep, ConditionalPickDeepOptions, ConditionalSimplify, ConditionalSimplifyDeep, Constructor, DelimiterCase, DelimiterCasedProperties, DelimiterCasedPropertiesDeep, DigitCharacter, DistributedOmit, DistributedPick, EmptyObject, Entries, Entry, Exact, Except, ExceptOptions, ExcludeExactly, ExcludeRestElement, ExcludeStrict, ExclusifyUnion, ExtendsStrict, ExtractRestElement, ExtractStrict, FindGlobalInstanceType, FindGlobalType, Finite, FixedLengthArray, Float, Fn, FnWithThis, Get, GetOptions, GetTagMetadata, GlobalThis, GreaterThan, GreaterThanOrEqual, HasOptionalKeys, HasReadonlyKeys, HasRequiredKeys, HasWritableKeys, If, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, Includes, IntClosedRange, IntRange, Integer, InvariantOf, IsAny, IsBooleanLiteral, IsEmptyObject, IsEqual, IsFloat, IsInteger, IsLiteral, IsLowercase, IsNegative, IsNever, IsNull, IsNullable, IsNumericLiteral, IsOptional, IsOptionalKeyOf, IsReadonlyKeyOf, IsRequiredKeyOf, IsStringLiteral, IsSymbolLiteral, IsTuple, IsTupleOptions, IsUndefined, IsUnion, IsUnknown, IsUppercase, IsWritableKeyOf, IterableElement, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, Jsonifiable, Jsonify, KebabCase, KebabCasedProperties, KebabCasedPropertiesDeep, KeyAsString, KeysOfUnion, LastArrayElement, LessThan, LessThanOrEqual, LiteralToPrimitive, LiteralToPrimitiveDeep, LiteralUnion, LowercaseLetter, Merge, MergeDeep, MergeDeepOptions, MergeExclusive, MultidimensionalArray, MultidimensionalReadonlyArray, Negative, NegativeFloat, NegativeInfinity, NegativeInteger, NonEmptyObject, NonEmptyString, NonEmptyTuple, NonNegative, NonNegativeInteger, Nullable, ObjectMerge, OmitByKey, OmitDeep, OmitIndexSignature, Opaque, Optional, OptionalKeysOf, Or, OrAll, OverrideProperties, PackageJson, PartialDeep, PartialDeepOptions, PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions, PascalCase, PascalCasedProperties, PascalCasedPropertiesDeep, Paths, PathsOptions, PickDeep, PickIndexSignature, PositiveInfinity, Primitive, Promisable, ReadonlyDeep, ReadonlyKeysOf, ReadonlyTuple, RemovePrefix, RemovePrefixOptions, Replace, ReplaceOptions, RequireAllOrNone, RequireAtLeastOne, RequireExactlyOne, RequireOneOrNone, RequiredDeep, RequiredKeysOf, Schema, SchemaOptions, ScreamingSnakeCase, SetFieldType, SetFieldTypeOptions, SetNonNullable, SetNonNullableDeep, SetNullable, SetOptional, SetParameterType, SetReadonly, SetRequired, SetRequiredDeep, SetReturnType, SharedUnionFields, SharedUnionFieldsDeep, SharedUnionFieldsDeepOptions, Simplify, SimplifyDeep, SingleKeyObject, SnakeCase, SnakeCasedProperties, SnakeCasedPropertiesDeep, SomeExtend, SomeExtendOptions, Split, SplitOnRestElement, SplitOptions, Spread, StringRepeat, StringSlice, Stringified, StructuredCloneable, Subtract, Sum, SyncFn, SyncFnWithThis, Tagged, TaggedUnion, TemplateFn, Trim, TsConfigJson, TupleOf, TupleToObject, TupleToUnion, TypedArray, UndefinedOnPartialDeep, UnionMember, UnionToIntersection, UnionToTuple, UnknownArray, UnknownMap, UnknownRecord, UnknownSet, UnwrapOpaque, UnwrapPartial, UnwrapTagged, UppercaseLetter, ValueOf, Words, WordsOptions, Writable, WritableDeep, WritableKeysOf, Xor, YieldType };
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Except, IterableElement } from "type-fest";
|
|
2
|
-
|
|
3
|
-
//#region src/types/fn.d.ts
|
|
4
|
-
type Fn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => Return;
|
|
5
|
-
type FnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => Return) & {
|
|
6
|
-
prototype: This;
|
|
7
|
-
};
|
|
8
|
-
type AsyncFn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => PromiseLike<Return>;
|
|
9
|
-
type AsyncFnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => PromiseLike<Return>) & {
|
|
10
|
-
prototype: This;
|
|
11
|
-
};
|
|
12
|
-
type SyncFn<Return = any, Args extends readonly any[] = any[]> = (...args: Args) => Return extends PromiseLike<any> ? never : Return;
|
|
13
|
-
type SyncFnWithThis<Return = any, Args extends readonly any[] = any[], This = unknown> = ((this: This, ...args: Args) => Return extends PromiseLike<any> ? never : Return) & {
|
|
14
|
-
prototype: This;
|
|
15
|
-
};
|
|
16
|
-
type TemplateFn<Return = any> = (template: TemplateStringsArray, ...values: any[]) => Return;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/types/nullable.d.ts
|
|
19
|
-
type Nullable<T> = T | null | undefined;
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/types/omit-by-key.d.ts
|
|
22
|
-
type OmitByKey<ObjectType, KeysType extends keyof ObjectType> = Except<ObjectType, KeysType, {
|
|
23
|
-
requireExactProps: true;
|
|
24
|
-
}>;
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/types/optional.d.ts
|
|
27
|
-
type Optional<T> = T | undefined;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/types/set-nullable.d.ts
|
|
30
|
-
type SetNullable<BaseType, Keys extends keyof BaseType = keyof BaseType> = { [Key in keyof BaseType]: Key extends Keys ? Nullable<BaseType[Key]> : BaseType[Key] };
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/types/yield-type.d.ts
|
|
33
|
-
type YieldType<TargetGeneratorFn extends Fn<Generator | AsyncGenerator>> = IterableElement<ReturnType<TargetGeneratorFn>>;
|
|
34
|
-
declare namespace index_d_exports {
|
|
35
|
-
export { AsyncFn, AsyncFnWithThis, Fn, FnWithThis, Nullable, OmitByKey, Optional, SetNullable, SyncFn, SyncFnWithThis, TemplateFn, YieldType };
|
|
36
|
-
}
|
|
37
|
-
import * as import_type_fest from "type-fest";
|
|
38
|
-
//#endregion
|
|
39
|
-
export { OmitByKey as a, AsyncFnWithThis as c, SyncFn as d, SyncFnWithThis as f, Optional as i, Fn as l, YieldType as n, Nullable as o, TemplateFn as p, SetNullable as r, AsyncFn as s, index_d_exports as t, FnWithThis as u };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
-
var __exportAll = (all, no_symbols) => {
|
|
11
|
-
let target = {};
|
|
12
|
-
for (var name in all) __defProp(target, name, {
|
|
13
|
-
get: all[name],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
return target;
|
|
18
|
-
};
|
|
19
|
-
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
21
|
-
key = keys[i];
|
|
22
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
23
|
-
get: ((k) => from[k]).bind(null, key),
|
|
24
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
30
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
-
value: mod,
|
|
32
|
-
enumerable: true
|
|
33
|
-
}) : target, mod));
|
|
34
|
-
var __require = createRequire(import.meta.url);
|
|
35
|
-
//#endregion
|
|
36
|
-
export { __toESM as a, __require as i, __exportAll as n, __reExport as r, __commonJSMin as t };
|