Gathering detailed insights and metrics for @types/makeerror
Gathering detailed insights and metrics for @types/makeerror
npm install @types/makeerror
Typescript
Module System
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
669,293
Last Day
887
Last Week
6,296
Last Month
36,383
Last Year
499,051
48,976 Stars
88,396 Commits
30,240 Forks
641 Watching
5 Branches
9,977 Contributors
Latest Version
1.0.3
Package Id
@types/makeerror@1.0.3
Unpacked Size
5.55 kB
Size
1.86 kB
File Count
5
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
-20.9%
887
Compared to previous day
Last week
-23.3%
6,296
Compared to previous week
Last month
-9.4%
36,383
Compared to previous month
Last year
193.1%
499,051
Compared to previous year
npm install --save @types/makeerror
This package contains type definitions for makeerror (https://github.com/daaku/nodejs-makeerror#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/makeerror.
1export = makeError; 2 3declare function makeError<T extends makeError.DefaultData>( 4 name: string, 5 defaultMessage?: string, 6 defaultData?: T, 7): makeError.CustomErrorConstructor<T>; 8 9declare namespace makeError { 10 type DefaultData = Record<string, unknown> & { proto?: CustomError<Record<string, unknown>> }; 11 12 interface CustomErrorConstructor<T extends Record<string, unknown>> { 13 new<U, V>( 14 message?: U extends Record<string, unknown> ? U : string, 15 data?: V extends Record<string, unknown> ? V : never, 16 ): U extends Record<string, unknown> ? V extends Record<string, unknown> ? CustomError<V> 17 : CustomError<U> 18 : V extends Record<string, unknown> ? CustomError<V> 19 : CustomError<T>; 20 21 <U, V>( 22 message?: U extends Record<string, unknown> ? U : string, 23 data?: V extends Record<string, unknown> ? V : never, 24 ): U extends Record<string, unknown> ? V extends Record<string, unknown> ? CustomError<V> 25 : CustomError<U> 26 : V extends Record<string, unknown> ? CustomError<V> 27 : CustomError<T>; 28 29 readonly prototype: "proto" extends keyof T ? T["proto"] : BaseError; 30 } 31 32 interface CustomError<T extends Record<string, unknown>> extends BaseError { 33 data: DataObject<T>; 34 fileName?: string; 35 lineNumber?: number; 36 } 37} 38 39type DataObject<T extends Record<string, unknown>> = { 40 [P in keyof T as Exclude<P, "proto">]: T[P]; 41}; 42 43interface BaseError extends Error { 44 toString(): string; 45} 46
These definitions were written by yutak23.
No vulnerabilities found.
Reason
30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 26/29 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More