@webdeveric/utils 0.58.0 → 0.58.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.
|
@@ -11,4 +11,4 @@ export type InferTypeFromShapeValue<Type> = Type extends RegExp ? string : Type
|
|
|
11
11
|
export type InferTypeFromShape<Shape extends ObjectShapeRecord<object>> = {
|
|
12
12
|
[Property in keyof Shape]: InferTypeFromShapeValue<Shape[Property]>;
|
|
13
13
|
};
|
|
14
|
-
export declare const shape: <Type extends object,
|
|
14
|
+
export declare const shape: <Type extends object, Shape extends ObjectShapeRecord<Type> = ObjectShapeRecord<Type>>(objectShape: Shape) => TypePredicateFn<Pretty<Type & InferTypeFromShape<Shape>>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webdeveric/utils",
|
|
3
3
|
"description": "Just another collection of utilities.",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"url": "https://github.com/webdeveric/utils/issues"
|
|
67
67
|
},
|
|
68
68
|
"homepage": "https://github.com/webdeveric/utils/#readme",
|
|
69
|
-
"packageManager": "pnpm@10.
|
|
69
|
+
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
|
|
70
70
|
"scripts": {
|
|
71
71
|
"clean": "rimraf ./dist/",
|
|
72
72
|
"prebuild": "pnpm clean",
|
|
@@ -87,31 +87,32 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@commitlint/config-conventional": "^19.8.0",
|
|
89
89
|
"@commitlint/types": "^19.8.0",
|
|
90
|
-
"@types/node": "^22.
|
|
91
|
-
"@vitest/coverage-v8": "^3.
|
|
90
|
+
"@types/node": "^22.15.3",
|
|
91
|
+
"@vitest/coverage-v8": "^3.1.3",
|
|
92
92
|
"@webdeveric/eslint-config-ts": "^0.11.0",
|
|
93
93
|
"@webdeveric/prettier-config": "^0.3.0",
|
|
94
94
|
"commitlint": "^19.8.0",
|
|
95
95
|
"commitlint-plugin-cspell": "^0.1.1",
|
|
96
96
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
97
|
-
"cspell": "^8.
|
|
97
|
+
"cspell": "^8.19.4",
|
|
98
98
|
"eslint": "^8.57.1",
|
|
99
|
-
"eslint-config-prettier": "^10.1.
|
|
100
|
-
"eslint-import-resolver-typescript": "^3.
|
|
99
|
+
"eslint-config-prettier": "^10.1.2",
|
|
100
|
+
"eslint-import-resolver-typescript": "^3.10.1",
|
|
101
101
|
"eslint-plugin-import": "^2.31.0",
|
|
102
102
|
"husky": "^9.1.7",
|
|
103
|
-
"jsdom": "^26.
|
|
104
|
-
"lint-staged": "^15.5.
|
|
103
|
+
"jsdom": "^26.1.0",
|
|
104
|
+
"lint-staged": "^15.5.1",
|
|
105
105
|
"prettier": "^3.5.3",
|
|
106
106
|
"rimraf": "^6.0.1",
|
|
107
107
|
"semantic-release": "^24.2.3",
|
|
108
|
-
"typescript": "^5.8.
|
|
108
|
+
"typescript": "^5.8.3",
|
|
109
109
|
"validate-package-exports": "^0.9.0",
|
|
110
|
-
"vitest": "^3.
|
|
110
|
+
"vitest": "^3.1.3"
|
|
111
111
|
},
|
|
112
112
|
"pnpm": {
|
|
113
113
|
"onlyBuiltDependencies": [
|
|
114
|
-
"esbuild"
|
|
114
|
+
"esbuild",
|
|
115
|
+
"unrs-resolver"
|
|
115
116
|
]
|
|
116
117
|
}
|
|
117
118
|
}
|