@dereekb/util 10.1.29 → 10.2.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.
Files changed (46) hide show
  1. package/fetch/LICENSE +21 -0
  2. package/fetch/index.cjs.d.ts +1 -0
  3. package/fetch/index.cjs.js +5480 -0
  4. package/fetch/index.esm.js +5448 -0
  5. package/fetch/package.json +15 -3
  6. package/fetch/src/lib/error.d.ts +7 -0
  7. package/fetch/src/lib/fetch.d.ts +5 -5
  8. package/fetch/src/lib/fetch.page.d.ts +116 -0
  9. package/fetch/src/lib/index.d.ts +1 -0
  10. package/fetch/src/lib/json.d.ts +17 -1
  11. package/index.cjs.js +1440 -1319
  12. package/index.esm.js +1577 -1431
  13. package/package.json +10 -5
  14. package/src/lib/array/array.unique.d.ts +5 -0
  15. package/src/lib/date/date.d.ts +14 -0
  16. package/src/lib/model/model.d.ts +1 -0
  17. package/src/lib/number/round.d.ts +2 -1
  18. package/src/lib/object/object.equal.d.ts +2 -0
  19. package/src/lib/page/page.calculator.d.ts +6 -1
  20. package/src/lib/page/page.d.ts +0 -2
  21. package/src/lib/string/char.d.ts +4 -0
  22. package/src/lib/string/replace.d.ts +29 -1
  23. package/test/CHANGELOG.md +13 -0
  24. package/test/package.json +1 -1
  25. package/test/src/lib/jest.fail.d.ts +22 -3
  26. package/test/src/lib/jest.fail.js +29 -2
  27. package/test/src/lib/jest.fail.js.map +1 -1
  28. package/fetch/CHANGELOG.md +0 -927
  29. package/fetch/src/index.js +0 -5
  30. package/fetch/src/index.js.map +0 -1
  31. package/fetch/src/lib/error.js +0 -31
  32. package/fetch/src/lib/error.js.map +0 -1
  33. package/fetch/src/lib/fetch.js +0 -177
  34. package/fetch/src/lib/fetch.js.map +0 -1
  35. package/fetch/src/lib/fetch.type.js +0 -3
  36. package/fetch/src/lib/fetch.type.js.map +0 -1
  37. package/fetch/src/lib/index.js +0 -11
  38. package/fetch/src/lib/index.js.map +0 -1
  39. package/fetch/src/lib/json.js +0 -80
  40. package/fetch/src/lib/json.js.map +0 -1
  41. package/fetch/src/lib/provider.js +0 -9
  42. package/fetch/src/lib/provider.js.map +0 -1
  43. package/fetch/src/lib/timeout.js +0 -38
  44. package/fetch/src/lib/timeout.js.map +0 -1
  45. package/fetch/src/lib/url.js +0 -102
  46. package/fetch/src/lib/url.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "10.1.29",
3
+ "version": "10.2.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -22,15 +22,20 @@
22
22
  },
23
23
  "./fetch": {
24
24
  "types": "./fetch/src/index.d.ts",
25
- "main": "./fetch/src/index.js",
26
- "require": "./fetch/src/index.js",
27
- "default": "./fetch/src/index.js"
25
+ "node": {
26
+ "require": "./fetch/index.cjs.js",
27
+ "import": "./fetch/index.mjs"
28
+ },
29
+ "browser": {
30
+ "require": "./fetch/index.cjs.js",
31
+ "import": "./fetch/index.esm.js"
32
+ },
33
+ "default": "./fetch/index.cjs.js"
28
34
  }
29
35
  },
30
36
  "peerDependencies": {
31
37
  "make-error": "^1.3.0",
32
38
  "ts-essentials": "^9.1.2",
33
- "lodash": "4.17.21",
34
39
  "extra-set": "^3.0.0"
35
40
  },
36
41
  "dependencies": {},
@@ -34,6 +34,11 @@ export declare function readKeysFromFilterUniqueFunctionAdditionalKeys<T, K exte
34
34
  */
35
35
  export declare function filterUniqueFunction<T, K extends PrimativeKey = PrimativeKey>(readKey: ReadKeyFunction<T, K>, additionalKeysInput?: FilterUniqueFunctionAdditionalKeysInput<T, K>): FilterUniqueFunction<T, K>;
36
36
  export declare function filterUniqueValues<T, K extends PrimativeKey = PrimativeKey>(values: T[], readKey: ReadKeyFunction<T, K>, additionalKeys?: K[]): T[];
37
+ /**
38
+ * Returns true if all input values have unique keys.
39
+ */
40
+ export type IsUniqueKeyedFunction<T> = DecisionFunction<T[]>;
41
+ export declare function isUniqueKeyedFunction<T, K extends PrimativeKey = PrimativeKey>(readKey: ReadKeyFunction<T, K>): IsUniqueKeyedFunction<T>;
37
42
  /**
38
43
  * Function that returns true for a value the first time that value's key is visited. Will return false for all visits after that.
39
44
  */
@@ -3,6 +3,10 @@ import { type Maybe } from '../value/maybe.type';
3
3
  * The past or future direction.
4
4
  */
5
5
  export type DateRelativeDirection = 'past' | 'future';
6
+ /**
7
+ * Hour, minute, or second as a string.
8
+ */
9
+ export type DateHourMinuteOrSecond = 'hour' | 'minute' | 'second';
6
10
  /**
7
11
  * A valid ISO8601 formatted date string.
8
12
  *
@@ -154,6 +158,8 @@ export declare function isMonthDaySlashDate(input: string): input is MonthDaySla
154
158
  export declare function monthDaySlashDateToDateString(slashDate: MonthDaySlashDate): ISO8601DayString;
155
159
  /**
156
160
  * Time in seconds (instead of ms) since the epoch.
161
+ *
162
+ * Returned by Date.getTime().
157
163
  */
158
164
  export type UnixDateTimeNumber = number;
159
165
  /**
@@ -211,3 +217,11 @@ export type DateRelativeState = DateRelativeDirection | 'present';
211
217
  * @returns
212
218
  */
213
219
  export declare function isDate(value: unknown): value is Date;
220
+ /**
221
+ * Returns true if the two input dates are equal.
222
+ *
223
+ * @param a
224
+ * @param b
225
+ * @returns
226
+ */
227
+ export declare function isEqualDate(a: Date, b: Date): boolean;
@@ -20,6 +20,7 @@ export declare const DEFAULT_UNKNOWN_MODEL_TYPE_STRING: ModelTypeString;
20
20
  export interface UniqueModel {
21
21
  id?: ModelKey;
22
22
  }
23
+ export type UniqueModelWithId = Required<UniqueModel>;
23
24
  export interface TypedModel<M extends ModelTypeString = ModelTypeString> {
24
25
  type: M;
25
26
  }
@@ -1,7 +1,8 @@
1
1
  import { type MapFunction } from '../value/map';
2
2
  import { type Maybe } from '../value/maybe.type';
3
3
  import { type AsNumberInput } from './number';
4
- export type NumberRounding = 'none' | 'floor' | 'ceil' | 'round';
4
+ export type FloorOrCeilRounding = 'floor' | 'ceil';
5
+ export type NumberRounding = 'none' | FloorOrCeilRounding | 'round';
5
6
  export type RoundingFunction = MapFunction<number, number>;
6
7
  export declare function roundingFunction(type: NumberRounding): RoundingFunction;
7
8
  export type RoundingInput = NumberRounding | RoundingFunction;
@@ -2,6 +2,8 @@ import { type FieldOfType } from '../key';
2
2
  import { type EqualityComparatorFunction } from '../value/comparator';
3
3
  /**
4
4
  * Performs a deep comparison to check if all values on the input filters are equal.
5
+ *
6
+ * Recursively compares Arrays, Objects, Maps, Sets, Primatives, and Dates.
5
7
  */
6
8
  export declare function areEqualPOJOValues<F>(a: F, b: F): boolean;
7
9
  /**
@@ -1,11 +1,16 @@
1
1
  import { type PageNumber, type Page } from './page';
2
+ /**
3
+ * @deprecated
4
+ */
2
5
  export interface PageCalculatorConfig {
3
6
  pageSize: number;
4
7
  limitKey?: string;
5
8
  skipKey?: string;
6
9
  }
7
10
  /**
8
- * Page calcuaktion context for calculating the amount to skip/etc.
11
+ * Page calculation context for calculating the amount to skip/etc.
12
+ *
13
+ * @deprecated
9
14
  */
10
15
  export declare class PageCalculator {
11
16
  readonly pageSize: number;
@@ -18,8 +18,6 @@ export type PageNumber = number;
18
18
  export interface Page {
19
19
  /**
20
20
  * Current page number.
21
- *
22
- * // TODO (COMPAT): Rename to pageNumber
23
21
  */
24
22
  page: PageNumber;
25
23
  }
@@ -16,6 +16,10 @@ export interface FirstAndLastCharacterOccurrence {
16
16
  * @returns
17
17
  */
18
18
  export declare function firstAndLastCharacterOccurrence(input: string, find: string): FirstAndLastCharacterOccurrence;
19
+ /**
20
+ * Returns true if the input string contains the character (or string) to find.
21
+ */
22
+ export declare function stringContains(input: string, find: string): boolean;
19
23
  /**
20
24
  * Function that replaces the last character with the configured replacement string if it is any of the configured values.
21
25
  */
@@ -21,6 +21,34 @@ export declare const REGEX_SPECIAL_CHARACTERS_SET: Set<string>;
21
21
  * @param find
22
22
  */
23
23
  export declare function findStringsRegexString(find: ArrayOrValue<string>): string;
24
+ export interface EscapeStringCharactersFunctionConfig {
25
+ /**
26
+ * The set of characters to find and use the escapeCharacter() function on.
27
+ *
28
+ * Targets should be individual characters. Strings of more than one character are ignored.
29
+ */
30
+ readonly escapeTargets: Iterable<string> | Set<string>;
31
+ /**
32
+ * Escapes the target character. Can return any string to properly "escape" the character.
33
+ *
34
+ * @param char
35
+ * @returns
36
+ */
37
+ readonly escapeCharacter: (char: string) => string;
38
+ }
39
+ /**
40
+ * Function that properly "escapes" specific characters in a string.
41
+ *
42
+ * How the characters are escaped is determined by the function.
43
+ */
44
+ export type EscapeStringCharactersFunction = (input: string) => string;
45
+ /**
46
+ * Creates an EscapeStringCharactersFunction
47
+ *
48
+ * @param config
49
+ * @returns
50
+ */
51
+ export declare function escapeStringCharactersFunction(config: EscapeStringCharactersFunctionConfig): EscapeStringCharactersFunction;
24
52
  /**
25
53
  * Escapes the input string to be usable in a Regex value.
26
54
  *
@@ -28,7 +56,7 @@ export declare function findStringsRegexString(find: ArrayOrValue<string>): stri
28
56
  *
29
57
  * @param input
30
58
  */
31
- export declare function escapeStringForRegex(input: string): string;
59
+ export declare const escapeStringForRegex: EscapeStringCharactersFunction;
32
60
  export type FindAllCharacterOccurencesFunction = (input: string, max?: Maybe<number>) => number[];
33
61
  export declare function findAllCharacterOccurencesFunction(characterSet: Set<string>): FindAllCharacterOccurencesFunction;
34
62
  /**
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [10.2.0](https://github.com/dereekb/dbx-components/compare/v10.1.30-dev...v10.2.0) (2024-11-07)
6
+
7
+
8
+ ### Features
9
+
10
+ * zoho recruit ([#26](https://github.com/dereekb/dbx-components/issues/26)) ([8e028fd](https://github.com/dereekb/dbx-components/commit/8e028fd6fc57fb276ce04d37ce010fb5a42d4157))
11
+
12
+
13
+
14
+ ## [10.1.30](https://github.com/dereekb/dbx-components/compare/v10.1.29-dev...v10.1.30) (2024-10-23)
15
+
16
+
17
+
5
18
  ## [10.1.29](https://github.com/dereekb/dbx-components/compare/v10.1.28-dev...v10.1.29) (2024-10-20)
6
19
 
7
20
 
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "10.1.29",
3
+ "version": "10.2.0",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@dereekb/util": "*"
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Since fail() was silently removed, we redefine it.
5
5
  */
6
- import { PromiseReference, PromiseOrValue } from '@dereekb/util';
6
+ import { PromiseReference, PromiseOrValue, ClassType, Maybe, ClassLikeType } from '@dereekb/util';
7
7
  import { BaseError } from 'make-error';
8
8
  export interface JestDoneCallback {
9
9
  (...args: any[]): any;
@@ -37,18 +37,37 @@ export declare function failSuccessfully(message?: string): never;
37
37
  export declare class JestUnexpectedSuccessFailureError extends BaseError {
38
38
  }
39
39
  export declare function failDueToSuccessError(message?: string): JestUnexpectedSuccessFailureError;
40
+ /**
41
+ * Error thrown when the error type was different than the expected type.
42
+ */
43
+ export declare class JestExpeectedErrorOfSpecificTypeError extends BaseError {
44
+ constructor(encounteredType: unknown, expectedType?: Maybe<ClassLikeType | string>);
45
+ }
40
46
  export declare function failTest(message?: string): never;
41
47
  export declare function failDueToSuccess(): never;
42
48
  export declare function failWithDoneDueToSuccess(done: JestDoneCallback): void;
43
49
  export declare function EXPECT_ERROR_DEFAULT_HANDLER(e: unknown): void;
50
+ /**
51
+ * Used to assert additional information about the expected error.
52
+ *
53
+ * Can assert within this function, or return a boolean. A boolean returning false means the test should throw a JestExpeectedErrorOfSpecificTypeError.
54
+ */
55
+ export type JestExpectFailAssertionFunction = (error: unknown) => PromiseOrValue<Maybe<boolean> | void>;
56
+ /**
57
+ * Creates a JestExpeectedErrorOfSpecificTypeError that asserts the encountered error is of the expected type using the instanceof keyword.
58
+ *
59
+ * @param expectedType
60
+ * @returns
61
+ */
62
+ export declare function jestExpectFailAssertErrorType(expectedType: ClassType | ClassLikeType | typeof Error | any): JestExpectFailAssertionFunction;
44
63
  /**
45
64
  * Function that expects any failure to be thrown, then throws a JestExpectedFailError.
46
65
  *
47
66
  * @param errorFn
48
67
  * @param handleError
49
68
  */
50
- export declare function expectFail(errorFn: () => void): void;
51
- export declare function expectFail(errorFn: () => Promise<void>): Promise<void>;
69
+ export declare function expectFail(errorFn: () => void, assertFailType?: JestExpectFailAssertionFunction): void;
70
+ export declare function expectFail(errorFn: () => Promise<void>, assertFailType?: JestExpectFailAssertionFunction): Promise<void>;
52
71
  /**
53
72
  * Function that expects a JestExpectedFailError to be thrown.
54
73
  *
@@ -5,7 +5,7 @@
5
5
  * Since fail() was silently removed, we redefine it.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.fakeDoneHandler = exports.itShouldFail = exports.shouldFail = exports.expectSuccessfulFail = exports.expectFail = exports.EXPECT_ERROR_DEFAULT_HANDLER = exports.failWithDoneDueToSuccess = exports.failDueToSuccess = exports.failTest = exports.failDueToSuccessError = exports.JestUnexpectedSuccessFailureError = exports.failSuccessfully = exports.failSuccessfullyError = exports.JestExpectedFailError = exports.failWithJestDoneCallback = void 0;
8
+ exports.fakeDoneHandler = exports.itShouldFail = exports.shouldFail = exports.expectSuccessfulFail = exports.expectFail = exports.jestExpectFailAssertErrorType = exports.EXPECT_ERROR_DEFAULT_HANDLER = exports.failWithDoneDueToSuccess = exports.failDueToSuccess = exports.failTest = exports.JestExpeectedErrorOfSpecificTypeError = exports.failDueToSuccessError = exports.JestUnexpectedSuccessFailureError = exports.failSuccessfully = exports.failSuccessfullyError = exports.JestExpectedFailError = exports.failWithJestDoneCallback = void 0;
9
9
  const util_1 = require("@dereekb/util");
10
10
  const make_error_1 = require("make-error");
11
11
  /**
@@ -47,6 +47,15 @@ function failDueToSuccessError(message) {
47
47
  return new JestUnexpectedSuccessFailureError(message !== null && message !== void 0 ? message : 'expected an error to occur but was successful instead');
48
48
  }
49
49
  exports.failDueToSuccessError = failDueToSuccessError;
50
+ /**
51
+ * Error thrown when the error type was different than the expected type.
52
+ */
53
+ class JestExpeectedErrorOfSpecificTypeError extends make_error_1.BaseError {
54
+ constructor(encounteredType, expectedType) {
55
+ super(`The error encountered was not of the expected type. Expected: ${expectedType !== null && expectedType !== void 0 ? expectedType : 'n/a'}, but encountered: ${encounteredType} `);
56
+ }
57
+ }
58
+ exports.JestExpeectedErrorOfSpecificTypeError = JestExpeectedErrorOfSpecificTypeError;
50
59
  function failTest(message) {
51
60
  throw failDueToSuccessError(message);
52
61
  }
@@ -68,12 +77,30 @@ function EXPECT_ERROR_DEFAULT_HANDLER(e) {
68
77
  }
69
78
  }
70
79
  exports.EXPECT_ERROR_DEFAULT_HANDLER = EXPECT_ERROR_DEFAULT_HANDLER;
71
- function expectFail(errorFn) {
80
+ /**
81
+ * Creates a JestExpeectedErrorOfSpecificTypeError that asserts the encountered error is of the expected type using the instanceof keyword.
82
+ *
83
+ * @param expectedType
84
+ * @returns
85
+ */
86
+ function jestExpectFailAssertErrorType(expectedType) {
87
+ return (error) => {
88
+ if (!(error instanceof expectedType)) {
89
+ throw new JestExpeectedErrorOfSpecificTypeError(error, expectedType);
90
+ }
91
+ };
92
+ }
93
+ exports.jestExpectFailAssertErrorType = jestExpectFailAssertErrorType;
94
+ function expectFail(errorFn, assertFailType) {
72
95
  function handleError(e) {
73
96
  if (e instanceof JestUnexpectedSuccessFailureError) {
74
97
  throw e;
75
98
  }
76
99
  else {
100
+ const assertionResult = assertFailType === null || assertFailType === void 0 ? void 0 : assertFailType(e);
101
+ if (assertionResult === false) {
102
+ throw new JestExpeectedErrorOfSpecificTypeError(e);
103
+ }
77
104
  failSuccessfully();
78
105
  }
79
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jest.fail.js","sourceRoot":"","sources":["../../../../../../packages/util/test/src/lib/jest.fail.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wCAA+G;AAC/G,2CAAuC;AAavC;;;;GAIG;AACH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