@ztimson/utils 0.29.0 → 0.29.2

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/time.d.ts CHANGED
@@ -56,7 +56,7 @@ export declare function dayOfYear(date: Date): number;
56
56
  *
57
57
  * @param {string} format How date string will be formatted, default: `YYYY-MM-DD H:mm A`
58
58
  * @param {Date | number | string} date Date or timestamp, defaults to now
59
- * @param tz Set timezone offset
59
+ * @param tz Set timezone offset in: hours (-4) or minutes (430) or IANA string (America/New_York)
60
60
  * @return {string} Formated date
61
61
  */
62
62
  export declare function formatDate(format?: string, date?: Date | number | string, tz?: string | number): string;
package/dist/xml.d.ts CHANGED
@@ -3,6 +3,11 @@
3
3
  * @param {string} xml - The XML string to parse
4
4
  * @returns {Object} An object with `tag`, `attributes`, and `children` properties
5
5
  */
6
+ /**
7
+ * Parses an XML string into a structured JavaScript object (fast-xml-parser format).
8
+ * @param {string} xml - The XML string to parse
9
+ * @returns {Object} An object with tag names as keys and text content or nested objects as values
10
+ */
6
11
  export declare function fromXml(xml: string): any;
7
12
  /**
8
13
  * Converts a JavaScript object into an XML string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",