Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@types/empower
Advanced tools
npm install --save @types/empower
This package contains type definitions for empower (https://github.com/power-assert-js/empower).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/empower.
// Type definitions for empower 1.2
// Project: https://github.com/power-assert-js/empower
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
import { Options as CoreOptions } from "empower-core";
import { Formatter } from "power-assert-formatter";
/**
* Enhances Power Assert feature to assert function/object.
*
* @param originalAssert An instance of standard `assert` function or any assert-like object to enhance.
* @param formatter A formatter function created by power-assert-formatter.
* @param options Configuration options. If not passed, default options will be used.
* @return Enhanced assert function/object.
*/
declare function empower<T>(originalAssert: T, formatter: Formatter, options?: empower.Options): T;
declare namespace empower {
// The omitted options can be provided, but they will be always overridden.
type Options = Omit<CoreOptions, "modifyMessageBeforeAssert" | "onError"> & {
/**
* If truthy, modify message property of `AssertionError` on rethrow.
*
* @default false
*/
modifyMessageOnRethrow?: boolean | undefined;
/**
* If truthy, add `powerAssertContext` property to `AssertionError` on rethrow.
*
* @default false
*/
saveContextOnRethrow?: boolean | undefined;
};
/**
* Returns default options object for `empower` function.
*/
function defaultOptions(): Required<Options>;
}
export = empower;
These definitions were written by vvakame.
FAQs
TypeScript definitions for empower
The npm package @types/empower receives a total of 27,734 weekly downloads. As such, @types/empower popularity was classified as popular.
We found that @types/empower 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.