@esposter/shared 1.20.1 → 1.21.0
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/LICENSE +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2020-present Jimmy Chen
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,9 @@ declare const toKebabCase: <T extends string>(string: T) => CamelToKebab<T>;
|
|
|
41
41
|
type KebabToCamel<S extends string> = S extends `${infer T}-${infer U}` ? `${T}${Capitalize<KebabToCamel<U>>}` : S;
|
|
42
42
|
|
|
43
43
|
type TupleSplitHead<T extends unknown[], N extends number> = T["length"] extends N ? T : T extends [...infer R, unknown] ? TupleSplitHead<R, N> : never;
|
|
44
|
+
|
|
44
45
|
type TupleSplitTail<T, N extends number, O extends unknown[] = []> = O["length"] extends N ? T : T extends [infer F, ...infer R] ? TupleSplitTail<[...R], N, [...O, F]> : never;
|
|
46
|
+
|
|
45
47
|
type TupleSplit<T extends unknown[], N extends number> = [TupleSplitHead<T, N>, TupleSplitTail<T, N>];
|
|
46
48
|
|
|
47
49
|
type SkipFirst<T extends unknown[], N extends number> = TupleSplit<T, N>[1];
|
|
@@ -57,4 +59,4 @@ declare const UUIDV4_REGEX: RegExp;
|
|
|
57
59
|
|
|
58
60
|
declare const uuidValidateV4: (uuid: string) => boolean;
|
|
59
61
|
|
|
60
|
-
export { type CamelToKebab, ID_SEPARATOR, InvalidOperationError, type KebabToCamel, type MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, type SkipFirst, type TakeFirst, type TupleSlice, type TupleSplit, UUIDV4_REGEX, capitalize, exhaustiveGuard, isPlainObject, mergeObjectsStrict, parseXmlString, parseXmlValue, toKebabCase, uuidValidateV4 };
|
|
62
|
+
export { type CamelToKebab, ID_SEPARATOR, InvalidOperationError, type KebabToCamel, type MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, type SkipFirst, type TakeFirst, type TupleSlice, type TupleSplit, type TupleSplitHead, type TupleSplitTail, UUIDV4_REGEX, capitalize, exhaustiveGuard, isPlainObject, mergeObjectsStrict, parseXmlString, parseXmlValue, toKebabCase, uuidValidateV4 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esposter/shared",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.21.0",
|
|
4
|
+
"description": "A library that contains shared typescript code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/Esposter/Esposter#readme",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"export:gen": "ctix build --config ../configuration/.ctirc-ts"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@esposter/configuration": "1.
|
|
29
|
+
"@esposter/configuration": "1.21.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "7139886b76bdc28925380145ca16319d1f4824ae"
|
|
32
32
|
}
|