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

@types/assert

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/assert - npm Package Compare versions

Comparing version 0.0.31 to 1.4.0

assert/LICENSE

68

assert/index.d.ts

@@ -1,59 +0,45 @@

// Type definitions for assert and power-assert
// Project: https://github.com/Jxck/assert, https://github.com/twada/power-assert
// Definitions by: vvakame <https://github.com/vvakame>
// Type definitions for commonjs-assert 1.4
// Project: https://github.com/browserify/commonjs-assert
// Definitions by: Nico Gallinal <https://github.com/nicoabie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Definitions for commonjs-assert match that of node.js' assert module,
// but commonjs-assert is intended to be used as an independent module,
// for instance when making a stand-alone site or app that doesn't have
// access to node modules. For that reason, these definitions define a
// "assert" module. This will conflict with node.d.ts and other assert
// modules such as "power-assert", but a project should realistically
// only be using one of these at a time.
declare function assert(value: any, message?: string): void;
declare function assert(value:any, message?:string):void;
declare namespace assert {
export class AssertionError implements Error {
name:string;
message:string;
actual:any;
expected:any;
operator:string;
generatedMessage:boolean;
function fail(actual?: any, expected?: any, message?: string, operator?: string): void;
constructor(options?:{message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function});
}
function ok(value: any, message?: string): void;
export function fail(actual?:any, expected?:any, message?:string, operator?:string):void;
function equal(actual: any, expected: any, message?: string): void;
export function ok(value:any, message?:string):void;
function notEqual(actual: any, expected: any, message?: string): void;
export function equal(actual:any, expected:any, message?:string):void;
function deepEqual(actual: any, expected: any, message?: string): void;
export function notEqual(actual:any, expected:any, message?:string):void;
function notDeepEqual(acutal: any, expected: any, message?: string): void;
export function deepEqual(actual:any, expected:any, message?:string):void;
function strictEqual(actual: any, expected: any, message?: string): void;
export function notDeepEqual(acutal:any, expected:any, message?:string):void;
function notStrictEqual(actual: any, expected: any, message?: string): void;
export function strictEqual(actual:any, expected:any, message?:string):void;
function throws(block: () => void, message?: string): void;
function throws(block: () => void, error: () => void | ((err: any) => boolean) | RegExp, message?: string): void;
export function notStrictEqual(actual:any, expected:any, message?:string):void;
function doesNotThrow(block: () => void, message?: string): void;
function doesNotThrow(block: () => void, error: () => void | ((err: any) => boolean) | RegExp, message?: string): void;
export var throws:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
};
function ifError(value: any): void;
export var doesNotThrow:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
};
class AssertionError implements Error {
name: string;
message: string;
actual: any;
expected: any;
operator: string;
generatedMessage: boolean;
export function ifError(value:any):void;
constructor(options?: { message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: () => void });
}
}
export = assert;
{
"name": "@types/assert",
"version": "0.0.31",
"description": "TypeScript definitions for assert and power-assert",
"version": "1.4.0",
"description": "TypeScript definitions for commonjs-assert",
"license": "MIT",
"author": "vvakame <https://github.com/vvakame>",
"contributors": [
{
"name": "Nico Gallinal",
"url": "https://github.com/nicoabie",
"githubUsername": "nicoabie"
}
],
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "759710078193010b99dc99e7ba8a100e251198a9098988d5579808a57a8fc7c5"
"typesPublisherContentHash": "b053597ad5371042f6ba084eff253fc3016501a13accfd87a449ed9e7f4b816e",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for assert and power-assert (https://github.com/Jxck/assert, https://github.com/twada/power-assert).
This package contains type definitions for commonjs-assert (https://github.com/browserify/commonjs-assert).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/assert
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/assert
Additional Details
* Last updated: Tue, 22 Nov 2016 20:59:26 GMT
* File structure: Global
* Library Dependencies: none
* Module Dependencies: none
* Global values: assert
* Last updated: Wed, 03 Oct 2018 00:53:25 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by vvakame <https://github.com/vvakame>.
These definitions were written by Nico Gallinal <https://github.com/nicoabie>.
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