cafe-utility 23.6.0 → 23.8.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 (3) hide show
  1. package/index.d.ts +7 -0
  2. package/index.js +1092 -1076
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -57,6 +57,7 @@ declare function haversineDistanceToMeters(lat1: number, lon1: number, lat2: num
57
57
  declare function roundToNearest(value: number, nearest: number): number;
58
58
  declare function formatDistance(meters: number): string;
59
59
  declare function triangularNumber(n: number): number;
60
+ declare function searchFloat(string: string): number;
60
61
  declare function isObject(value: any, checkForPlainObject?: boolean): value is object;
61
62
  declare function isStrictlyObject(value: any): value is object;
62
63
  declare function isEmptyArray(value: any): boolean;
@@ -83,6 +84,10 @@ declare function asString(string: any, options?: {
83
84
  min?: number;
84
85
  max?: number;
85
86
  }): string;
87
+ declare function asHexString(string: any, options?: {
88
+ name?: string;
89
+ byteLength?: number;
90
+ }): string;
86
91
  declare function asSafeString(string: any, options?: {
87
92
  name?: string;
88
93
  min?: number;
@@ -669,6 +674,7 @@ export declare const Numbers: {
669
674
  roundToNearest: typeof roundToNearest;
670
675
  formatDistance: typeof formatDistance;
671
676
  triangularNumber: typeof triangularNumber;
677
+ searchFloat: typeof searchFloat;
672
678
  };
673
679
  export declare const Promises: {
674
680
  raceFulfilled: typeof raceFulfilled;
@@ -779,6 +785,7 @@ export declare const Types: {
779
785
  isUrl: typeof isUrl;
780
786
  isNullable: typeof isNullable;
781
787
  asString: typeof asString;
788
+ asHexString: typeof asHexString;
782
789
  asSafeString: typeof asSafeString;
783
790
  asNumber: typeof asNumber;
784
791
  asInteger: typeof asInteger;