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.9 to 1.5.10

7

power-assert/index.d.ts

@@ -1,8 +0,1 @@

// Type definitions for power-assert 1.5
// Project: https://github.com/twada/power-assert
// Definitions by: vvakame <https://github.com/vvakame>
// Christian Murphy <https://github.com/ChristianMurphy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7
// copy from assert external module in node.d.ts

@@ -9,0 +2,0 @@

12

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

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

"name": "vvakame",
"url": "https://github.com/vvakame",
"githubUsername": "vvakame"
"githubUsername": "vvakame",
"url": "https://github.com/vvakame"
},
{
"name": "Christian Murphy",
"url": "https://github.com/ChristianMurphy",
"githubUsername": "ChristianMurphy"
"githubUsername": "ChristianMurphy",
"url": "https://github.com/ChristianMurphy"
}

@@ -32,4 +32,4 @@ ],

},
"typesPublisherContentHash": "5b5d24c2e11bee16b473bce19fc71e93bbc639729f93d08927cc33ac19d34e1e",
"typesPublisherContentHash": "3df4eefe16caeb2bb76e231b2170f2bcdd6bc3537e1bba25485493bdb5c63d4f",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,72 @@ # 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: Sun, 24 Sep 2023 06:37:28 GMT
* Last updated: Wed, 18 Oct 2023 05:47:09 GMT
* Dependencies: [@types/empower](https://npmjs.com/package/@types/empower), [@types/power-assert-formatter](https://npmjs.com/package/@types/power-assert-formatter)
* Global values: `assert`
# Credits
These definitions were written by [vvakame](https://github.com/vvakame), and [Christian Murphy](https://github.com/ChristianMurphy).
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