Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/power-assert

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/power-assert - npm Package Compare versions

Comparing version 1.5.11 to 1.5.12

2

power-assert/index.d.ts

@@ -24,2 +24,3 @@ // copy from assert external module in node.d.ts

operator?: string | undefined;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
stackStartFunction?: () => void | undefined;

@@ -51,2 +52,3 @@ });

};
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function ifError(value: unknown): void | undefined;

@@ -53,0 +55,0 @@

4

power-assert/package.json
{
"name": "@types/power-assert",
"version": "1.5.11",
"version": "1.5.12",
"description": "TypeScript definitions for power-assert",

@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert",

},
"typesPublisherContentHash": "264424cec286e8ecf496ef850f50824189b85734358a0e4ea10c5aa03a29877e",
"typesPublisherContentHash": "d1d1c9cd56dbf31a10b05352a635176fe521a1f1e188faaf09f8065d9496e1b1",
"typeScriptVersion": "4.5"
}

@@ -9,69 +9,5 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert/index.d.ts)
````ts
// 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;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
* Dependencies: [@types/empower](https://npmjs.com/package/@types/empower), [@types/power-assert-formatter](https://npmjs.com/package/@types/power-assert-formatter)

@@ -78,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc