@tamtamchik/json-deep-sort 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. package/dist/index.d.ts +0 -10
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tamtamchik/json-deep-sort",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A comprehensive utility for sorting JSON objects by keys.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
- "types": "./dist/index.d.ts",
7
+ "types": "./src/index.ts",
8
8
  "author": "Yuri Tkachenko <yuri.tam.tkachenko@gmail.com>",
9
9
  "license": "MIT",
10
10
  "homepage": "https://github.com/tamtamchik/json-deep-sort#readme",
@@ -32,22 +32,22 @@
32
32
  "json-tools"
33
33
  ],
34
34
  "devDependencies": {
35
- "@types/jest": "29.5.1",
36
- "@types/node": "20.2.5",
37
- "jest": "29.5.0",
38
- "ts-jest": "29.1.0",
39
- "tsup": "6.7.0",
40
- "typescript": "5.0.4"
35
+ "@types/jest": "29.5.3",
36
+ "@types/node": "20.5.1",
37
+ "jest": "29.6.2",
38
+ "ts-jest": "29.1.1",
39
+ "tsup": "7.2.0",
40
+ "typescript": "5.1.6"
41
41
  },
42
42
  "exports": {
43
43
  ".": {
44
44
  "require": "./dist/index.js",
45
45
  "import": "./dist/index.mjs",
46
- "types": "./dist/index.d.ts"
46
+ "types": "./src/index.ts"
47
47
  }
48
48
  },
49
49
  "scripts": {
50
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
50
+ "build": "tsup src/index.ts --format cjs,esm --clean",
51
51
  "dev": "npm run build -- --watch src",
52
52
  "prepublishOnly": "npm run build",
53
53
  "test": "jest",
package/dist/index.d.ts DELETED
@@ -1,10 +0,0 @@
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
- declare function sort(data: any, asc?: boolean): any;
9
-
10
- export { sort };