@tamtamchik/json-deep-sort 1.0.0 → 1.0.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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Function to sort JSON data.
3
+ * @param {any} data - The data to be sorted.
4
+ * @param {boolean} [asc=true] - Whether to sort in ascending order.
5
+ * @returns {any} The sorted data.
6
+ * @throws {Error} If the data is not an object or array.
7
+ */
8
+ export declare function sort(data: any, asc?: boolean): any;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Function to sort JSON data.
3
+ * @param {any} data - The data to be sorted.
4
+ * @param {boolean} [asc=true] - Whether to sort in ascending order.
5
+ * @returns {any} The sorted data.
6
+ * @throws {Error} If the data is not an object or array.
7
+ */
8
+ export declare function sort(data: any, asc?: boolean): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamtamchik/json-deep-sort",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A comprehensive utility for sorting JSON objects by keys.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",