Socket
Socket
Sign inDemoInstall

@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.1.3 to 2.2.0

27

sinon/index.d.ts

@@ -1,4 +0,4 @@

// Type definitions for Sinon 2.1.0
// Type definitions for Sinon 2.2
// Project: http://sinonjs.org/
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,4 +9,6 @@

// see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351
// tslint:disable no-empty-interface
interface Event { }
interface Document { }
// tslint:enable no-empty-interface

@@ -69,2 +71,4 @@ declare namespace Sinon {

calledAfter(anotherSpy: SinonSpy): boolean;
calledImmediatelyBefore(anotherSpy: SinonSpy): boolean;
calledImmediatelyAfter(anotherSpy: SinonSpy): boolean;
calledWithNew(): boolean;

@@ -103,6 +107,8 @@ withArgs(...args: any[]): SinonSpy;

resetHistory(): void;
usingPromise(promiseLibrary: any): void;
returns(obj: any): SinonStub;
returnsArg(index: number): SinonStub;
returnsThis(): SinonStub;
resolves(value: any): SinonStub;
resolves(value?: any): SinonStub;
throws(type?: string): SinonStub;

@@ -243,3 +249,3 @@ throws(obj: any): SinonStub;

// Properties
onCreate: (xhr: SinonFakeXMLHttpRequest) => void;
onCreate(xhr: SinonFakeXMLHttpRequest): void;
url: string;

@@ -272,5 +278,3 @@ method: string;

interface SinonFakeXMLHttpRequestStatic {
(): SinonFakeXMLHttpRequest;
}
type SinonFakeXMLHttpRequestStatic = () => SinonFakeXMLHttpRequest;

@@ -287,3 +291,3 @@ interface SinonStatic {

fakeHTTPMethods: boolean;
getHTTPMethod: (request: SinonFakeXMLHttpRequest) => string;
getHTTPMethod(request: SinonFakeXMLHttpRequest): string;
requests: SinonFakeXMLHttpRequest[];

@@ -329,4 +333,4 @@ respondImmediately: boolean;

failException: string;
fail: (message?: string) => void; // Overridable
pass: (assertion: any) => void; // Overridable
fail(message?: string): void; // Overridable
pass(assertion: any): void; // Overridable

@@ -421,2 +425,3 @@ // Methods

resetBehavior(): void;
usingPromise(promiseLibrary: any): void;
verify(): void;

@@ -455,5 +460,5 @@ verifyAndRestore(): void;

declare var Sinon: Sinon.SinonStatic;
declare const Sinon: Sinon.SinonStatic;
export = Sinon;
export as namespace sinon;
{
"name": "@types/sinon",
"version": "2.1.3",
"version": "2.2.0",
"description": "TypeScript definitions for Sinon",

@@ -14,2 +14,6 @@ "license": "MIT",

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

@@ -25,4 +29,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "69c1a21329670219294ed3d39e3b635b97e091c115f2fa7dfca65a846e6fdf04",
"typesPublisherContentHash": "a2da26f24c9340402847ea5bee7599725f4acda590e9c1c5ceb48f9c958652eb",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Mon, 24 Apr 2017 15:16:44 GMT
* Last updated: Wed, 03 May 2017 19:10:56 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>.
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis>.

Sorry, the diff of this file is not supported yet

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