@tamtamchik/json-deep-sort 1.4.1 → 1.5.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.
- package/package.json +9 -10
- package/src/array-sorter.ts +1 -1
- package/src/core.ts +1 -1
- package/src/index.ts +1 -1
- package/src/object-sorter.ts +1 -1
- package/src/type-guards.ts +2 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamtamchik/json-deep-sort",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A comprehensive utility for sorting JSON objects by keys.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -32,20 +32,19 @@
|
|
|
32
32
|
"json-tools"
|
|
33
33
|
],
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@types/node": "^
|
|
35
|
+
"@eslint/js": "^10.0.1",
|
|
36
|
+
"@types/node": "^25.6.0",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
38
38
|
"@typescript-eslint/parser": "^8.39.0",
|
|
39
|
-
"
|
|
39
|
+
"c8": "^11.0.0",
|
|
40
|
+
"eslint": "^10.2.0",
|
|
40
41
|
"eslint-config-prettier": "^10.1.8",
|
|
41
42
|
"eslint-plugin-prettier": "^5.5.4",
|
|
42
|
-
"jest": "^30.0.5",
|
|
43
43
|
"jiti": "^2.5.1",
|
|
44
44
|
"prettier": "^3.6.2",
|
|
45
|
-
"ts-jest": "^29.2.4",
|
|
46
|
-
"ts-node": "^10.9.2",
|
|
47
45
|
"tsup": "^8.3.0",
|
|
48
|
-
"
|
|
46
|
+
"tsx": "^4.21.0",
|
|
47
|
+
"typescript": "^6.0.2"
|
|
49
48
|
},
|
|
50
49
|
"exports": {
|
|
51
50
|
".": {
|
|
@@ -58,8 +57,8 @@
|
|
|
58
57
|
"build": "tsup src/index.ts --format cjs,esm --clean",
|
|
59
58
|
"dev": "npm run build -- --watch src",
|
|
60
59
|
"prepublishOnly": "npm run build",
|
|
61
|
-
"test": "
|
|
62
|
-
"coverage": "
|
|
60
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
61
|
+
"coverage": "c8 --reporter=text --reporter=lcov node --import tsx --test test/*.test.ts",
|
|
63
62
|
"format": "prettier --write .",
|
|
64
63
|
"lint": "eslint . --ext .ts,.js",
|
|
65
64
|
"lint:fix": "eslint . --ext .ts,.js --fix"
|
package/src/array-sorter.ts
CHANGED
package/src/core.ts
CHANGED
package/src/index.ts
CHANGED
package/src/object-sorter.ts
CHANGED
package/src/type-guards.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
SORTABLE_PRIMITIVE_TYPES,
|
|
4
|
-
NullishValue,
|
|
5
|
-
NonSortableType,
|
|
6
|
-
ObjectType,
|
|
7
|
-
} from './types';
|
|
1
|
+
import { NULLISH_VALUES, SORTABLE_PRIMITIVE_TYPES } from './types';
|
|
2
|
+
import type { NullishValue, NonSortableType, ObjectType } from './types';
|
|
8
3
|
|
|
9
4
|
// Type guards - single responsibility, clear naming
|
|
10
5
|
export function isNullish(value: unknown): value is NullishValue {
|