@vtrbo/utils-tool
Advanced tools
| "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/tool.ts | ||
| function toRawType(data) { | ||
| return Object.prototype.toString.call(data).slice(8, -1); | ||
| } | ||
| function notNullish(v) { | ||
| return v != null; | ||
| } | ||
| exports.notNullish = notNullish; exports.toRawType = toRawType; |
| type Recordable<T = any> = Record<string, T>; | ||
| declare function toRawType(data: any): string; | ||
| declare function notNullish<T>(v: T | null | undefined): v is NonNullable<T>; | ||
| export { type Recordable, notNullish, toRawType }; |
| type Recordable<T = any> = Record<string, T>; | ||
| declare function toRawType(data: any): string; | ||
| declare function notNullish<T>(v: T | null | undefined): v is NonNullable<T>; | ||
| export { type Recordable, notNullish, toRawType }; |
| // src/tool.ts | ||
| function toRawType(data) { | ||
| return Object.prototype.toString.call(data).slice(8, -1); | ||
| } | ||
| function notNullish(v) { | ||
| return v != null; | ||
| } | ||
| export { | ||
| notNullish, | ||
| toRawType | ||
| }; |
+9
-14
| { | ||
| "name": "@vtrbo/utils-tool", | ||
| "type": "module", | ||
| "version": "0.4.0-beta.5", | ||
| "version": "0.4.0-beta.7", | ||
| "description": "Collection of common JavaScript or TypeScript utils.", | ||
@@ -24,15 +24,14 @@ "author": { | ||
| ".": { | ||
| "types": "./index.d.ts", | ||
| "import": "./index.js", | ||
| "require": "./index.cjs" | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/index.cjs" | ||
| } | ||
| }, | ||
| "main": "./index.js", | ||
| "module": "./index.js", | ||
| "types": "./index.d.ts", | ||
| "main": "./dist/index.cjs", | ||
| "module": "./dist/index.js", | ||
| "types": "./dist/index.d.ts", | ||
| "typesVersions": { | ||
| "*": { | ||
| "*": [ | ||
| "./*", | ||
| "./index.d.ts" | ||
| "./dist/index.d.ts" | ||
| ] | ||
@@ -42,7 +41,3 @@ } | ||
| "files": [ | ||
| "README.md", | ||
| "index.cjs", | ||
| "index.d.cts", | ||
| "index.d.ts", | ||
| "index.js" | ||
| "dist" | ||
| ], | ||
@@ -49,0 +44,0 @@ "scripts": { |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
2975
41.6%6
200%23
Infinity%0
-100%