Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@types/power-assert
Advanced tools
npm install --save @types/power-assert
This package contains type definitions for power-assert (https://github.com/twada/power-assert).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert.
// copy from assert external module in node.d.ts
import { Options as EmpowerOptions } from "empower";
import { Options as PowerAssertFormatterOptions } from "power-assert-formatter";
export = assert;
export as namespace assert;
declare function assert(value: unknown, message?: string): void;
declare namespace assert {
class AssertionError implements Error {
name: string;
message: string;
actual: unknown;
expected: unknown;
operator: string;
generatedMessage: boolean;
constructor(options?: {
message?: string | undefined;
actual?: unknown;
expected?: unknown;
operator?: string | undefined;
stackStartFunction?: () => void | undefined;
});
}
function fail(actual?: unknown, expected?: unknown, message?: string, operator?: string): never;
function ok(value: unknown, message?: string): void;
function equal(actual: unknown, expected: unknown, message?: string): void;
function notEqual(actual: unknown, expected: unknown, message?: string): void;
function deepEqual(actual: unknown, expected: unknown, message?: string): void;
function notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
function strictEqual(actual: unknown, expected: unknown, message?: string): void;
function notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
function deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
const throws: {
(block: () => unknown, message?: string): void;
(
block: () => unknown,
error: (new() => object) | RegExp | ((err: unknown) => boolean),
message?: string,
): void;
};
const doesNotThrow: {
(block: () => unknown, message?: string): void;
(block: () => unknown, error: (new() => object) | RegExp | ((err: any) => boolean), message?: string): void;
};
function ifError(value: unknown): void | undefined;
const strict: typeof assert;
interface Options {
assertion?: EmpowerOptions | undefined;
output?: PowerAssertFormatterOptions | undefined;
}
function customize(options: Options): typeof assert;
}
These definitions were written by vvakame, and Christian Murphy.
FAQs
TypeScript definitions for power-assert
The npm package @types/power-assert receives a total of 17,354 weekly downloads. As such, @types/power-assert popularity was classified as popular.
We found that @types/power-assert demonstrated a healthy version release cadence and project activity because the last version was released less than 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.