@duplojs/utils 1.3.20 → 1.3.22
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/README.md +21 -1
- package/dist/array/index.cjs +3 -0
- package/dist/array/index.d.ts +1 -0
- package/dist/array/index.mjs +1 -0
- package/dist/array/select.cjs +35 -0
- package/dist/array/select.d.ts +18 -0
- package/dist/array/select.mjs +32 -0
- package/dist/clean/constraint/base.d.ts +1 -1
- package/dist/clean/constraint/defaultConstraint/number.d.ts +4 -4
- package/dist/clean/constraint/defaultConstraint/string.d.ts +3 -3
- package/dist/clean/entity.cjs +4 -0
- package/dist/clean/entity.d.ts +1 -0
- package/dist/clean/entity.mjs +4 -0
- package/dist/clean/flag.d.ts +1 -0
- package/dist/clean/repository.d.ts +4 -4
- package/dist/clean/useCase.cjs +4 -3
- package/dist/clean/useCase.d.ts +2 -2
- package/dist/clean/useCase.mjs +4 -3
- package/dist/common/index.d.ts +1 -1
- package/dist/common/{toJson.d.ts → toJSON.d.ts} +1 -1
- package/dist/dataParser/extended/object.cjs +16 -4
- package/dist/dataParser/extended/object.d.ts +13 -5
- package/dist/dataParser/extended/object.mjs +20 -8
- package/dist/dataParser/identifier.d.ts +2 -2
- package/dist/dataParser/index.cjs +4 -0
- package/dist/dataParser/index.mjs +4 -4
- package/dist/dataParser/parsers/array/index.d.ts +1 -1
- package/dist/dataParser/parsers/object/omit.cjs +5 -1
- package/dist/dataParser/parsers/object/omit.d.ts +2 -1
- package/dist/dataParser/parsers/object/omit.mjs +5 -2
- package/dist/dataParser/parsers/object/partial.cjs +5 -1
- package/dist/dataParser/parsers/object/partial.d.ts +1 -0
- package/dist/dataParser/parsers/object/partial.mjs +5 -2
- package/dist/dataParser/parsers/object/pick.cjs +6 -2
- package/dist/dataParser/parsers/object/pick.d.ts +3 -2
- package/dist/dataParser/parsers/object/pick.mjs +6 -3
- package/dist/dataParser/parsers/object/required.cjs +5 -1
- package/dist/dataParser/parsers/object/required.d.ts +1 -0
- package/dist/dataParser/parsers/object/required.mjs +5 -2
- package/dist/dataParser/parsers/refine.cjs +1 -1
- package/dist/dataParser/parsers/refine.d.ts +1 -1
- package/dist/dataParser/parsers/refine.mjs +1 -1
- package/dist/either/future/create.d.ts +1 -1
- package/dist/generator/asyncChunk.cjs +24 -0
- package/dist/generator/asyncChunk.d.ts +2 -0
- package/dist/generator/asyncChunk.mjs +22 -0
- package/dist/generator/asyncLoop.d.ts +3 -10
- package/dist/generator/asyncMap.cjs +1 -1
- package/dist/generator/asyncMap.d.ts +2 -2
- package/dist/generator/asyncMap.mjs +1 -1
- package/dist/generator/index.cjs +2 -0
- package/dist/generator/index.d.ts +1 -0
- package/dist/generator/index.mjs +1 -0
- package/dist/generator/loop.d.ts +4 -5
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/metadata.json +4419 -0
- package/dist/object/omit.d.ts +2 -2
- package/dist/object/pick.d.ts +2 -2
- package/dist/string/capitalize.cjs +1 -1
- package/dist/string/capitalize.mjs +1 -1
- package/dist/string/uncapitalize.cjs +1 -1
- package/dist/string/uncapitalize.mjs +1 -1
- package/package.json +37 -5
- /package/dist/common/{toJson.cjs → toJSON.cjs} +0 -0
- /package/dist/common/{toJson.mjs → toJSON.mjs} +0 -0
package/dist/object/omit.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { type Adaptor } from "../common/types/adaptor";
|
|
|
3
3
|
import { type GetPropsWithValue } from "./types/getPropsWithValue";
|
|
4
4
|
import { type PartialKeys } from "./types";
|
|
5
5
|
type ComputeResultWithOmitIsObject<GenericInput extends object, GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>>> = SimplifyTopLevel<Omit<GenericInput, GetPropsWithValue<GenericOmitValue, true>> extends infer InferredValue extends object ? PartialKeys<InferredValue, Adaptor<GetPropsWithValue<GenericOmitValue, boolean> | GetPropsWithValue<GenericOmitValue, boolean | undefined> | GetPropsWithValue<GenericOmitValue, true | undefined>, keyof InferredValue>> : never>;
|
|
6
|
-
export declare function omit<GenericInput extends object,
|
|
7
|
-
export declare function omit<GenericInput extends object, GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(input: GenericInput, omitValue: GenericOmitValue): GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithOmitIsObject<GenericInput, GenericOmitValue> : SimplifyTopLevel<Omit<GenericInput, Adaptor<GenericOmitValue, ObjectKey[]>[number]>>;
|
|
6
|
+
export declare function omit<GenericInput extends object, const GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(omitValue: GenericOmitValue): (input: GenericInput) => GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithOmitIsObject<GenericInput, GenericOmitValue> : SimplifyTopLevel<Omit<GenericInput, Adaptor<GenericOmitValue, readonly ObjectKey[]>[number]>>;
|
|
7
|
+
export declare function omit<GenericInput extends object, const GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(input: GenericInput, omitValue: GenericOmitValue): GenericOmitValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithOmitIsObject<GenericInput, GenericOmitValue> : SimplifyTopLevel<Omit<GenericInput, Adaptor<GenericOmitValue, readonly ObjectKey[]>[number]>>;
|
|
8
8
|
export {};
|
package/dist/object/pick.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { type ObjectKey, type SimplifyTopLevel } from "../common";
|
|
|
2
2
|
import { type Adaptor } from "../common/types/adaptor";
|
|
3
3
|
import { type GetPropsWithValue } from "./types/getPropsWithValue";
|
|
4
4
|
type ComputeResultWithPickIsObject<GenericInput extends object, GenericPickValue extends Partial<Record<keyof GenericInput, boolean>>> = SimplifyTopLevel<Pick<GenericInput, Adaptor<GetPropsWithValue<GenericPickValue, true>, keyof GenericInput>> & Partial<Pick<GenericInput, Adaptor<GetPropsWithValue<GenericPickValue, boolean> | GetPropsWithValue<GenericPickValue, boolean | undefined> | GetPropsWithValue<GenericPickValue, true | undefined>, keyof GenericInput>>>>;
|
|
5
|
-
export declare function pick<GenericInput extends object,
|
|
6
|
-
export declare function pick<GenericInput extends object, GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(input: GenericInput, pickValue: GenericPickValue): GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithPickIsObject<GenericInput, GenericPickValue> : SimplifyTopLevel<Pick<GenericInput, Adaptor<GenericPickValue, ObjectKey[]>[number]>>;
|
|
5
|
+
export declare function pick<GenericInput extends object, const GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(pickValue: GenericPickValue): (input: GenericInput) => GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithPickIsObject<GenericInput, GenericPickValue> : SimplifyTopLevel<Pick<GenericInput, Adaptor<GenericPickValue, readonly ObjectKey[]>[number]>>;
|
|
6
|
+
export declare function pick<GenericInput extends object, const GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> | readonly (keyof GenericInput)[]>(input: GenericInput, pickValue: GenericPickValue): GenericPickValue extends Partial<Record<keyof GenericInput, boolean>> ? ComputeResultWithPickIsObject<GenericInput, GenericPickValue> : SimplifyTopLevel<Pick<GenericInput, Adaptor<GenericPickValue, readonly ObjectKey[]>[number]>>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duplojs/utils",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"author":
|
|
3
|
+
"version": "1.3.22",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "mathcovax",
|
|
6
|
+
"url": "https://github.com/mathcovax"
|
|
7
|
+
},
|
|
8
|
+
"contributors": [
|
|
9
|
+
{
|
|
10
|
+
"name": "zeriix",
|
|
11
|
+
"url": "https://github.com/ZeRiix"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
5
14
|
"license": "MIT",
|
|
6
15
|
"type": "module",
|
|
7
16
|
"repository": {
|
|
@@ -10,11 +19,14 @@
|
|
|
10
19
|
},
|
|
11
20
|
"scripts": {
|
|
12
21
|
"build": "rollup --config",
|
|
22
|
+
"docs:dev": "npm -w docs run docs:dev",
|
|
23
|
+
"docs:build": "npm -w docs run docs:build",
|
|
24
|
+
"docs:preview": "npm -w docs run docs:preview",
|
|
13
25
|
"test:tu": "vitest --coverage",
|
|
14
26
|
"test:tu:bench": "vitest bench",
|
|
15
27
|
"test:tu:watch": "vitest --coverage --watch",
|
|
16
28
|
"test:tu:update": "vitest --coverage --update",
|
|
17
|
-
"test:types": "tsc -p tsconfig.test.json",
|
|
29
|
+
"test:types": "tsc -p tsconfig.test.json && npm -w docs run test:types",
|
|
18
30
|
"test:lint": "eslint",
|
|
19
31
|
"test:lint:fix": "eslint --fix",
|
|
20
32
|
"prepare": "husky"
|
|
@@ -100,6 +112,7 @@
|
|
|
100
112
|
"devDependencies": {
|
|
101
113
|
"@commitlint/cli": "19.8.1",
|
|
102
114
|
"@commitlint/config-conventional": "19.8.1",
|
|
115
|
+
"@duplojs/dev-tools": "0.1.0",
|
|
103
116
|
"@duplojs/eslint": "0.5.0",
|
|
104
117
|
"@rollup/plugin-typescript": "12.1.4",
|
|
105
118
|
"@types/node": "24.3.0",
|
|
@@ -117,9 +130,28 @@
|
|
|
117
130
|
"vitest": "3.2.4"
|
|
118
131
|
},
|
|
119
132
|
"workspaces": [
|
|
120
|
-
"integration"
|
|
133
|
+
"integration",
|
|
134
|
+
"docs"
|
|
135
|
+
],
|
|
136
|
+
"keywords": [
|
|
137
|
+
"typescript",
|
|
138
|
+
"utils",
|
|
139
|
+
"functional-programming",
|
|
140
|
+
"immutable",
|
|
141
|
+
"pipe",
|
|
142
|
+
"curry",
|
|
143
|
+
"data-parser",
|
|
144
|
+
"pattern-matching",
|
|
145
|
+
"either",
|
|
146
|
+
"monad",
|
|
147
|
+
"array-utils",
|
|
148
|
+
"object-utils",
|
|
149
|
+
"string-utils",
|
|
150
|
+
"date-utils",
|
|
151
|
+
"ddd",
|
|
152
|
+
"clean-architecture",
|
|
153
|
+
"duplojs"
|
|
121
154
|
],
|
|
122
|
-
"keywords": [],
|
|
123
155
|
"engines": {
|
|
124
156
|
"node": ">=22.15.1"
|
|
125
157
|
}
|
|
File without changes
|
|
File without changes
|