@esposter/shared 2.8.1 → 2.10.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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  - ⚖️ [License](#license)
11
11
 
12
- --
12
+ ---
13
13
 
14
14
  ## <a name="license">⚖️ License</a>
15
15
 
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ declare enum Operation {
4
4
  Delete = "Delete",
5
5
  Push = "Push",
6
6
  Read = "Read",
7
+ Unshift = "Unshift",
7
8
  Update = "Update",
8
9
  }
9
10
  //#endregion
@@ -701,7 +702,6 @@ type TupleSplitHead<T extends unknown[], N extends number> = T["length"] extends
701
702
  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;
702
703
  //#endregion
703
704
  //#region src/util/types/TupleSplit.d.ts
704
- // https://stackoverflow.com/questions/67605122/obtain-a-slice-of-a-typescript-parameters-tuple
705
705
  type TupleSplit<T extends unknown[], N extends number> = [TupleSplitHead<T, N>, TupleSplitTail<T, N>];
706
706
  //#endregion
707
707
  //#region src/util/types/SkipFirst.d.ts
@@ -717,12 +717,10 @@ type TupleSlice<T extends unknown[], S extends number, E extends number = T["len
717
717
  declare const exhaustiveGuard: (value: never) => never;
718
718
  //#endregion
719
719
  //#region src/util/id/uuid/constants.d.ts
720
- /* oxlint-disable @typescript-eslint/no-inferrable-types */
721
720
  declare const NIL = "00000000-0000-0000-0000-000000000000";
722
721
  declare const UUIDV4_REGEX: RegExp;
723
- declare const UUIDV4_SEARCH_REGEX: RegExp;
724
722
  //#endregion
725
723
  //#region src/util/id/uuid/uuidValidateV4.d.ts
726
724
  declare const uuidValidateV4: (uuid: string) => boolean;
727
725
  //#endregion
728
- export { CamelToKebab, ExcludeFunctionProperties, FunctionProperties, ID_SEPARATOR, InvalidOperationError, KebabToCamel, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, SkipFirst, TakeFirst, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, UUIDV4_SEARCH_REGEX, capitalize, css, exhaustiveGuard, html, isPlainObject, mergeObjectsStrict, streamToText, toKebabCase, uuidValidateV4 };
726
+ export { CamelToKebab, ExcludeFunctionProperties, FunctionProperties, ID_SEPARATOR, InvalidOperationError, KebabToCamel, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, SkipFirst, TakeFirst, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, capitalize, css, exhaustiveGuard, html, isPlainObject, mergeObjectsStrict, streamToText, toKebabCase, uuidValidateV4 };
package/dist/index.js CHANGED
@@ -31,6 +31,7 @@ let Operation = /* @__PURE__ */ function(Operation$1) {
31
31
  Operation$1["Delete"] = "Delete";
32
32
  Operation$1["Push"] = "Push";
33
33
  Operation$1["Read"] = "Read";
34
+ Operation$1["Unshift"] = "Unshift";
34
35
  Operation$1["Update"] = "Update";
35
36
  return Operation$1;
36
37
  }({});
@@ -86,11 +87,10 @@ const exhaustiveGuard = (value) => {
86
87
  //#region src/util/id/uuid/constants.ts
87
88
  const NIL = "00000000-0000-0000-0000-000000000000";
88
89
  const UUIDV4_REGEX = /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i;
89
- const UUIDV4_SEARCH_REGEX = /[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}/i;
90
90
 
91
91
  //#endregion
92
92
  //#region src/util/id/uuid/uuidValidateV4.ts
93
93
  const uuidValidateV4 = (uuid) => UUIDV4_REGEX.test(uuid);
94
94
 
95
95
  //#endregion
96
- export { ID_SEPARATOR, InvalidOperationError, NIL, NotFoundError, NotInitializedError, Operation, UUIDV4_REGEX, UUIDV4_SEARCH_REGEX, capitalize, css, exhaustiveGuard, html, isPlainObject, mergeObjectsStrict, streamToText, toKebabCase, uuidValidateV4 };
96
+ export { ID_SEPARATOR, InvalidOperationError, NIL, NotFoundError, NotInitializedError, Operation, UUIDV4_REGEX, capitalize, css, exhaustiveGuard, html, isPlainObject, mergeObjectsStrict, streamToText, toKebabCase, uuidValidateV4 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esposter/shared",
3
- "version": "2.8.1",
3
+ "version": "2.10.0",
4
4
  "description": "A library that contains shared typescript code.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Esposter/Esposter/blob/main/packages/shared#readme",
@@ -30,5 +30,5 @@
30
30
  "typecheck": "tsc",
31
31
  "export:gen": "ctix build --config ../configuration/.ctirc-ts"
32
32
  },
33
- "gitHead": "a094ff58832d6a54485dadc5d349a72db80b326c"
33
+ "gitHead": "ccf4ffe4c50cf43881b91045207eb5814ecf1cd3"
34
34
  }