Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@types/pify
Advanced tools
npm install --save @types/pify
This package contains type definitions for pify (https://github.com/sindresorhus/pify).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pify.
// Type definitions for pify 5.0
// Project: https://github.com/sindresorhus/pify
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Michael Müller <https://github.com/mad-mike>
// Christoph Müller <https://github.com/c7hm4r>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type InputFunction = (...args: any[]) => any;
declare function pify(input: InputFunction, options?: pify.PifyOptions): (...args: any[]) => Promise<any>;
declare function pify(input: object, options?: pify.PifyOptions): any;
declare namespace pify {
interface PifyOptions {
multiArgs?: boolean | undefined;
include?: Array<string | RegExp> | undefined;
exclude?: Array<string | RegExp> | undefined;
excludeMain?: boolean | undefined;
errorFirst?: boolean | undefined;
promiseModule?: PromiseModule | undefined;
}
interface PromiseModule {
new(executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void): any;
}
}
export = pify;
These definitions were written by Sam Verschueren, Michael Müller, and Christoph Müller.
FAQs
TypeScript definitions for pify
The npm package @types/pify receives a total of 26,497 weekly downloads. As such, @types/pify popularity was classified as popular.
We found that @types/pify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.