@outfitter/types 0.2.0 → 0.2.1
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/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/package.json +22 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { assertType, createGuard, hasProperty, isDefined, isNonEmptyString, isPlainObject } from "./shared/@outfitter/types-09bemq1h";
|
|
1
|
+
import { hashId } from "./shared/@outfitter/types-pbrhdd5z";
|
|
3
2
|
import { NonEmptyArray, chunk, dedupe, first, groupBy, isNonEmptyArray, last, sortBy, toNonEmptyArray } from "./shared/@outfitter/types-czs8ghe2";
|
|
3
|
+
import { assertType, createGuard, hasProperty, isDefined, isNonEmptyString, isPlainObject } from "./shared/@outfitter/types-09bemq1h";
|
|
4
|
+
import { AtLeastOne, DeepPartial, DeepReadonly, ElementOf, ExactlyOne, Mutable, OptionalKeys, Prettify, RequiredKeys, ValueOf, assertNever } from "./shared/@outfitter/types-74msmccb";
|
|
4
5
|
import { DeepGet, DeepKeys, DeepSet } from "./shared/@outfitter/types-wzjqgmje";
|
|
5
6
|
import { ShortId, ShortIdOptions, isShortId, shortId } from "./shared/@outfitter/types-37k4g2px";
|
|
6
7
|
import { BrandOf, Branded, Email, NonEmptyString, PositiveInt, UUID, Unbrand, brand, email, nonEmptyString, positiveInt, unbrand, uuid } from "./shared/@outfitter/types-8h2pw0fg";
|
|
7
|
-
import { hashId } from "./shared/@outfitter/types-pbrhdd5z";
|
|
8
8
|
export { uuid, unbrand, toNonEmptyArray, sortBy, shortId, positiveInt, nonEmptyString, last, isShortId, isPlainObject, isNonEmptyString, isNonEmptyArray, isDefined, hashId, hasProperty, groupBy, first, email, dedupe, createGuard, chunk, brand, assertType, assertNever, ValueOf, Unbrand, UUID, ShortIdOptions, ShortId, RequiredKeys, Prettify, PositiveInt, OptionalKeys, NonEmptyString, NonEmptyArray, Mutable, ExactlyOne, Email, ElementOf, DeepSet, DeepReadonly, DeepPartial, DeepKeys, DeepGet, Branded, BrandOf, AtLeastOne };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./shared/@outfitter/types-
|
|
3
|
+
hashId
|
|
4
|
+
} from "./shared/@outfitter/types-21jjnen5.js";
|
|
5
|
+
import {
|
|
6
|
+
chunk,
|
|
7
|
+
dedupe,
|
|
8
|
+
first,
|
|
9
|
+
groupBy,
|
|
10
|
+
isNonEmptyArray,
|
|
11
|
+
last,
|
|
12
|
+
sortBy,
|
|
13
|
+
toNonEmptyArray
|
|
14
|
+
} from "./shared/@outfitter/types-0498nxg9.js";
|
|
5
15
|
import {
|
|
6
16
|
assertType,
|
|
7
17
|
createGuard,
|
|
@@ -10,6 +20,13 @@ import {
|
|
|
10
20
|
isNonEmptyString,
|
|
11
21
|
isPlainObject
|
|
12
22
|
} from "./shared/@outfitter/types-p6pshw40.js";
|
|
23
|
+
import {
|
|
24
|
+
assertNever
|
|
25
|
+
} from "./shared/@outfitter/types-j7bhhgdd.js";
|
|
26
|
+
import {
|
|
27
|
+
isShortId,
|
|
28
|
+
shortId
|
|
29
|
+
} from "./shared/@outfitter/types-pptx81c9.js";
|
|
13
30
|
import {
|
|
14
31
|
brand,
|
|
15
32
|
email,
|
|
@@ -18,23 +35,6 @@ import {
|
|
|
18
35
|
unbrand,
|
|
19
36
|
uuid
|
|
20
37
|
} from "./shared/@outfitter/types-p65exk68.js";
|
|
21
|
-
import {
|
|
22
|
-
chunk,
|
|
23
|
-
dedupe,
|
|
24
|
-
first,
|
|
25
|
-
groupBy,
|
|
26
|
-
isNonEmptyArray,
|
|
27
|
-
last,
|
|
28
|
-
sortBy,
|
|
29
|
-
toNonEmptyArray
|
|
30
|
-
} from "./shared/@outfitter/types-0498nxg9.js";
|
|
31
|
-
import {
|
|
32
|
-
isShortId,
|
|
33
|
-
shortId
|
|
34
|
-
} from "./shared/@outfitter/types-pptx81c9.js";
|
|
35
|
-
import {
|
|
36
|
-
hashId
|
|
37
|
-
} from "./shared/@outfitter/types-21jjnen5.js";
|
|
38
38
|
export {
|
|
39
39
|
uuid,
|
|
40
40
|
unbrand,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outfitter/types",
|
|
3
3
|
"description": "Branded types, type guards, and type utilities for Outfitter",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -9,22 +9,16 @@
|
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
|
-
"./deep": {
|
|
13
|
-
"import": {
|
|
14
|
-
"types": "./dist/deep.d.ts",
|
|
15
|
-
"default": "./dist/deep.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
12
|
".": {
|
|
19
13
|
"import": {
|
|
20
14
|
"types": "./dist/index.d.ts",
|
|
21
15
|
"default": "./dist/index.js"
|
|
22
16
|
}
|
|
23
17
|
},
|
|
24
|
-
"./
|
|
18
|
+
"./branded": {
|
|
25
19
|
"import": {
|
|
26
|
-
"types": "./dist/
|
|
27
|
-
"default": "./dist/
|
|
20
|
+
"types": "./dist/branded.d.ts",
|
|
21
|
+
"default": "./dist/branded.js"
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
"./collections": {
|
|
@@ -33,10 +27,16 @@
|
|
|
33
27
|
"default": "./dist/collections.js"
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
|
-
"./
|
|
30
|
+
"./deep": {
|
|
37
31
|
"import": {
|
|
38
|
-
"types": "./dist/
|
|
39
|
-
"default": "./dist/
|
|
32
|
+
"types": "./dist/deep.d.ts",
|
|
33
|
+
"default": "./dist/deep.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"./guards": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/guards.d.ts",
|
|
39
|
+
"default": "./dist/guards.js"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"./hash-id": {
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"default": "./dist/hash-id.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"./
|
|
48
|
+
"./package.json": "./package.json",
|
|
49
|
+
"./short-id": {
|
|
49
50
|
"import": {
|
|
50
|
-
"types": "./dist/
|
|
51
|
-
"default": "./dist/
|
|
51
|
+
"types": "./dist/short-id.d.ts",
|
|
52
|
+
"default": "./dist/short-id.js"
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
|
-
"./
|
|
55
|
+
"./utilities": {
|
|
55
56
|
"import": {
|
|
56
|
-
"types": "./dist/
|
|
57
|
-
"default": "./dist/
|
|
57
|
+
"types": "./dist/utilities.d.ts",
|
|
58
|
+
"default": "./dist/utilities.js"
|
|
58
59
|
}
|
|
59
|
-
}
|
|
60
|
-
"./package.json": "./package.json"
|
|
60
|
+
}
|
|
61
61
|
},
|
|
62
62
|
"sideEffects": false,
|
|
63
63
|
"scripts": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"clean": "rm -rf dist"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@outfitter/contracts": "0.
|
|
70
|
+
"@outfitter/contracts": "0.3.0",
|
|
71
71
|
"better-result": "^2.5.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|