@ztimson/utils 0.23.23 → 0.24.1

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/jwt.d.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  * @param {string} token JWT to decode
5
5
  * @return {unknown} JWT payload
6
6
  */
7
- export declare function jwtDecode<T>(token: string): T;
7
+ export declare function decodeJwt<T>(token: string): T;
package/dist/misc.d.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  import { PathEvent } from './path-events.ts';
2
+ /**
3
+ * Run a stringified function with arguments asynchronously
4
+ * @param {object} args Map of key/value arguments
5
+ * @param {string} fn Function as string
6
+ * @return {Promise<T>} Function string response
7
+ */
8
+ export declare function asyncFunction<T>(args: object, fn: string): Promise<T>;
2
9
  /**
3
10
  * Get profile image from Gravatar
4
11
  *
package/dist/search.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare function search(rows: any[], search: string, regex?: boolean, transform?: Function): any[];
2
+ export declare function testCondition(condition: string, row: any): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.23.23",
3
+ "version": "0.24.1",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",