Update checked-in dependencies
This commit is contained in:
parent
9673b562d9
commit
6410c0691e
28 changed files with 8738 additions and 3194 deletions
25
node_modules/.package-lock.json
generated
vendored
25
node_modules/.package-lock.json
generated
vendored
|
|
@ -471,9 +471,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@sinonjs/samsam": {
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-6.0.2.tgz",
|
||||
"integrity": "sha512-jxPRPp9n93ci7b8hMfJOFDPRLFYadN6FSpeROFTR4UNF4i5b+EK6m4QXPO46BDhFgRy1JuS87zAnFOzCUwMJcQ==",
|
||||
"version": "6.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-6.1.1.tgz",
|
||||
"integrity": "sha512-cZ7rKJTLiE7u7Wi/v9Hc2fs3Ucc3jrWeMgPHbbTCeVAB2S0wOBbYlkJVeNSL04i7fdhT8wIbDq1zhC/PXTD2SA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@sinonjs/commons": "^1.6.0",
|
||||
|
|
@ -5544,14 +5544,14 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/sinon": {
|
||||
"version": "11.1.2",
|
||||
"resolved": "https://registry.npmjs.org/sinon/-/sinon-11.1.2.tgz",
|
||||
"integrity": "sha512-59237HChms4kg7/sXhiRcUzdSkKuydDeTiamT/jesUVHshBgL8XAmhgFo0GfK6RruMDM/iRSij1EybmMog9cJw==",
|
||||
"version": "13.0.0",
|
||||
"resolved": "https://registry.npmjs.org/sinon/-/sinon-13.0.0.tgz",
|
||||
"integrity": "sha512-3tjMDB/tY04b06Bnb4aMKQfNrau2C9HET+R4HVWfv2KegDVLGg4wnBqjVepvxR7S7R1GTwDZzEv52tpFipt6yA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@sinonjs/commons": "^1.8.3",
|
||||
"@sinonjs/fake-timers": "^7.1.2",
|
||||
"@sinonjs/samsam": "^6.0.2",
|
||||
"@sinonjs/fake-timers": "^9.0.0",
|
||||
"@sinonjs/samsam": "^6.1.1",
|
||||
"diff": "^5.0.0",
|
||||
"nise": "^5.1.0",
|
||||
"supports-color": "^7.2.0"
|
||||
|
|
@ -5561,6 +5561,15 @@
|
|||
"url": "https://opencollective.com/sinon"
|
||||
}
|
||||
},
|
||||
"node_modules/sinon/node_modules/@sinonjs/fake-timers": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.0.0.tgz",
|
||||
"integrity": "sha512-+shXA2X7KNP7H7qNbQTJ3SA+NQc0pZDSBrdvFSRwF8sAo/ohw+ZQFD8Moc+gnz51+1eRXtEQBpKWPiQ4jsRC/w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@sinonjs/commons": "^1.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/sinon/node_modules/has-flag": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||
|
|
|
|||
226
node_modules/@sinonjs/samsam/CHANGES.md
generated
vendored
226
node_modules/@sinonjs/samsam/CHANGES.md
generated
vendored
|
|
@ -1,226 +0,0 @@
|
|||
# Changes
|
||||
|
||||
## 6.0.2
|
||||
|
||||
- [`144204d`](https://github.com/sinonjs/samsam/commit/144204d505526d5c382cb2f3dc2c2dd1378fe12d)
|
||||
Fix deep equal comparison between promises (#217) (David G. Miguel)
|
||||
|
||||
_Released on 2021-05-24._
|
||||
|
||||
## 6.0.1
|
||||
|
||||
- [`decfafe`](https://github.com/sinonjs/samsam/commit/decfafe72d8b2d159cfc49440a8f4af6d3e9c574)
|
||||
Bump y18n from 4.0.0 to 4.0.1 (dependabot[bot])
|
||||
>
|
||||
> Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
|
||||
> - [Release notes](https://github.com/yargs/y18n/releases)
|
||||
> - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/yargs/y18n/commits)
|
||||
>
|
||||
> Signed-off-by: dependabot[bot] <support@github.com>
|
||||
|
||||
_Released on 2021-04-08._
|
||||
|
||||
## 6.0.0
|
||||
|
||||
- [`95d1dce`](https://github.com/sinonjs/samsam/commit/95d1dce07f47b7bbb84111c42f44ecd9466dc2c8)
|
||||
Use @sinonjs/eslint-config (Morgan Roderick)
|
||||
>
|
||||
> This drops support for legacy runtimes like IE11, legacy Edge, Safari 9 and the like
|
||||
|
||||
_Released on 2021-03-30._
|
||||
|
||||
## 5.3.1
|
||||
|
||||
- [`04e0faa`](https://github.com/sinonjs/samsam/commit/04e0faa88d8a08325c6d70febed9dad4e7eeabfe)
|
||||
Distribute package as source (Morgan Roderick)
|
||||
>
|
||||
> This library is not meant for writing end user applications or even for
|
||||
> being used directly when writing tests. It is not meant to be loaded
|
||||
> directly by browsers.
|
||||
>
|
||||
> Consumers of this package are assumed to use their own bundlers, should
|
||||
> they need to bundle code for use in browsers or workers.
|
||||
>
|
||||
> Therefore, it is safe to distribute the package as source files and not
|
||||
> bundle them up.
|
||||
>
|
||||
> This allows us to remove the bundler and its transitive dependencies,
|
||||
> which reduces the maintenance burden of managing the library.
|
||||
>
|
||||
|
||||
_Released on 2021-01-13._
|
||||
|
||||
## 5.3.0
|
||||
|
||||
- [`fd8aabd`](https://github.com/sinonjs/samsam/commit/fd8aabd3768c199abc717dc6d793ef136419be72)
|
||||
Generate .d.ts from JSDoc (Morgan Roderick)
|
||||
>
|
||||
> See https://humanwhocodes.com/snippets/2020/10/create-typescript-declarations-from-javascript-jsdoc/
|
||||
>
|
||||
|
||||
_Released on 2020-11-16._
|
||||
|
||||
## 5.2.0
|
||||
|
||||
- [`f27b87c`](https://github.com/sinonjs/samsam/commit/f27b87cbd493a09e4a3181cf36f503facbbb23fb)
|
||||
Add match.json (Maximilian Antoni)
|
||||
|
||||
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2020-10-06._
|
||||
|
||||
## 5.1.0
|
||||
|
||||
- [`820c296`](https://github.com/sinonjs/samsam/commit/820c2961f70208367e1c072ae9a581eefd0d8d18)
|
||||
Evaluate symbol keys for object matchers (#206) (Joel Bradshaw)
|
||||
>
|
||||
> * Make match() work for objects with symbol keys
|
||||
|
||||
_Released on 2020-08-11._
|
||||
|
||||
## 5.0.3
|
||||
|
||||
- [`9d2add0`](https://github.com/sinonjs/samsam/commit/9d2add01eba85eb17ddb91ac22404fb6c23e8d39)
|
||||
Remove unused @sinonjs/formatio (Morgan Roderick)
|
||||
>
|
||||
> As can be seen with searching the codebase, @sinonjs/formatio is never
|
||||
> imported, and is thus not a direct dependency of @sinonjs/samsam.
|
||||
>
|
||||
|
||||
_Released on 2020-02-28._
|
||||
|
||||
## 5.0.2
|
||||
|
||||
- [`f9e845a`](https://github.com/sinonjs/samsam/commit/f9e845a52ba50916df91335d2003a81a808a4ade)
|
||||
Bump formatio to latest major (Morgan Roderick)
|
||||
>
|
||||
> This will remove some duplication in Sinon, see https://github.com/sinonjs/sinon/issues/2224
|
||||
>
|
||||
|
||||
_Released on 2020-02-20._
|
||||
|
||||
## 5.0.1
|
||||
|
||||
- [`fe5d035`](https://github.com/sinonjs/samsam/commit/fe5d03532ea6cdbec857c49d18392d668cca8ef2)
|
||||
Bump jsdom from 15.2.1 to 16.2.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.1 to 16.2.0.
|
||||
> - [Release notes](https://github.com/jsdom/jsdom/releases)
|
||||
> - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
|
||||
> - [Commits](https://github.com/jsdom/jsdom/compare/15.2.1...16.2.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`910af18`](https://github.com/sinonjs/samsam/commit/910af18be1bd57c6237399ca04cbef91d994a38a)
|
||||
Remove maintenance junk from CHANGES.md (Morgan Roderick)
|
||||
|
||||
_Released on 2020-02-18._
|
||||
|
||||
## 5.0.0
|
||||
|
||||
- [`f288430`](https://github.com/sinonjs/samsam/commit/f2884309c9bf68b02ecfda3bd1df8d7a7a31686b)
|
||||
Drop support for Node 8 (Morgan Roderick)
|
||||
>
|
||||
> As can be seen at https://github.com/nodejs/Release, Node 8 reached
|
||||
> "end" of life on 2019-12-31, and is no longer actively supported.
|
||||
>
|
||||
> We will stop testing in Node 8 and start testing in Node 13, which will
|
||||
> become the next LTS release from April 2020.
|
||||
>
|
||||
|
||||
_Released on 2020-02-18._
|
||||
|
||||
## 4.2.2
|
||||
|
||||
- [`c600d6c`](https://github.com/sinonjs/samsam/commit/c600d6cb6c1bec8d65bc718bd9268311204597bc)
|
||||
Fix issue with nested array matching (Jay Merrifield)
|
||||
- [`8b37566`](https://github.com/sinonjs/samsam/commit/8b37566ea73bee512fbc4203c07678288f906bda)
|
||||
Bump eslint from 6.7.2 to 6.8.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [eslint](https://github.com/eslint/eslint) from 6.7.2 to 6.8.0.
|
||||
> - [Release notes](https://github.com/eslint/eslint/releases)
|
||||
> - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/eslint/eslint/compare/v6.7.2...v6.8.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`b7c5db9`](https://github.com/sinonjs/samsam/commit/b7c5db9e7847204188c112843bb193248d0b5156)
|
||||
Bump eslint-plugin-prettier from 3.1.1 to 3.1.2 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.1 to 3.1.2.
|
||||
> - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
|
||||
> - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.1...v3.1.2)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`8965384`](https://github.com/sinonjs/samsam/commit/8965384818697b7b36537619922b3c378bfd0b42)
|
||||
Bump eslint-plugin-mocha from 6.1.1 to 6.2.2 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 6.1.1 to 6.2.2.
|
||||
> - [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases)
|
||||
> - [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/6.1.1...6.2.2)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`8661610`](https://github.com/sinonjs/samsam/commit/866161044e212b4df56a207e55ab3e449346abf5)
|
||||
Bump eslint-config-prettier from 6.7.0 to 6.9.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.7.0 to 6.9.0.
|
||||
> - [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
|
||||
> - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/prettier/eslint-config-prettier/commits/v6.9.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`7d91124`](https://github.com/sinonjs/samsam/commit/7d91124a9fa95c462c1e714d86405d6cb99e3363)
|
||||
Bump rollup from 1.23.0 to 1.27.14 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [rollup](https://github.com/rollup/rollup) from 1.23.0 to 1.27.14.
|
||||
> - [Release notes](https://github.com/rollup/rollup/releases)
|
||||
> - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/rollup/rollup/compare/v1.23.0...v1.27.14)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`31c616a`](https://github.com/sinonjs/samsam/commit/31c616ab278e05071138e18d6e5aea8f2c250c2a)
|
||||
Bump nyc from 14.1.1 to 15.0.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [nyc](https://github.com/istanbuljs/nyc) from 14.1.1 to 15.0.0.
|
||||
> - [Release notes](https://github.com/istanbuljs/nyc/releases)
|
||||
> - [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
|
||||
> - [Commits](https://github.com/istanbuljs/nyc/compare/v14.1.1...v15.0.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`e82dbcf`](https://github.com/sinonjs/samsam/commit/e82dbcf9af6a052b1d466e476a7315e047324256)
|
||||
Bump @sinonjs/referee from 3.2.0 to 4.0.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [@sinonjs/referee](https://github.com/sinonjs/referee) from 3.2.0 to 4.0.0.
|
||||
> - [Release notes](https://github.com/sinonjs/referee/releases)
|
||||
> - [Changelog](https://github.com/sinonjs/referee/blob/master/CHANGES.md)
|
||||
> - [Commits](https://github.com/sinonjs/referee/compare/v3.2.0...v4.0.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`b089354`](https://github.com/sinonjs/samsam/commit/b089354118a6f64139ca64906d8b8a9f282bc376)
|
||||
Bump eslint-plugin-jsdoc from 18.4.3 to 19.2.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 18.4.3 to 19.2.0.
|
||||
> - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
|
||||
> - [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v18.4.3...v19.2.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`bba8c44`](https://github.com/sinonjs/samsam/commit/bba8c441914cd3b07b505b4d917a042d16412c9e)
|
||||
Bump @sinonjs/commons from 1.6.0 to 1.7.0 (dependabot-preview[bot])
|
||||
>
|
||||
> Bumps [@sinonjs/commons](https://github.com/sinonjs/commons) from 1.6.0 to 1.7.0.
|
||||
> - [Release notes](https://github.com/sinonjs/commons/releases)
|
||||
> - [Commits](https://github.com/sinonjs/commons/compare/v1.6.0...v1.7.0)
|
||||
>
|
||||
> Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
||||
- [`5915960`](https://github.com/sinonjs/samsam/commit/5915960fab257e27564c544da45b419c360bc8fb)
|
||||
Publish using public access (Morgan Roderick)
|
||||
- [`28ffc83`](https://github.com/sinonjs/samsam/commit/28ffc83556274b025d1fc62b52d2ff8ea25743a4)
|
||||
4.2.1 (Morgan Roderick)
|
||||
|
||||
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2020-01-09._
|
||||
|
||||
## 4.2.1
|
||||
|
||||
- [`8987966`](https://github.com/sinonjs/samsam/commit/898796645000b88f1a4045213355bed29085f46c)
|
||||
re-introduce bound deepEqual (#160) (James Garbutt)
|
||||
|
||||
_Released on 2019-12-30._
|
||||
27
node_modules/@sinonjs/samsam/lib/deep-equal.js
generated
vendored
27
node_modules/@sinonjs/samsam/lib/deep-equal.js
generated
vendored
|
|
@ -10,8 +10,10 @@ var mapForEach = require("@sinonjs/commons").prototypes.map.forEach;
|
|||
var getClass = require("./get-class");
|
||||
var identical = require("./identical");
|
||||
var isArguments = require("./is-arguments");
|
||||
var isArrayType = require("./is-array-type");
|
||||
var isDate = require("./is-date");
|
||||
var isElement = require("./is-element");
|
||||
var isIterable = require("./is-iterable");
|
||||
var isMap = require("./is-map");
|
||||
var isNaN = require("./is-nan");
|
||||
var isObject = require("./is-object");
|
||||
|
|
@ -189,6 +191,31 @@ function deepEqualCyclic(actual, expectation, match) {
|
|||
return mapsDeeplyEqual;
|
||||
}
|
||||
|
||||
var isActualNonArrayIterable =
|
||||
isIterable(actualObj) &&
|
||||
!isArrayType(actualObj) &&
|
||||
!isArguments(actualObj);
|
||||
var isExpectationNonArrayIterable =
|
||||
isIterable(expectation) &&
|
||||
!isArrayType(expectation) &&
|
||||
!isArguments(expectation);
|
||||
if (isActualNonArrayIterable || isExpectationNonArrayIterable) {
|
||||
var actualArray = Array.from(actualObj);
|
||||
var expectationArray = Array.from(expectation);
|
||||
if (actualArray.length !== expectationArray.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var arrayDeeplyEquals = true;
|
||||
every(actualArray, function (key) {
|
||||
arrayDeeplyEquals =
|
||||
arrayDeeplyEquals &&
|
||||
deepEqualCyclic(actualArray[key], expectationArray[key]);
|
||||
});
|
||||
|
||||
return arrayDeeplyEquals;
|
||||
}
|
||||
|
||||
return every(expectationKeysAndSymbols, function (key) {
|
||||
if (!hasOwnProperty(actualObj, key)) {
|
||||
return false;
|
||||
|
|
|
|||
18
node_modules/@sinonjs/samsam/lib/is-iterable.js
generated
vendored
Normal file
18
node_modules/@sinonjs/samsam/lib/is-iterable.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* Returns `true` when the argument is an iterable, `false` otherwise
|
||||
*
|
||||
* @alias module:samsam.isIterable
|
||||
* @param {*} val - A value to examine
|
||||
* @returns {boolean} Returns `true` when the argument is an iterable, `false` otherwise
|
||||
*/
|
||||
function isIterable(val) {
|
||||
// checks for null and undefined
|
||||
if (typeof val !== "object") {
|
||||
return false;
|
||||
}
|
||||
return typeof val[Symbol.iterator] === "function";
|
||||
}
|
||||
|
||||
module.exports = isIterable;
|
||||
4
node_modules/@sinonjs/samsam/package.json
generated
vendored
4
node_modules/@sinonjs/samsam/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@sinonjs/samsam",
|
||||
"version": "6.0.2",
|
||||
"version": "6.1.1",
|
||||
"description": "Value identification and comparison functions",
|
||||
"homepage": "http://sinonjs.github.io/samsam/",
|
||||
"author": "Christian Johansen",
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
"test-headless": "mochify --no-detect-globals --recursive -R dot --plugin [ proxyquire-universal ] \"./lib/*.test.js\"",
|
||||
"prettier:check": "prettier --check '**/*.{js,css,md}'",
|
||||
"prettier:write": "prettier --write '**/*.{js,css,md}'",
|
||||
"preversion": "npm run test-check-coverage",
|
||||
"preversion": "./check-external-dependencies.sh && npm run test-check-coverage",
|
||||
"version": "changes --commits --footer",
|
||||
"postversion": "git push --follow-tags && npm publish --access public"
|
||||
},
|
||||
|
|
|
|||
9
node_modules/@sinonjs/samsam/types/is-iterable.d.ts
generated
vendored
Normal file
9
node_modules/@sinonjs/samsam/types/is-iterable.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export = isIterable;
|
||||
/**
|
||||
* Returns `true` when the argument is an iterable, `false` otherwise
|
||||
*
|
||||
* @alias module:samsam.isIterable
|
||||
* @param {*} val - A value to examine
|
||||
* @returns {boolean} Returns `true` when the argument is an iterable, `false` otherwise
|
||||
*/
|
||||
declare function isIterable(val: any): boolean;
|
||||
370
node_modules/sinon/AUTHORS
generated
vendored
370
node_modules/sinon/AUTHORS
generated
vendored
|
|
@ -1,370 +0,0 @@
|
|||
Morgan Roderick <morgan@roderick.dk>
|
||||
Christian Johansen <christian@cjohansen.no>
|
||||
Carl-Erik Kopseng <carlerik@gmail.com>
|
||||
Maximilian Antoni <mail@maxantoni.de>
|
||||
Phred <fearphage@gmail.com>
|
||||
Jonny Reeves <github@jonnyreeves.co.uk>
|
||||
lucasfcosta <fernandesdacostalucas@gmail.com>
|
||||
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
|
||||
ben hockey <neonstalwart@gmail.com>
|
||||
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
||||
Tim Fischbach <mail@timfischbach.de>
|
||||
takasmiley <takasmiley@live.jp>
|
||||
Håvard Wormdal Høiby <havardwhoiby@gmail.com>
|
||||
Tim Ruffles <timruffles@googlemail.com>
|
||||
Piotr Jamroz <piotr.jamroz@ig.com>
|
||||
Jonathan Sokolowski <jonathan.sokolowski@gmail.com>
|
||||
Andreas Lind <andreas@one.com>
|
||||
Domenic Denicola <domenic@domenicdenicola.com>
|
||||
William Sears <MrBigDog2U@gmail.com>
|
||||
Tim Perry <pimterry@gmail.com>
|
||||
Mikhail Gusarov <mikhail@hola.org>
|
||||
Marc Redemske <marc.redemske@gmail.com>
|
||||
Dominykas Blyžė <hello@dominykas.com>
|
||||
Bryan Donovan <bdondo@gmail.com>
|
||||
Felix Geisendörfer <felix@debuggable.com>
|
||||
kpdecker <kpdecker@gmail.com>
|
||||
Flarna <deb2001-github@yahoo.de>
|
||||
Tobias Ebnöther <ebi@gorn.ch>
|
||||
Tristan Koch <tristan.koch@1und1.de>
|
||||
Doug Orleans <dougorleans@gmail.com>
|
||||
Keith Cirkel <github@keithcirkel.co.uk>
|
||||
Martin Sander <forke@uni-bonn.de>
|
||||
Andrew Gurinovich <altmind@gmail.com>
|
||||
Adam Hull <adam@hmlad.com>
|
||||
Cory <seeflanigan@gmail.com>
|
||||
Aleck Greenham <greenhama13@gmail.com>
|
||||
Luis Cardoso <luis.cardoso@feedzai.com>
|
||||
GCHQDeveloper500 <32099399+GCHQDeveloper500@users.noreply.github.com>
|
||||
Dustin Farris <dustin@farris.io>
|
||||
Konrad Holowinski <konrad.holowinski@gmail.com>
|
||||
Gavin Huang <gravof@gmail.com>
|
||||
ben fleis <ben.fleis@gmail.com>
|
||||
Krzysztof Kaczor <chris@kaczor.io>
|
||||
Jay Sherby <jaysherby@gmail.com>
|
||||
Marten Lienen <marten.lienen@gmail.com>
|
||||
Carolyn Stransky <carolynstransky@gmail.com>
|
||||
Viktor Zozulyak <zozulyakviktor@gmail.com>
|
||||
zcicala <zcicala@fitbit.com>
|
||||
Mahmoud Gamal <mgamal@babbel.com>
|
||||
Eyal Arubas <eyalarubas@gmail.com>
|
||||
Benjamin Coe <ben@yesware.com>
|
||||
Travis Kaufman <travis.kaufman@gmail.com>
|
||||
Garrick Cheung <garrick@garrickcheung.com>
|
||||
Florent Jaby <florent.jaby@gmail.com>
|
||||
Craig Davis <craig-davis@users.noreply.github.com>
|
||||
Dmitriy Kubyshkin <grassator@gmail.com>
|
||||
Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
|
||||
Adhya Pranata <adhyapranata@gmail.com>
|
||||
Thomas Meyer <meyertee@gmail.com>
|
||||
Cormac Flynn <cormac.flynn@viadeoteam.com>
|
||||
geries <geries.handal@videoplaza.com>
|
||||
Márton Salomváry <salomvary@gmail.com>
|
||||
Roman Potashow <justgook@gmail.com>
|
||||
Islam Sharabash <islam.sharabash@gmail.com>
|
||||
Kir Chou <note351@hotmail.com>
|
||||
Rae Liu <happyaray@gmail.com>
|
||||
Glen Mailer <glen.mailer@bskyb.com>
|
||||
Garrick <gcheung@fitbit.com>
|
||||
Soutaro Matsumoto <matsumoto@soutaro.com>
|
||||
August Lilleaas <august.lilleaas@gmail.com>
|
||||
Robin Pedersen <robinp@snap.tv>
|
||||
Scott Andrews <scothis@gmail.com>
|
||||
George Schneeloch <gschneel@mit.edu>
|
||||
Tamas Szebeni <tamas_szebeni@epam.com>
|
||||
Jmeas <jellyes2@gmail.com>
|
||||
Tim Costa <tcosta@2u.com>
|
||||
sjoseph7 <17250762+sjoseph7@users.noreply.github.com>
|
||||
Ming Liu <vmliu1@gmail.com>
|
||||
Duncan Beevers <duncan@dweebd.com>
|
||||
なつき <i@ntk.me>
|
||||
Nathan Mahdavi <mail@nathanmahdavi.com>
|
||||
Nathan Perry <nateperry333@gmail.com>
|
||||
Nicholas Hinds <hindsn@gmail.com>
|
||||
Brandon Heyer <brandonheyer@gmail.com>
|
||||
Nico Jansen <jansennico@gmail.com>
|
||||
Jason Karns <jason.karns@gmail.com>
|
||||
Jeffrey Falgout <jeffrey.falgout@gmail.com>
|
||||
Jimmy Shimizu <jimmy.shimizu@springworks.se>
|
||||
Elad Nachmias <theman@elad.im>
|
||||
John-David Dalton <john.david.dalton@gmail.com>
|
||||
Piotr Jamróz <pm.jamroz@gmail.com>
|
||||
Jonathan Freeman <freethejazz@gmail.com>
|
||||
Alexander Schmidt <alexanderschmidt1@gmail.com>
|
||||
Emma Bukacek <emma.bukacek@gmail.com>
|
||||
RealZogger <49367953+RealZogger@users.noreply.github.com>
|
||||
Evan Lloyd <evan.u.lloyd@gmail.com>
|
||||
Farid Neshat <FaridN_SOAD@yahoo.com>
|
||||
Josh Graham <josh@canva.com>
|
||||
Josh Greenberger <jdgreenb@usc.edu>
|
||||
43081j <43081j@users.noreply.github.com>
|
||||
Satoshi Nakamura <snakamura@infoteria.com>
|
||||
Chris Breiding <chrisbreiding@gmail.com>
|
||||
Sebastian Van Sande <sebastian@vansande.org>
|
||||
G.Serebryanskyi <x5x3x5x@gmail.com>
|
||||
Simen Bekkhus <sbekkhus91@gmail.com>
|
||||
Spencer Elliott <me@elliottsj.com>
|
||||
Christoph Guttandin <chrisguttandin@media-codings.com>
|
||||
Szymon Przybylski <szymon.przybylski@gmail.com>
|
||||
Louis Brunner <louis.brunner.fr@gmail.com>
|
||||
Tarjei Huse <tarjei.huse@gmail.com>
|
||||
Gyandeep Singh <gyandeeps@gmail.com>
|
||||
Afnizar Nur Ghifari <afnizarnur@users.noreply.github.com>
|
||||
Henry Tung <henryptung@gmail.com>
|
||||
Marcus Hüsgen <marcus.huesgen@lusini.com>
|
||||
Victor Costan <costan@gmail.com>
|
||||
Hugo Muller <hugo.muller@free.fr>
|
||||
Mark Stacey <mark.stacey@amecfw.com>
|
||||
Daniel Rey Lopez <daniel.rey.lopez@automattic.com>
|
||||
Alex Puchades <alex94puchades@gmail.com>
|
||||
Igor Savin <kibertoad@gmail.com>
|
||||
Zach Bloomquist <github@chary.us>
|
||||
Martin Hansen <martin@martinhansen.no>
|
||||
Irina Dumitrascu <me@dira.ro>
|
||||
blacksun1 <simon@blacksun.cx>
|
||||
Matt Kern <matt@bloomcrush.com>
|
||||
Max Calabrese <max.calabrese@ymail.com>
|
||||
Aaron <aaron.todd@gmail.com>
|
||||
gtothesquare <me@gerieshandal.com>
|
||||
Alex Urbano <asgaroth.belem@gmail.com>
|
||||
Jacob Page <jpage@godaddy.com>
|
||||
Michael Herman <hermanmu@gmail.com>
|
||||
David Mott <dpmott@sep.com>
|
||||
Andrzej Porebski <fkuciapa@yahoo.com>
|
||||
Jakob Jónasson <jakob.jonasson@gmail.com>
|
||||
James Barwell <jb@jamesbarwell.co.uk>
|
||||
mohayonao <mohayonao@gmail.com>
|
||||
Devin Weaver <suki@tritarget.org>
|
||||
nivsherf <nivsherf@gmail.com>
|
||||
romanbalayan <roman.balayan@gmail.com>
|
||||
vitalets <vitalets@yandex-team.ru>
|
||||
yoshimura-toshihide <toshihide0105yoshimura@gmail.com>
|
||||
Nathan Friedly <nathan@nfriedly.com>
|
||||
Rajeesh C V <cvrajeesh@gmail.com>
|
||||
Raul Matei <raul.matei@8x8.com>
|
||||
Raynos <raynos2@gmail.com>
|
||||
ReadmeCritic <frankensteinbot@gmail.com>
|
||||
Revath S Kumar <revathskumar@users.noreply.github.com>
|
||||
Rich Hodgkins <rhodgkins@gmail.com>
|
||||
Richard Lyon <richthegeek@gmail.com>
|
||||
Richard Torres <richardtorres314@gmail.com>
|
||||
Rodion Vynnychenko <roddiku@gmail.com>
|
||||
Rodrigo García <yo@rodrigogarcia.me>
|
||||
Roland Warmerdam <roland@segment.com>
|
||||
Romain Pellerin <rpellerin@users.noreply.github.com>
|
||||
Ruwan Pradeep Geeganage <rpgeeganage@users.noreply.github.com>
|
||||
Ryan Roemer <ryan@loose-bits.com>
|
||||
Ryan Wholey <rjwholey@gmail.com>
|
||||
STuFF <nchalleil@gmail.com>
|
||||
Sam Landfried <samlandfried@gmail.com>
|
||||
Saurav Azad <3856934+sauravazad@users.noreply.github.com>
|
||||
Scott Rudiger <scottrudiger@gmail.com>
|
||||
Sergio Cinos <scinos@atlassian.com>
|
||||
Serkan Özel <serkanozel380@gmail.com>
|
||||
Shaine Hatch <shainehatch@overstock.com>
|
||||
Shawn Krisman <skrisman@nodelings>
|
||||
Shinnosuke Watanabe <snnskwtnb@gmail.com>
|
||||
Simone Fonda <fonda@netseven.it>
|
||||
Sinan Bolel <1915925+sbolel@users.noreply.github.com>
|
||||
Stefan Weil <sw@weilnetz.de>
|
||||
Stefan du Fresne <stefan@sdufresne.info>
|
||||
StefanSchoof <Stefan.Schoof@direkt-gruppe.de>
|
||||
Stephen Burrows <stephen.r.burrows@gmail.com>
|
||||
Steven Lu <stevenlu443@gmail.com>
|
||||
Sven Fuchs <svenfuchs@artweb-design.de>
|
||||
Søren Enemærke <soren.enemaerke@gmail.com>
|
||||
T1st3 <contact@tiste.org>
|
||||
TEHEK Firefox <tehek@tehek.net>
|
||||
Tek Nynja <github@teknynja.com>
|
||||
The Gitter Badger <badger@gitter.im>
|
||||
Thomas Biesemann <thomas.biesemann@sap.com>
|
||||
Tieme van Veen <tiemevanveen@hotmail.com>
|
||||
Tim Branyen <tim@tabdeveloper.com>
|
||||
Tim Li <zhengang@sine.co>
|
||||
Tim Wienk <tim@wienk.name>
|
||||
Timo Tijhof <krinklemail@gmail.com>
|
||||
Tobias Mansfield-Williams <tmansfield-williams@esri.com>
|
||||
Tomek Wytrębowicz <tomalecpub@gmail.com>
|
||||
Valentin Agachi <github-com@agachi.name>
|
||||
Vignesh Kumar <vigneshkumar646@gmail.com>
|
||||
Volkan Ozcelik <volkan.ozcelik@jivesoftware.com>
|
||||
Vynce Montgomery <vynce.montgomery@gmail.com>
|
||||
White, Ben <ben.white@jpmchase.com>
|
||||
Whymarrh Whitby <whymarrh.whitby@gmail.com>
|
||||
Will Butler <will@butlerhq.com>
|
||||
William Meleyal <w.meleyal@wollzelle.com>
|
||||
Yury Fedorov <10244414+orlangure@users.noreply.github.com>
|
||||
Zakir <zak.saifi7@gmail.com>
|
||||
Zhengang Li <huttli@users.noreply.github.com>
|
||||
andrew <andrew.derozario@online-pajak.com>
|
||||
charlierudolph <charles.w.rudolph@gmail.com>
|
||||
clint <clint@wealthfront.com>
|
||||
codejedi365 <codejedi365@users.noreply.github.com>
|
||||
ehmicky <ehmicky@gmail.com>
|
||||
goligo <ich@malte.de>
|
||||
hannes <github@htmlcss.de>
|
||||
hashchange <heim@zeilenwechsel.de>
|
||||
ichthala <alice.mottola@gmail.com>
|
||||
jamestalmage <james.talmage@jrtechnical.com>
|
||||
jshayes <justin@yolk.ai>
|
||||
kbackowski <kbackowski@gmail.com>
|
||||
mareq <mareq@balint.eu>
|
||||
mbehboodian <morteza6909@gmail.com>
|
||||
ngryman <ngryman@gmail.com>
|
||||
niftylettuce <niftylettuce@gmail.com>
|
||||
simonzack <simonzack@gmail.com>
|
||||
stevesouth <stephen.south@caplin.com>
|
||||
stoically <stoically@protonmail.com>
|
||||
thefourtheye <thefourtheye@users.noreply.github.com>
|
||||
till <till@php.net>
|
||||
vsa <vsa@users.noreply.github.com>
|
||||
wwalser <waw325@gmail.com>
|
||||
Xiao Ma <x@medium.com>
|
||||
AJ Ortega <ajo@google.com>
|
||||
Adam Lynch <contact@adamlynch.com>
|
||||
AdilKhn <AdilKhn@users.noreply.github.com>
|
||||
Aditya Vohra <avohra@yelp.com>
|
||||
Adrian Phinney <adrian.phinney@bellaliant.net>
|
||||
Adrian Schmidt <adrian.schmidt@lime.tech>
|
||||
Akira Matsuda <ronnie@dio.jp>
|
||||
Aleksey Bobyr <aleksey.bobyr@beetroot.se>
|
||||
Alex Ghiculescu <alex@tanda.co>
|
||||
Alex Kessaris <alex@artsy.ca>
|
||||
Alex Tran <alex@Alexs-MacBook-Pro-2.local>
|
||||
Alexander Aivars <alex@aivars.se>
|
||||
Alexey Kucherenko <alexei.kucherenko@gmail.com>
|
||||
Alexsey <agat00@gmail.com>
|
||||
Alfonso Boza <alfonso@cloud.com>
|
||||
Ali Shakiba <ali@shakiba.me>
|
||||
Andrew Fong <afong@slack-corp.com>
|
||||
Andrew Leschinsky <andrew@leschinsky.com>
|
||||
Andrew Shirley <andrew@als-bi.com>
|
||||
Antonio D'Ettole <antonio@brandwatch.com>
|
||||
Auclair Emmanuel <auclair.emmanuel.prestataire@sfr.com>
|
||||
Aziz Punjani <aziz.punjani@gmail.com>
|
||||
Ben Brostoff <ben.brostoff@gmail.com>
|
||||
Ben Lertlumprasertkul <Ben.Lertlumprasertkul@ig.com>
|
||||
Bing Ren <bingtimren@gmail.com>
|
||||
Blaine Bublitz <blaine@iceddev.com>
|
||||
Blake Embrey <hello@blakeembrey.com>
|
||||
Blake Israel <blake.israel@gatech.edu>
|
||||
Boshen Chen <boshenc@gmail.com>
|
||||
Brandon Au <brandon.au@drexel.edu>
|
||||
Brett Zamir <brettz9@yahoo.com>
|
||||
Brian Bleakley <brianbleakley@gmail.com>
|
||||
Brian M Hunt <brianmhunt@gmail.com>
|
||||
Burak Yiğit Kaya <ben@byk.im>
|
||||
C. T. Lin <chentsulin@gmail.com>
|
||||
Crimson-riot <74468835+Crimson-riot@users.noreply.github.com>
|
||||
Dan Bird <danielsbird@gmail.com>
|
||||
Dan Peddle <dazld@users.noreply.github.com>
|
||||
Daniel Rentz <daniel.rentz@open-xchange.com>
|
||||
Daryl Lau <daryl@goodeggs.com>
|
||||
David Colucci <davidanthonycolucci@gmail.com>
|
||||
David Hayes <drhayes@users.noreply.github.com>
|
||||
David Hunt <davidhunt@Davids-MBP.local>
|
||||
Dean Sofer <ProLoser@users.noreply.github.com>
|
||||
Duc Tri Le <duc1@email.tiger-inc.com>
|
||||
Eduardo Diaz <eduardo.diaz@auth0.com>
|
||||
Eli White <github@eli-white.com>
|
||||
Eric Stobbart <Eric_Stobbart@comcast.com>
|
||||
Eric Wendelin <ewendelin@twitter.com>
|
||||
Ericat <erica.salvaneschi@gmail.com>
|
||||
Feiyang1 <plane1113@gmail.com>
|
||||
Felipe Carasso <felipe@carassonet.org>
|
||||
Franck Romano <fra@octo.com>
|
||||
GProst <gprostmail@gmail.com>
|
||||
Gabe Jackson <gj@mail.co.de>
|
||||
Gavin Boulton <gavin.boulton@digital.cabinet-office.gov.uk>
|
||||
Gerhard Stöbich <18708370+Flarna@users.noreply.github.com>
|
||||
Gilad Peleg <giladp007@gmail.com>
|
||||
Giorgos Giannoutsos <contact@nuc.gr>
|
||||
Gord Tanner <gord@tinyhippos.com>
|
||||
Gordon L. Hempton <ghempton@gmail.com>
|
||||
Gvozd <gvozdev.viktor@gmail.com>
|
||||
Harry Wolff <hswolff@gmail.com>
|
||||
HugoMuller <hmu@debian-hmu-dev>
|
||||
Ian Lewis <IanMLewis@gmail.com>
|
||||
Ian Thomas <ian@ian-thomas.net>
|
||||
Irving <Irvingb232@gmail.com>
|
||||
J France <jason.a.france@gmail.com>
|
||||
Jack Brown <jack.brown@mi9.com.au>
|
||||
Jahangir Iqbal <35706211+jiqbal48@users.noreply.github.com>
|
||||
Jake Champion <me@jakechampion.name>
|
||||
James Beavers <jamesjbeavers@gmail.com>
|
||||
James M. Greene <james.m.greene@gmail.com>
|
||||
Jan Kopriva <jan.kopriva@gooddata.com>
|
||||
Jan Suchý <jan.sandokan@gmail.com>
|
||||
Jani Hartikainen <jani.hartikainen@gmail.com>
|
||||
Jason Anderson <diurnalist@gmail.com>
|
||||
Joakim Wimmerstedt <joakim.wimmerstedt@gmail.com>
|
||||
Jochen Preusche <iilei@users.noreply.github.com>
|
||||
Johann Hubert Sonntagbauer <johann.sonntagbauer@gmx.at>
|
||||
John Bernardo <jbernardo@linkedin.com>
|
||||
Jonathan Roitgrund <jroitgrund@gmail.com>
|
||||
Jordan Harband <ljharb@gmail.com>
|
||||
Jordan Hawker <hawker.jordan@gmail.com>
|
||||
Joseph Evans <evonsdesigns@gmail.com>
|
||||
Joseph Spens <joseph@workmarket.com>
|
||||
Josh Goldberg <josh@fullscreenmario.com>
|
||||
Joshua Campbell <joshcampbell191@users.noreply.github.com>
|
||||
JoshuaCWebDeveloper <coosriverjoshua1@outlook.com>
|
||||
Juntao Zeng <31234156+juntaozeng@users.noreply.github.com>
|
||||
Kalisa Falzone <KalisaFalzone@users.noreply.github.com>
|
||||
Katrina Theodosopoulos <katrinaelaine6@gmail.com>
|
||||
Keith Rogers <git@keithrogers.eu>
|
||||
Kelly Selden <kellyselden@gmail.com>
|
||||
Kenneth Williams <scriptdaemon@gmail.com>
|
||||
Kev <lineus@gmail.com>
|
||||
Kevin Bosman <kevinbosman@users.noreply.github.com>
|
||||
Kevin Ennis <kennis84@gmail.com>
|
||||
Kevin Turner <kevin@decipherinc.com>
|
||||
Kim Joar Bekkelund <kjbekkelund@gmail.com>
|
||||
Kim Schmider <kim366@users.noreply.github.com>
|
||||
Kris Kowal <kris.kowal@cixar.com>
|
||||
Kristian <krisham87@hotmail.com>
|
||||
Kuba Orlik <kontakt@jakub-orlik.pl>
|
||||
Kurt Ruppel <me@kurtruppel.com>
|
||||
Lars Thorup <lars@zealake.com>
|
||||
LboAnn <extend1994@gmail.com>
|
||||
LostArchives <valentin.mullet@gmail.com>
|
||||
Lucas Vieira <vieiralucas@users.noreply.github.com>
|
||||
Luchs <Luchs@euirc.eu>
|
||||
Maarten Tromp <maarten@nouncy.com>
|
||||
Marco Ramirez <marco-ramirez@bankofamerica.com>
|
||||
Marcos Vanetta <marcos_vanetta@condenast.com>
|
||||
Mario Pareja <mpareja@360incentives.com>
|
||||
Mark Banner <standard8@mozilla.com>
|
||||
Mark Gibson <mgibson@adaptavist.com>
|
||||
Mark Stickley <markstickley@users.noreply.github.com>
|
||||
Martin Brochhaus <mbrochh@gmail.com>
|
||||
Martin Körner <martin.koerner@objectfab.de>
|
||||
Matthew Gabeler-Lee <mgabeler-lee@6river.com>
|
||||
Matthew Williams <mrwillihog@users.noreply.github.com>
|
||||
Max Klymyshyn <klymyshyn@gmail.com>
|
||||
Maxim Tsoy <maks.tsoy@gmail.com>
|
||||
Michael David Kuckuk <mdk@kuckuk.com>
|
||||
Michael Jackson <mjijackson@gmail.com>
|
||||
Michael Paulukonis <xraysmalevich@gmail.com>
|
||||
Michał Perłakowski <michal@perlakowski.pl>
|
||||
Mike Eve <ungrim97@gmail.com>
|
||||
Mike Flanigan <mkflan@gmail.com>
|
||||
Mikolaj Banasik <d1sover@gmail.com>
|
||||
MouseZero <rm@mousezero.com>
|
||||
Munieru <20086673+munierujp@users.noreply.github.com>
|
||||
Mustafa Sak <mustafa.sak@1und1.de>
|
||||
Nelson Silva <nelson.silva@inevo.pt>
|
||||
Nicholas Stephan <nicholas.stephan@gmail.com>
|
||||
Nicu Micleușanu <micnic90@gmail.com>
|
||||
Nikita Litvin <deltaidea@derpy.ru>
|
||||
Niklas Andreasson <eaglus_@hotmail.com>
|
||||
Noam Paz <noam.paz@gmail.com>
|
||||
Olmo Maldonado <olmo.maldonado@gmail.com>
|
||||
Paul Barry <paul@Pauls-Air.fios-router.home>
|
||||
Pelle Wessman <pelle@kodfabrik.se>
|
||||
Petar Dochev <dotchev@gmail.com>
|
||||
Peter Grainger <peter@grainger.xyz>
|
||||
Peter Zsoldos <peter.zsoldos@gmail.com>
|
||||
Pia Mancini <piamancini@gmail.com>
|
||||
Piper Chester <piperchester@users.noreply.github.com>
|
||||
Prayag Verma <prayag.verma@gmail.com>
|
||||
1662
node_modules/sinon/CHANGELOG.md
generated
vendored
1662
node_modules/sinon/CHANGELOG.md
generated
vendored
File diff suppressed because it is too large
Load diff
4
node_modules/sinon/README.md
generated
vendored
4
node_modules/sinon/README.md
generated
vendored
|
|
@ -23,11 +23,13 @@
|
|||
<a href="CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a>
|
||||
</p>
|
||||
|
||||
<!-- Shows an outdated badge. Will not be fixed until https://github.com/sinonjs/fake-timers/pull/395 ships.
|
||||
<p align=center>
|
||||
<a href="https://app.saucelabs.com/u/sinonjs">
|
||||
<img src="https://app.saucelabs.com/browser-matrix/sinonjs.svg" alt="Sauce Test Status"/>
|
||||
</a>
|
||||
</a>
|
||||
</p>
|
||||
-->
|
||||
|
||||
## Compatibility
|
||||
|
||||
|
|
|
|||
BIN
node_modules/sinon/lib/.DS_Store
generated
vendored
BIN
node_modules/sinon/lib/.DS_Store
generated
vendored
Binary file not shown.
3
node_modules/sinon/lib/package.json
generated
vendored
Normal file
3
node_modules/sinon/lib/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
14
node_modules/sinon/lib/sinon/assert.js
generated
vendored
14
node_modules/sinon/lib/sinon/assert.js
generated
vendored
|
|
@ -159,10 +159,16 @@ function createAssertObject() {
|
|||
callCount: function assertCallCount(method, count) {
|
||||
verifyIsStub(method);
|
||||
|
||||
if (method.callCount !== count) {
|
||||
var msg = `expected %n to be called ${timesInWords(
|
||||
count
|
||||
)} but was called %c%C`;
|
||||
var msg;
|
||||
if (typeof count !== "number") {
|
||||
msg =
|
||||
`expected ${format(count)} to be a number ` +
|
||||
`but was of type ${typeof count}`;
|
||||
failAssertion(this, msg);
|
||||
} else if (method.callCount !== count) {
|
||||
msg =
|
||||
`expected %n to be called ${timesInWords(count)} ` +
|
||||
`but was called %c%C`;
|
||||
failAssertion(this, method.printf(msg));
|
||||
} else {
|
||||
assert.pass("callCount");
|
||||
|
|
|
|||
2
node_modules/sinon/lib/sinon/promise.js
generated
vendored
2
node_modules/sinon/lib/sinon/promise.js
generated
vendored
|
|
@ -8,7 +8,7 @@ var STATUS_RESOLVED = "resolved";
|
|||
var STATUS_REJECTED = "rejected";
|
||||
|
||||
/**
|
||||
* Returns a fake for a given function or undefined. If no functino is given, a
|
||||
* Returns a fake for a given function or undefined. If no function is given, a
|
||||
* new fake is returned. If the given function is already a fake, it is
|
||||
* returned as is. Otherwise the given function is wrapped in a new fake.
|
||||
*
|
||||
|
|
|
|||
3
node_modules/sinon/lib/sinon/proxy-call.js
generated
vendored
3
node_modules/sinon/lib/sinon/proxy-call.js
generated
vendored
|
|
@ -220,7 +220,8 @@ var callProto = {
|
|||
}
|
||||
}
|
||||
if (this.stack) {
|
||||
// Omit the error message and the two top stack frames in sinon itself:
|
||||
// If we have a stack, add the first frame that's in end-user code
|
||||
// Skip the first two frames because they will refer to Sinon code
|
||||
callStr += (this.stack.split("\n")[3] || "unknown").replace(
|
||||
/^\s*(?:at\s+|@)?/,
|
||||
" at "
|
||||
|
|
|
|||
10
node_modules/sinon/lib/sinon/proxy.js
generated
vendored
10
node_modules/sinon/lib/sinon/proxy.js
generated
vendored
|
|
@ -120,16 +120,16 @@ var proxyApi = {
|
|||
var args = slice(arguments, 1);
|
||||
var formatter;
|
||||
|
||||
return (format || "").replace(/%(.)/g, function (match, specifyer) {
|
||||
formatter = proxyApi.formatters[specifyer];
|
||||
return (format || "").replace(/%(.)/g, function (match, specifier) {
|
||||
formatter = proxyApi.formatters[specifier];
|
||||
|
||||
if (typeof formatter === "function") {
|
||||
return String(formatter(spyInstance, args));
|
||||
} else if (!isNaN(parseInt(specifyer, 10))) {
|
||||
return sinonFormat(args[specifyer - 1]);
|
||||
} else if (!isNaN(parseInt(specifier, 10))) {
|
||||
return sinonFormat(args[specifier - 1]);
|
||||
}
|
||||
|
||||
return `%${specifyer}`;
|
||||
return `%${specifier}`;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
22
node_modules/sinon/lib/sinon/spy-formatters.js
generated
vendored
22
node_modules/sinon/lib/sinon/spy-formatters.js
generated
vendored
|
|
@ -72,29 +72,29 @@ module.exports = {
|
|||
j < calledArgs.length || j < expectedArgs.length;
|
||||
++j
|
||||
) {
|
||||
if (calledArgs[j]) {
|
||||
calledArgs[j] = quoteStringValue(calledArgs[j]);
|
||||
var calledArg = calledArgs[j];
|
||||
var expectedArg = expectedArgs[j];
|
||||
if (calledArg) {
|
||||
calledArg = quoteStringValue(calledArg);
|
||||
}
|
||||
|
||||
if (expectedArgs[j]) {
|
||||
expectedArgs[j] = quoteStringValue(expectedArgs[j]);
|
||||
if (expectedArg) {
|
||||
expectedArg = quoteStringValue(expectedArg);
|
||||
}
|
||||
|
||||
message += "\n";
|
||||
|
||||
var calledArgMessage =
|
||||
j < calledArgs.length ? sinonFormat(calledArgs[j]) : "";
|
||||
if (match.isMatcher(expectedArgs[j])) {
|
||||
j < calledArgs.length ? sinonFormat(calledArg) : "";
|
||||
if (match.isMatcher(expectedArg)) {
|
||||
message += colorSinonMatchText(
|
||||
expectedArgs[j],
|
||||
calledArgs[j],
|
||||
expectedArg,
|
||||
calledArg,
|
||||
calledArgMessage
|
||||
);
|
||||
} else {
|
||||
var expectedArgMessage =
|
||||
j < expectedArgs.length
|
||||
? sinonFormat(expectedArgs[j])
|
||||
: "";
|
||||
j < expectedArgs.length ? sinonFormat(expectedArg) : "";
|
||||
var diff = jsDiff.diffJson(
|
||||
calledArgMessage,
|
||||
expectedArgMessage
|
||||
|
|
|
|||
33
node_modules/sinon/lib/sinon/stub.js
generated
vendored
33
node_modules/sinon/lib/sinon/stub.js
generated
vendored
|
|
@ -81,6 +81,9 @@ function stub(object, property) {
|
|||
}
|
||||
|
||||
var actualDescriptor = getPropertyDescriptor(object, property);
|
||||
|
||||
assertValidPropertyDescriptor(actualDescriptor, property);
|
||||
|
||||
var isObjectOrFunction =
|
||||
typeof object === "object" || typeof object === "function";
|
||||
var isStubbingEntireObject =
|
||||
|
|
@ -147,6 +150,36 @@ stub.createStubInstance = function (constructor, overrides) {
|
|||
return stubbedObject;
|
||||
};
|
||||
|
||||
function assertValidPropertyDescriptor(descriptor, property) {
|
||||
if (!descriptor || !property) {
|
||||
return;
|
||||
}
|
||||
if (!descriptor.configurable && !descriptor.writable) {
|
||||
throw new TypeError(
|
||||
`Descriptor for property ${property} is non-configurable and non-writable`
|
||||
);
|
||||
}
|
||||
if ((descriptor.get || descriptor.set) && !descriptor.configurable) {
|
||||
throw new TypeError(
|
||||
`Descriptor for accessor property ${property} is non-configurable`
|
||||
);
|
||||
}
|
||||
if (isDataDescriptor(descriptor) && !descriptor.writable) {
|
||||
throw new TypeError(
|
||||
`Descriptor for data property ${property} is non-writable`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function isDataDescriptor(descriptor) {
|
||||
return (
|
||||
!descriptor.value &&
|
||||
!descriptor.writable &&
|
||||
!descriptor.set &&
|
||||
!descriptor.get
|
||||
);
|
||||
}
|
||||
|
||||
/*eslint-disable no-use-before-define*/
|
||||
function getParentBehaviour(stubInstance) {
|
||||
return stubInstance.parent && getCurrentBehavior(stubInstance.parent);
|
||||
|
|
|
|||
BIN
node_modules/sinon/lib/sinon/util/.DS_Store
generated
vendored
BIN
node_modules/sinon/lib/sinon/util/.DS_Store
generated
vendored
Binary file not shown.
BIN
node_modules/sinon/lib/sinon/util/core/.DS_Store
generated
vendored
BIN
node_modules/sinon/lib/sinon/util/core/.DS_Store
generated
vendored
Binary file not shown.
2
node_modules/sinon/lib/sinon/util/core/extend.js
generated
vendored
2
node_modules/sinon/lib/sinon/util/core/extend.js
generated
vendored
|
|
@ -108,7 +108,7 @@ module.exports = function extend(target, ...sources) {
|
|||
};
|
||||
/*
|
||||
if the sorce has an Accessor property copy over the accessor functions (get and set)
|
||||
data properties has writable attribute where as acessor property don't
|
||||
data properties has writable attribute where as accessor property don't
|
||||
REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#properties
|
||||
*/
|
||||
|
||||
|
|
|
|||
11
node_modules/sinon/node_modules/@sinonjs/fake-timers/LICENSE
generated
vendored
Normal file
11
node_modules/sinon/node_modules/@sinonjs/fake-timers/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
352
node_modules/sinon/node_modules/@sinonjs/fake-timers/README.md
generated
vendored
Normal file
352
node_modules/sinon/node_modules/@sinonjs/fake-timers/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,352 @@
|
|||
# `@sinonjs/fake-timers`
|
||||
|
||||
[](https://circleci.com/gh/sinonjs/fake-timers)
|
||||
[](https://codecov.io/gh/sinonjs/fake-timers)
|
||||
<a href="CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a>
|
||||
|
||||
JavaScript implementation of the timer APIs; `setTimeout`, `clearTimeout`, `setImmediate`, `clearImmediate`, `setInterval`, `clearInterval`, `requestAnimationFrame`, `cancelAnimationFrame`, `requestIdleCallback`, and `cancelIdleCallback`, along with a clock instance that controls the flow of time. FakeTimers also provides a `Date` implementation that gets its time from the clock.
|
||||
|
||||
In addition in browser environment `@sinonjs/fake-timers` provides a `performance` implementation that gets its time from the clock. In Node environments FakeTimers provides a `nextTick` implementation that is synchronized with the clock - and a `process.hrtime` shim that works with the clock.
|
||||
|
||||
`@sinonjs/fake-timers` can be used to simulate passing time in automated tests and other
|
||||
situations where you want the scheduling semantics, but don't want to actually
|
||||
wait.
|
||||
|
||||
`@sinonjs/fake-timers` is extracted from [Sinon.JS](https://github.com/sinonjs/sinon.js) and targets the [same runtimes](https://sinonjs.org/releases/latest/#supported-runtimes).
|
||||
|
||||
## Autocomplete, IntelliSense and TypeScript definitions
|
||||
|
||||
Version 7 introduced JSDoc to the codebase. This should provide autocomplete and type suggestions in supporting IDEs. If you need more elaborate type support, TypeScript definitions for the Sinon projects are independently maintained by the Definitely Types community:
|
||||
|
||||
```
|
||||
npm install -D @types/sinonjs__fake-timers
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
`@sinonjs/fake-timers` can be used in both Node and browser environments. Installation is as easy as
|
||||
|
||||
```sh
|
||||
npm install @sinonjs/fake-timers
|
||||
```
|
||||
|
||||
If you want to use `@sinonjs/fake-timers` in a browser you can either build your own bundle or use [Skypack](https://www.skypack.dev).
|
||||
|
||||
## Usage
|
||||
|
||||
To use `@sinonjs/fake-timers`, create a new clock, schedule events on it using the timer
|
||||
functions and pass time using the `tick` method.
|
||||
|
||||
```js
|
||||
// In the browser distribution, a global `FakeTimers` is already available
|
||||
var FakeTimers = require("@sinonjs/fake-timers");
|
||||
var clock = FakeTimers.createClock();
|
||||
|
||||
clock.setTimeout(function () {
|
||||
console.log(
|
||||
"The poblano is a mild chili pepper originating in the state of Puebla, Mexico."
|
||||
);
|
||||
}, 15);
|
||||
|
||||
// ...
|
||||
|
||||
clock.tick(15);
|
||||
```
|
||||
|
||||
Upon executing the last line, an interesting fact about the
|
||||
[Poblano](https://en.wikipedia.org/wiki/Poblano) will be printed synchronously to
|
||||
the screen. If you want to simulate asynchronous behavior, please see the `async` function variants (eg `clock.tick(time)` vs `await clock.tickAsync(time)`).
|
||||
|
||||
The `next`, `runAll`, `runToFrame`, and `runToLast` methods are available to advance the clock. See the
|
||||
API Reference for more details.
|
||||
|
||||
### Faking the native timers
|
||||
|
||||
When using `@sinonjs/fake-timers` to test timers, you will most likely want to replace the native
|
||||
timers such that calling `setTimeout` actually schedules a callback with your
|
||||
clock instance, not the browser's internals.
|
||||
|
||||
Calling `install` with no arguments achieves this. You can call `uninstall`
|
||||
later to restore things as they were again.
|
||||
|
||||
```js
|
||||
// In the browser distribution, a global `FakeTimers` is already available
|
||||
var FakeTimers = require("@sinonjs/fake-timers");
|
||||
|
||||
var clock = FakeTimers.install();
|
||||
// Equivalent to
|
||||
// var clock = FakeTimers.install(typeof global !== "undefined" ? global : window);
|
||||
|
||||
setTimeout(fn, 15); // Schedules with clock.setTimeout
|
||||
|
||||
clock.uninstall();
|
||||
// setTimeout is restored to the native implementation
|
||||
```
|
||||
|
||||
To hijack timers in another context pass it to the `install` method.
|
||||
|
||||
```js
|
||||
var FakeTimers = require("@sinonjs/fake-timers");
|
||||
var context = {
|
||||
setTimeout: setTimeout, // By default context.setTimeout uses the global setTimeout
|
||||
};
|
||||
var clock = FakeTimers.withGlobal(context).install();
|
||||
|
||||
context.setTimeout(fn, 15); // Schedules with clock.setTimeout
|
||||
|
||||
clock.uninstall();
|
||||
// context.setTimeout is restored to the original implementation
|
||||
```
|
||||
|
||||
Usually you want to install the timers onto the global object, so call `install`
|
||||
without arguments.
|
||||
|
||||
#### Automatically incrementing mocked time
|
||||
|
||||
FakeTimers supports the possibility to attach the faked timers to any change
|
||||
in the real system time. This means that there is no need to `tick()` the
|
||||
clock in a situation where you won't know **when** to call `tick()`.
|
||||
|
||||
Please note that this is achieved using the original setImmediate() API at a certain
|
||||
configurable interval `config.advanceTimeDelta` (default: 20ms). Meaning time would
|
||||
be incremented every 20ms, not in real time.
|
||||
|
||||
An example would be:
|
||||
|
||||
```js
|
||||
var FakeTimers = require("@sinonjs/fake-timers");
|
||||
var clock = FakeTimers.install({
|
||||
shouldAdvanceTime: true,
|
||||
advanceTimeDelta: 40,
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
console.log("this just timed out"); //executed after 40ms
|
||||
}, 30);
|
||||
|
||||
setImmediate(() => {
|
||||
console.log("not so immediate"); //executed after 40ms
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
console.log("this timed out after"); //executed after 80ms
|
||||
clock.uninstall();
|
||||
}, 50);
|
||||
```
|
||||
|
||||
## API Reference
|
||||
|
||||
### `var clock = FakeTimers.createClock([now[, loopLimit]])`
|
||||
|
||||
Creates a clock. The default
|
||||
[epoch](https://en.wikipedia.org/wiki/Epoch_%28reference_date%29) is `0`.
|
||||
|
||||
The `now` argument may be a number (in milliseconds) or a Date object.
|
||||
|
||||
The `loopLimit` argument sets the maximum number of timers that will be run when calling `runAll()` before assuming that we have an infinite loop and throwing an error. The default is `1000`.
|
||||
|
||||
### `var clock = FakeTimers.install([config])`
|
||||
|
||||
Installs FakeTimers using the specified config (otherwise with epoch `0` on the global scope). The following configuration options are available
|
||||
|
||||
| Parameter | Type | Default | Description |
|
||||
| -------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `config.now` | Number/Date | 0 | installs FakeTimers with the specified unix epoch |
|
||||
| `config.toFake` | String[] | ["setTimeout", "clearTimeout", "setImmediate", "clearImmediate","setInterval", "clearInterval", "Date", "requestAnimationFrame", "cancelAnimationFrame", "requestIdleCallback", "cancelIdleCallback", "hrtime", "performance"] | an array with explicit function names (or objects, in the case of "performance") to hijack. _When not set, FakeTimers will automatically fake all methods **except** `nextTick`_ e.g., `FakeTimers.install({ toFake: ["setTimeout","nextTick"]})` will fake only `setTimeout` and `nextTick` |
|
||||
| `config.loopLimit` | Number | 1000 | the maximum number of timers that will be run when calling runAll() |
|
||||
| `config.shouldAdvanceTime` | Boolean | false | tells FakeTimers to increment mocked time automatically based on the real system time shift (e.g. the mocked time will be incremented by 20ms for every 20ms change in the real system time) |
|
||||
| `config.advanceTimeDelta` | Number | 20 | relevant only when using with `shouldAdvanceTime: true`. increment mocked time by `advanceTimeDelta` ms every `advanceTimeDelta` ms change in the real system time. |
|
||||
| `config.shouldClearNativeTimers` | Boolean | false | tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. |
|
||||
|
||||
### `var id = clock.setTimeout(callback, timeout)`
|
||||
|
||||
Schedules the callback to be fired once `timeout` milliseconds have ticked by.
|
||||
|
||||
In Node.js `setTimeout` returns a timer object. FakeTimers will do the same, however
|
||||
its `ref()` and `unref()` methods have no effect.
|
||||
|
||||
In browsers a timer ID is returned.
|
||||
|
||||
### `clock.clearTimeout(id)`
|
||||
|
||||
Clears the timer given the ID or timer object, as long as it was created using
|
||||
`setTimeout`.
|
||||
|
||||
### `var id = clock.setInterval(callback, timeout)`
|
||||
|
||||
Schedules the callback to be fired every time `timeout` milliseconds have ticked
|
||||
by.
|
||||
|
||||
In Node.js `setInterval` returns a timer object. FakeTimers will do the same, however
|
||||
its `ref()` and `unref()` methods have no effect.
|
||||
|
||||
In browsers a timer ID is returned.
|
||||
|
||||
### `clock.clearInterval(id)`
|
||||
|
||||
Clears the timer given the ID or timer object, as long as it was created using
|
||||
`setInterval`.
|
||||
|
||||
### `var id = clock.setImmediate(callback)`
|
||||
|
||||
Schedules the callback to be fired once `0` milliseconds have ticked by. Note
|
||||
that you'll still have to call `clock.tick()` for the callback to fire. If
|
||||
called during a tick the callback won't fire until `1` millisecond has ticked
|
||||
by.
|
||||
|
||||
In Node.js `setImmediate` returns a timer object. FakeTimers will do the same,
|
||||
however its `ref()` and `unref()` methods have no effect.
|
||||
|
||||
In browsers a timer ID is returned.
|
||||
|
||||
### `clock.clearImmediate(id)`
|
||||
|
||||
Clears the timer given the ID or timer object, as long as it was created using
|
||||
`setImmediate`.
|
||||
|
||||
### `clock.requestAnimationFrame(callback)`
|
||||
|
||||
Schedules the callback to be fired on the next animation frame, which runs every
|
||||
16 ticks. Returns an `id` which can be used to cancel the callback. This is
|
||||
available in both browser & node environments.
|
||||
|
||||
### `clock.cancelAnimationFrame(id)`
|
||||
|
||||
Cancels the callback scheduled by the provided id.
|
||||
|
||||
### `clock.requestIdleCallback(callback[, timeout])`
|
||||
|
||||
Queued the callback to be fired during idle periods to perform background and low priority work on the main event loop. Callbacks which have a timeout option will be fired no later than time in milliseconds. Returns an `id` which can be used to cancel the callback.
|
||||
|
||||
### `clock.cancelIdleCallback(id)`
|
||||
|
||||
Cancels the callback scheduled by the provided id.
|
||||
|
||||
### `clock.countTimers()`
|
||||
|
||||
Returns the number of waiting timers. This can be used to assert that a test
|
||||
finishes without leaking any timers.
|
||||
|
||||
### `clock.hrtime(prevTime?)`
|
||||
|
||||
Only available in Node.js, mimicks process.hrtime().
|
||||
|
||||
### `clock.nextTick(callback)`
|
||||
|
||||
Only available in Node.js, mimics `process.nextTick` to enable completely synchronous testing flows.
|
||||
|
||||
### `clock.performance.now()`
|
||||
|
||||
Only available in browser environments, mimicks performance.now().
|
||||
|
||||
### `clock.tick(time)` / `await clock.tickAsync(time)`
|
||||
|
||||
Advance the clock, firing callbacks if necessary. `time` may be the number of
|
||||
milliseconds to advance the clock by or a human-readable string. Valid string
|
||||
formats are `"08"` for eight seconds, `"01:00"` for one minute and `"02:34:10"`
|
||||
for two hours, 34 minutes and ten seconds.
|
||||
|
||||
The `tickAsync()` will also break the event loop, allowing any scheduled promise
|
||||
callbacks to execute _before_ running the timers.
|
||||
|
||||
### `clock.next()` / `await clock.nextAsync()`
|
||||
|
||||
Advances the clock to the the moment of the first scheduled timer, firing it.
|
||||
|
||||
The `nextAsync()` will also break the event loop, allowing any scheduled promise
|
||||
callbacks to execute _before_ running the timers.
|
||||
|
||||
### `clock.reset()`
|
||||
|
||||
Removes all timers and ticks without firing them, and sets `now` to `config.now`
|
||||
that was provided to `FakeTimers.install` or to `0` if `config.now` was not provided.
|
||||
Useful to reset the state of the clock without having to `uninstall` and `install` it.
|
||||
|
||||
### `clock.runAll()` / `await clock.runAllAsync()`
|
||||
|
||||
This runs all pending timers until there are none remaining. If new timers are added while it is executing they will be run as well.
|
||||
|
||||
This makes it easier to run asynchronous tests to completion without worrying about the number of timers they use, or the delays in those timers.
|
||||
|
||||
It runs a maximum of `loopLimit` times after which it assumes there is an infinite loop of timers and throws an error.
|
||||
|
||||
The `runAllAsync()` will also break the event loop, allowing any scheduled promise
|
||||
callbacks to execute _before_ running the timers.
|
||||
|
||||
### `clock.runMicrotasks()`
|
||||
|
||||
This runs all pending microtasks scheduled with `nextTick` but none of the timers and is mostly useful for libraries using FakeTimers underneath and for running `nextTick` items without any timers.
|
||||
|
||||
### `clock.runToFrame()`
|
||||
|
||||
Advances the clock to the next frame, firing all scheduled animation frame callbacks,
|
||||
if any, for that frame as well as any other timers scheduled along the way.
|
||||
|
||||
### `clock.runToLast()` / `await clock.runToLastAsync()`
|
||||
|
||||
This takes note of the last scheduled timer when it is run, and advances the
|
||||
clock to that time firing callbacks as necessary.
|
||||
|
||||
If new timers are added while it is executing they will be run only if they
|
||||
would occur before this time.
|
||||
|
||||
This is useful when you want to run a test to completion, but the test recursively
|
||||
sets timers that would cause `runAll` to trigger an infinite loop warning.
|
||||
|
||||
The `runToLastAsync()` will also break the event loop, allowing any scheduled promise
|
||||
callbacks to execute _before_ running the timers.
|
||||
|
||||
### `clock.setSystemTime([now])`
|
||||
|
||||
This simulates a user changing the system clock while your program is running.
|
||||
It affects the current time but it does not in itself cause e.g. timers to fire;
|
||||
they will fire exactly as they would have done without the call to
|
||||
setSystemTime().
|
||||
|
||||
### `clock.uninstall()`
|
||||
|
||||
Restores the original methods of the native timers or the methods on the object
|
||||
that was passed to `FakeTimers.withGlobal`
|
||||
|
||||
### `Date`
|
||||
|
||||
Implements the `Date` object but using the clock to provide the correct time.
|
||||
|
||||
### `Performance`
|
||||
|
||||
Implements the `now` method of the [`Performance`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now) object but using the clock to provide the correct time. Only available in environments that support the Performance object (browsers mostly).
|
||||
|
||||
### `FakeTimers.withGlobal`
|
||||
|
||||
In order to support creating clocks based on separate or sandboxed environments (such as JSDOM), FakeTimers exports a factory method which takes single argument `global`, which it inspects to figure out what to mock and what features to support. When invoking this function with a global, you will get back an object with `timers`, `createClock` and `install` - same as the regular FakeTimers exports only based on the passed in global instead of the global environment.
|
||||
|
||||
## Running tests
|
||||
|
||||
FakeTimers has a comprehensive test suite. If you're thinking of contributing bug
|
||||
fixes or suggesting new features, you need to make sure you have not broken any
|
||||
tests. You are also expected to add tests for any new behavior.
|
||||
|
||||
### On node:
|
||||
|
||||
```sh
|
||||
npm test
|
||||
```
|
||||
|
||||
Or, if you prefer more verbose output:
|
||||
|
||||
```
|
||||
$(npm bin)/mocha ./test/fake-timers-test.js
|
||||
```
|
||||
|
||||
### In the browser
|
||||
|
||||
[Mochify](https://github.com/mantoni/mochify.js) is used to run the tests in
|
||||
PhantomJS. Make sure you have `phantomjs` installed. Then:
|
||||
|
||||
```sh
|
||||
npm test-headless
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
BSD 3-clause "New" or "Revised" License (see LICENSE file)
|
||||
71
node_modules/sinon/node_modules/@sinonjs/fake-timers/package.json
generated
vendored
Normal file
71
node_modules/sinon/node_modules/@sinonjs/fake-timers/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"name": "@sinonjs/fake-timers",
|
||||
"description": "Fake JavaScript timers",
|
||||
"version": "9.0.0",
|
||||
"homepage": "https://github.com/sinonjs/fake-timers",
|
||||
"author": "Christian Johansen",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sinonjs/fake-timers.git"
|
||||
},
|
||||
"bugs": {
|
||||
"mail": "christian@cjohansen.no",
|
||||
"url": "https://github.com/sinonjs/fake-timers/issues"
|
||||
},
|
||||
"license": "BSD-3-Clause",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test-node": "mocha --timeout 200 test/ integration-test/ -R dot --check-leaks",
|
||||
"test-headless": "mochify --no-detect-globals --timeout=10000",
|
||||
"test-check-coverage": "npm run test-coverage && nyc check-coverage",
|
||||
"test-cloud": "mochify --wd --no-detect-globals --timeout=10000",
|
||||
"test-coverage": "nyc --all --reporter text --reporter html --reporter lcovonly npm run test-node",
|
||||
"test": "npm run test-node && npm run test-headless",
|
||||
"prettier:check": "prettier --check '**/*.{js,css,md}'",
|
||||
"prettier:write": "prettier --write '**/*.{js,css,md}'",
|
||||
"preversion": "./scripts/preversion.sh",
|
||||
"version": "./scripts/version.sh",
|
||||
"postversion": "./scripts/postversion.sh"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,css,md}": "prettier --check",
|
||||
"*.js": "eslint"
|
||||
},
|
||||
"files": [
|
||||
"src/"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@sinonjs/eslint-config": "4.0.2",
|
||||
"@sinonjs/referee-sinon": "6.0.1",
|
||||
"eslint-config-prettier": "8.3.0",
|
||||
"eslint-plugin-prettier": "3.4.1",
|
||||
"husky": "4.2.1",
|
||||
"jsdom": "16.5.2",
|
||||
"lint-staged": "10.0.7",
|
||||
"mocha": "8.3.2",
|
||||
"mochify": "7.0.0",
|
||||
"nyc": "14.1.1",
|
||||
"prettier": "2.2.1"
|
||||
},
|
||||
"main": "./src/fake-timers-src.js",
|
||||
"dependencies": {
|
||||
"@sinonjs/commons": "^1.7.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run lint"
|
||||
}
|
||||
},
|
||||
"nyc": {
|
||||
"branches": 85,
|
||||
"lines": 92,
|
||||
"functions": 92,
|
||||
"statements": 92,
|
||||
"exclude": [
|
||||
"**/*-test.js",
|
||||
"coverage/**",
|
||||
"types/**",
|
||||
"fake-timers.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
1746
node_modules/sinon/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js
generated
vendored
Normal file
1746
node_modules/sinon/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
47
node_modules/sinon/package.json
generated
vendored
47
node_modules/sinon/package.json
generated
vendored
|
|
@ -15,7 +15,7 @@
|
|||
"xhr",
|
||||
"assert"
|
||||
],
|
||||
"version": "11.1.2",
|
||||
"version": "13.0.0",
|
||||
"homepage": "https://sinonjs.org/",
|
||||
"author": "Christian Johansen",
|
||||
"repository": {
|
||||
|
|
@ -37,24 +37,25 @@
|
|||
"test-coverage": "nyc npm run test-headless -- --transform [ babelify --ignore [ test ] --plugins [ babel-plugin-istanbul ] ]",
|
||||
"test-cloud": "npm run test-headless -- --wd",
|
||||
"test-webworker": "mochify --no-detect-globals --https-server 8080 --no-request-interception test/webworker/webworker-support-assessment.js",
|
||||
"test-esm": "mocha -r esm test/es2015/module-support-assessment-test.es6",
|
||||
"test-esm-bundle": "node test/es2015/check-esm-bundle-is-runnable.js",
|
||||
"test-esm-support": "mocha test/es2015/module-support-assessment-test.mjs",
|
||||
"check-esm-bundle-runs-in-browser": "node test/es2015/check-esm-bundle-is-runnable.js",
|
||||
"test-docker-image": "docker-compose up",
|
||||
"test-runnable-examples": "docs/release-source/release/examples/run-test.sh",
|
||||
"test": "npm run test-node && npm run test-headless && npm run test-webworker && npm run test-esm",
|
||||
"test": "npm run test-node && npm run test-headless && npm run test-webworker",
|
||||
"check-dependencies": "dependency-check package.json --no-dev --ignore-module esm",
|
||||
"build": "node ./build.js",
|
||||
"build": "node ./build.cjs",
|
||||
"build-docs": "cd docs; bundle exec jekyll build",
|
||||
"serve-docs": "cd docs; bundle exec jekyll serve --incremental --verbose",
|
||||
"lint": "eslint '**/*.{js,mjs}'",
|
||||
"lint": "eslint '**/*.{js,cjs,mjs}'",
|
||||
"pretest-webworker": "npm run build",
|
||||
"prebuild": "rimraf pkg && npm run check-dependencies",
|
||||
"postbuild": "npm run test-esm-bundle",
|
||||
"postbuild": "npm run test-esm-support && npm run check-esm-bundle-runs-in-browser",
|
||||
"prebuild-docs": "./scripts/update-compatibility.js",
|
||||
"prepublishOnly": "npm run build",
|
||||
"prettier:check": "prettier --check '**/*.{js,css,md}'",
|
||||
"prettier:write": "prettier --write '**/*.{js,css,md}'",
|
||||
"preversion": "./scripts/preversion.sh",
|
||||
"version": "changes --commits --footer",
|
||||
"postversion": "./scripts/postversion.sh"
|
||||
},
|
||||
"nyc": {
|
||||
|
|
@ -72,33 +73,33 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@sinonjs/commons": "^1.8.3",
|
||||
"@sinonjs/fake-timers": "^7.1.2",
|
||||
"@sinonjs/samsam": "^6.0.2",
|
||||
"@sinonjs/fake-timers": "^9.0.0",
|
||||
"@sinonjs/samsam": "^6.1.1",
|
||||
"diff": "^5.0.0",
|
||||
"nise": "^5.1.0",
|
||||
"supports-color": "^7.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.3",
|
||||
"@sinonjs/eslint-config": "^4.0.2",
|
||||
"@babel/core": "^7.16.12",
|
||||
"@sinonjs/eslint-config": "^4.0.5",
|
||||
"@sinonjs/eslint-plugin-no-prototype-methods": "^0.1.1",
|
||||
"@sinonjs/referee": "^8.0.2",
|
||||
"babel-plugin-istanbul": "^6.0.0",
|
||||
"@sinonjs/referee": "^9.1.1",
|
||||
"@studio/changes": "^2.2.0",
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"babelify": "^10.0.0",
|
||||
"browserify": "^16.5.2",
|
||||
"debug": "^4.3.1",
|
||||
"dependency-check": "^4.1.0",
|
||||
"esm": "^3.2.25",
|
||||
"husky": "^6.0.0",
|
||||
"lint-staged": "^11.0.0",
|
||||
"mocha": "^8.4.0",
|
||||
"mochify": "^7.1.1",
|
||||
"lint-staged": "^12.3.2",
|
||||
"mocha": "^9.2.0",
|
||||
"mochify": "^9.1.0",
|
||||
"nyc": "^15.1.0",
|
||||
"prettier": "^2.3.0",
|
||||
"prettier": "^2.5.1",
|
||||
"proxyquire": "^2.1.3",
|
||||
"proxyquire-universal": "^3.0.1",
|
||||
"proxyquireify": "^3.2.1",
|
||||
"puppeteer": "^9.1.1",
|
||||
"puppeteer": "^13.1.2",
|
||||
"rimraf": "^3.0.2",
|
||||
"shelljs": "^0.8.4"
|
||||
},
|
||||
|
|
@ -115,6 +116,14 @@
|
|||
"browser": "./lib/sinon.js",
|
||||
"main": "./lib/sinon.js",
|
||||
"module": "./pkg/sinon-esm.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./lib/sinon.js",
|
||||
"import": "./pkg/sinon-esm.js"
|
||||
},
|
||||
"./*": "./*"
|
||||
},
|
||||
"type": "module",
|
||||
"cdn": "./pkg/sinon.js",
|
||||
"jsdelivr": "./pkg/sinon.js",
|
||||
"esm": {
|
||||
|
|
|
|||
2423
node_modules/sinon/pkg/sinon-esm.js
generated
vendored
2423
node_modules/sinon/pkg/sinon-esm.js
generated
vendored
File diff suppressed because it is too large
Load diff
2423
node_modules/sinon/pkg/sinon-no-sourcemaps.js → node_modules/sinon/pkg/sinon-no-sourcemaps.cjs
generated
vendored
2423
node_modules/sinon/pkg/sinon-no-sourcemaps.js → node_modules/sinon/pkg/sinon-no-sourcemaps.cjs
generated
vendored
File diff suppressed because it is too large
Load diff
2425
node_modules/sinon/pkg/sinon.js
generated
vendored
2425
node_modules/sinon/pkg/sinon.js
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue