🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@vtrbo/utils-tool

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtrbo/utils-tool - npm Package Compare versions

Comparing version
0.4.0-beta.5
to
0.4.0-beta.7
+11
dist/index.cjs
"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": {