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

@types/sinon

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sinon - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

58

sinon/index.d.ts
// Type definitions for Sinon 2.2
// Project: http://sinonjs.org/
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis>
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.com/lumaxis>, Nico Jansen <https://github.com/nicojs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// sinon uses DOM dependencies which are absent in browserless envoronment like node.js
// sinon uses DOM dependencies which are absent in browser-less environment like node.js
// to avoid compiler errors this monkey patch is used

@@ -366,2 +366,43 @@ // see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351

interface SinonArrayMatcher extends SinonMatcher {
/**
* Requires an Array to be deep equal another one.
*/
deepEquals(expected: any[]): SinonMatcher;
/**
* Requires an Array to start with the same values as another one.
*/
startsWith(expected: any[]): SinonMatcher;
/**
* Requires an Array to end with the same values as another one.
*/
endsWith(expected: any[]): SinonMatcher;
/**
* Requires an Array to contain each one of the values the given array has.
*/
contains(expected: any[]): SinonMatcher;
}
interface SinonMapMatcher extends SinonMatcher {
/**
* Requires a Map to be deep equal another one.
*/
deepEquals(expected: Map<any, any>): SinonMatcher;
/**
* Requires a Map to contain each one of the items the given map has.
*/
contains(expected: Map<any, any>): SinonMatcher;
}
interface SinonSetMatcher extends SinonMatcher {
/**
* Requires a Set to be deep equal another one.
*/
deepEquals(expected: Set<any>): SinonMatcher;
/**
* Requires a Set to contain each one of the items the given set has.
*/
contains(expected: Set<any>): SinonMatcher;
}
interface SinonMatch {

@@ -382,3 +423,14 @@ (value: number): SinonMatcher;

func: SinonMatcher;
array: SinonMatcher;
/**
* Requires the value to be a Map.
*/
map: SinonMapMatcher;
/**
* Requires the value to be a Set.
*/
set: SinonSetMatcher;
/**
* Requires the value to be an Array.
*/
array: SinonArrayMatcher;
regexp: SinonMatcher;

@@ -385,0 +437,0 @@ date: SinonMatcher;

10

sinon/package.json
{
"name": "@types/sinon",
"version": "2.2.1",
"version": "2.2.2",
"description": "TypeScript definitions for Sinon",

@@ -17,3 +17,7 @@ "license": "MIT",

"name": "Lukas Spieß",
"url": "https://github.con/lumaxis"
"url": "https://github.com/lumaxis"
},
{
"name": "Nico Jansen",
"url": "https://github.com/nicojs"
}

@@ -29,4 +33,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "883db8f7f2661f08a629e547041f72077a350dd28f24e0b090feea964d420618",
"typesPublisherContentHash": "d49fe374bb84617dd440199f0a9290bbfcfeae020346443d65d757fc83e61b87",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 04 May 2017 17:04:38 GMT
* Last updated: Tue, 16 May 2017 20:45:07 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: sinon

# Credits
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis>.
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.com/lumaxis>, Nico Jansen <https://github.com/nicojs>.
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