@outfitter/types 0.2.2 → 0.2.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/branded.d.ts +1 -1
- package/dist/collections.d.ts +1 -1
- package/dist/deep.d.ts +1 -1
- package/dist/guards.d.ts +1 -1
- package/dist/hash-id.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +19 -19
- package/dist/shared/@outfitter/{types-37k4g2px.d.ts → types-5pp3rm8f.d.ts} +3 -3
- package/dist/short-id.d.ts +2 -2
- package/dist/utilities.d.ts +1 -1
- package/package.json +4 -3
package/dist/branded.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BrandOf, Branded, Email, NonEmptyString, PositiveInt, UUID, Unbrand, brand, email, nonEmptyString, positiveInt, unbrand, uuid } from "./shared/@outfitter/types-8h2pw0fg";
|
|
1
|
+
import { BrandOf, Branded, Email, NonEmptyString, PositiveInt, UUID, Unbrand, brand, email, nonEmptyString, positiveInt, unbrand, uuid } from "./shared/@outfitter/types-8h2pw0fg.js";
|
|
2
2
|
export { uuid, unbrand, positiveInt, nonEmptyString, email, brand, Unbrand, UUID, PositiveInt, NonEmptyString, Email, Branded, BrandOf };
|
package/dist/collections.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NonEmptyArray, chunk, dedupe, first, groupBy, isNonEmptyArray, last, sortBy, toNonEmptyArray } from "./shared/@outfitter/types-czs8ghe2";
|
|
1
|
+
import { NonEmptyArray, chunk, dedupe, first, groupBy, isNonEmptyArray, last, sortBy, toNonEmptyArray } from "./shared/@outfitter/types-czs8ghe2.js";
|
|
2
2
|
export { toNonEmptyArray, sortBy, last, isNonEmptyArray, groupBy, first, dedupe, chunk, NonEmptyArray };
|
package/dist/deep.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepGet, DeepKeys, DeepSet } from "./shared/@outfitter/types-wzjqgmje";
|
|
1
|
+
import { DeepGet, DeepKeys, DeepSet } from "./shared/@outfitter/types-wzjqgmje.js";
|
|
2
2
|
export { DeepSet, DeepKeys, DeepGet };
|
package/dist/guards.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { assertType, createGuard, hasProperty, isDefined, isNonEmptyString, isPlainObject } from "./shared/@outfitter/types-09bemq1h";
|
|
1
|
+
import { assertType, createGuard, hasProperty, isDefined, isNonEmptyString, isPlainObject } from "./shared/@outfitter/types-09bemq1h.js";
|
|
2
2
|
export { isPlainObject, isNonEmptyString, isDefined, hasProperty, createGuard, assertType };
|
package/dist/hash-id.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { hashId } from "./shared/@outfitter/types-pbrhdd5z";
|
|
1
|
+
import { hashId } from "./shared/@outfitter/types-pbrhdd5z.js";
|
|
2
2
|
export { hashId };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { AtLeastOne, DeepPartial, DeepReadonly, ElementOf, ExactlyOne, Mutable, OptionalKeys, Prettify, RequiredKeys, ValueOf, assertNever } from "./shared/@outfitter/types-74msmccb.js";
|
|
2
|
+
import { assertType, createGuard, hasProperty, isDefined, isNonEmptyString, isPlainObject } from "./shared/@outfitter/types-09bemq1h.js";
|
|
3
|
+
import { NonEmptyArray, chunk, dedupe, first, groupBy, isNonEmptyArray, last, sortBy, toNonEmptyArray } from "./shared/@outfitter/types-czs8ghe2.js";
|
|
4
|
+
import { DeepGet, DeepKeys, DeepSet } from "./shared/@outfitter/types-wzjqgmje.js";
|
|
5
|
+
import { ShortId, ShortIdOptions, isShortId, shortId } from "./shared/@outfitter/types-5pp3rm8f.js";
|
|
6
|
+
import { BrandOf, Branded, Email, NonEmptyString, PositiveInt, UUID, Unbrand, brand, email, nonEmptyString, positiveInt, unbrand, uuid } from "./shared/@outfitter/types-8h2pw0fg.js";
|
|
7
|
+
import { hashId } from "./shared/@outfitter/types-pbrhdd5z.js";
|
|
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,17 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./shared/@outfitter/types-
|
|
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";
|
|
3
|
+
assertNever
|
|
4
|
+
} from "./shared/@outfitter/types-j7bhhgdd.js";
|
|
15
5
|
import {
|
|
16
6
|
assertType,
|
|
17
7
|
createGuard,
|
|
@@ -20,13 +10,6 @@ import {
|
|
|
20
10
|
isNonEmptyString,
|
|
21
11
|
isPlainObject
|
|
22
12
|
} 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";
|
|
30
13
|
import {
|
|
31
14
|
brand,
|
|
32
15
|
email,
|
|
@@ -35,6 +18,23 @@ import {
|
|
|
35
18
|
unbrand,
|
|
36
19
|
uuid
|
|
37
20
|
} 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,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Branded } from "./types-8h2pw0fg";
|
|
1
|
+
import { Branded } from "./types-8h2pw0fg.js";
|
|
2
2
|
/**
|
|
3
3
|
* A short identifier string, typically 7-12 characters.
|
|
4
4
|
* Used for human-readable references (e.g., commit SHAs, session IDs).
|
|
@@ -8,10 +8,10 @@ type ShortId = Branded<string, "ShortId">;
|
|
|
8
8
|
* Options for short ID generation.
|
|
9
9
|
*/
|
|
10
10
|
interface ShortIdOptions {
|
|
11
|
-
/** Length of the generated ID. Default: 8 */
|
|
12
|
-
length?: number;
|
|
13
11
|
/** Character set to use. Default: alphanumeric */
|
|
14
12
|
charset?: "alphanumeric" | "hex" | "base62";
|
|
13
|
+
/** Length of the generated ID. Default: 8 */
|
|
14
|
+
length?: number;
|
|
15
15
|
/** Optional prefix to prepend */
|
|
16
16
|
prefix?: string;
|
|
17
17
|
}
|
package/dist/short-id.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ShortId, ShortIdOptions, isShortId, shortId } from "./shared/@outfitter/types-
|
|
2
|
-
import "./shared/@outfitter/types-8h2pw0fg";
|
|
1
|
+
import { ShortId, ShortIdOptions, isShortId, shortId } from "./shared/@outfitter/types-5pp3rm8f.js";
|
|
2
|
+
import "./shared/@outfitter/types-8h2pw0fg.js";
|
|
3
3
|
export { shortId, isShortId, ShortIdOptions, ShortId };
|
package/dist/utilities.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AtLeastOne, DeepPartial, DeepReadonly, ElementOf, ExactlyOne, Mutable, OptionalKeys, Prettify, RequiredKeys, ValueOf, assertNever } from "./shared/@outfitter/types-74msmccb";
|
|
1
|
+
import { AtLeastOne, DeepPartial, DeepReadonly, ElementOf, ExactlyOne, Mutable, OptionalKeys, Prettify, RequiredKeys, ValueOf, assertNever } from "./shared/@outfitter/types-74msmccb.js";
|
|
2
2
|
export { assertNever, ValueOf, RequiredKeys, Prettify, OptionalKeys, Mutable, ExactlyOne, ElementOf, DeepReadonly, DeepPartial, AtLeastOne };
|
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.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -64,10 +64,11 @@
|
|
|
64
64
|
"build": "cd ../.. && bunup --filter @outfitter/types",
|
|
65
65
|
"test": "bun test",
|
|
66
66
|
"typecheck": "tsc --noEmit",
|
|
67
|
-
"clean": "rm -rf dist"
|
|
67
|
+
"clean": "rm -rf dist",
|
|
68
|
+
"prepublishOnly": "bun ../../scripts/check-publish-manifest.ts"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
|
-
"@outfitter/contracts": "0.4.
|
|
71
|
+
"@outfitter/contracts": "0.4.1",
|
|
71
72
|
"better-result": "^2.5.0"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|