{"_id":"@cloudcmd/stub","_rev":"4179083","name":"@cloudcmd/stub","description":"simplest sinon.stub alternative with diff support","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T21:43:27.000Z","created":"2018-11-23T09:24:02.377Z","5.0.0":"2026-01-11T21:45:29.844Z","4.0.1":"2022-04-06T19:45:37.845Z","4.0.0":"2022-04-06T19:18:28.029Z","3.7.1":"2021-09-23T18:53:52.565Z","3.7.0":"2021-09-23T18:48:02.605Z","3.6.0":"2021-08-19T15:57:22.259Z","3.5.0":"2021-02-19T20:02:48.591Z","3.4.0":"2021-02-08T09:48:23.599Z","3.3.0":"2020-12-22T12:56:09.237Z","3.2.0":"2020-12-22T12:48:04.582Z","3.1.0":"2020-05-13T19:22:25.337Z","3.0.0":"2020-05-09T19:20:16.143Z","2.3.4":"2020-02-07T15:54:33.605Z","2.3.3":"2019-11-21T09:33:05.631Z","2.3.2":"2019-08-26T18:44:14.749Z","2.3.1":"2018-11-28T12:36:21.166Z","2.3.0":"2018-11-28T12:09:35.009Z","2.2.0":"2018-11-28T09:41:43.645Z","2.1.2":"2018-11-26T19:01:46.735Z","2.1.1":"2018-11-26T18:42:19.599Z","2.1.0":"2018-11-23T19:11:46.200Z","2.0.0":"2018-11-23T09:54:25.667Z","1.0.0":"2018-11-23T09:24:02.377Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/cloudcmd/stub.git"},"versions":{"5.0.0":{"name":"@cloudcmd/stub","version":"5.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git+https://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"jest-diff":"^30.2.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^10.1.3","check-dts":"^0.9.0","coveralls":"^3.0.0","eslint":"^9.39.2","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^29.4.0","madrun":"^12.1.0","nodemon":"^3.1.11","putout":"^41.7.0","redrun":"^13.0.0","supertape":"^12.0.11","try-catch":"^4.0.7","try-to-catch":"^4.0.3"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@cloudcmd/stub@5.0.0","gitHead":"de5567a40d2f1ce54ac68d45bfbbf1e5ad081db4","types":"./lib/stub.d.ts","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"880d70d11878aa4c03d781ad2a70dabf981332d3","size":4356,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-5.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stub_5.0.0_1768167929677_0.2758317037821201"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-11T21:45:29.844Z","publish_time":1768167929844,"_source_registry_name":"default","_cnpm_publish_time":1768167929844},"4.0.1":{"name":"@cloudcmd/stub","version":"4.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"chalk":"^4.0.0","strip-ansi":"^6.0.0","jest-diff":"^27.0.6"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","check-dts":"^0.6.6","coveralls":"^3.0.0","eslint":"^8.12.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.8.0","madrun":"^9.0.2","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^25.14.0","redrun":"^10.0.0","supertape":"^7.2.1","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"types":"./lib/stub.d.ts","gitHead":"691d682f6cb918d5536eb0d50d43bebc3299b875","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@4.0.1","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"73d646e25d4d25b262e8c4147658b3362ff9b950","size":4055,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-4.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_4.0.1_1649274337680_0.5943343242552814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-06T23:25:02.161Z","publish_time":1649274337845,"_cnpm_publish_time":1649274337845},"4.0.0":{"name":"@cloudcmd/stub","version":"4.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"chalk":"^4.0.0","strip-ansi":"^6.0.0","jest-diff":"^27.0.6"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","check-dts":"^0.6.6","coveralls":"^3.0.0","eslint":"^8.12.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.8.0","madrun":"^9.0.2","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^25.14.0","supertape":"^7.2.1","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"types":"./lib/stub.d.ts","gitHead":"db6c572ae88e9cdb31d083b368b0705ede3325ce","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@4.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"95686c1d6a2acf2dfd072370ba6a0648167779cd","size":4042,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-4.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_4.0.0_1649272707863_0.3769090952385272"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-06T23:25:01.332Z","publish_time":1649272708029,"_cnpm_publish_time":1649272708029},"3.7.1":{"name":"@cloudcmd/stub","version":"3.7.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"chalk":"^4.0.0","strip-ansi":"^6.0.0","jest-diff":"^27.0.6"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","check-dts":"^0.5.5","coveralls":"^3.0.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.3.0","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^20.4.0","supertape":"^6.0.2","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"11a7fd1a371fd0a2e49210530ad10f9f6cd2c63b","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.7.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"shasum":"2358c0a420b8e8560f35746ef34faf8f4e98b587","size":4022,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.7.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.7.1_1632423232458_0.08250702507660956"},"_hasShrinkwrap":false,"publish_time":1632423232565,"_cnpm_publish_time":1632423232565,"_cnpmcore_publish_time":"2021-12-17T00:58:22.866Z"},"3.7.0":{"name":"@cloudcmd/stub","version":"3.7.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"chalk":"^4.0.0","strip-ansi":"^6.0.0","jest-diff":"^27.0.6"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","check-dts":"^0.5.5","coveralls":"^3.0.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.3.0","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^20.4.0","supertape":"^6.0.2","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"a3c004db4024fc09bf31b87ba965ba8b9ad5696e","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.7.0","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"shasum":"69b138e94997a4308273e5e096e087ac96810a9e","size":4000,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.7.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.7.0_1632422882452_0.653760633365025"},"_hasShrinkwrap":false,"publish_time":1632422882605,"_cnpm_publish_time":1632422882605,"_cnpmcore_publish_time":"2021-12-17T00:58:23.103Z"},"3.6.0":{"name":"@cloudcmd/stub","version":"3.6.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"dependencies":{"chalk":"^4.0.0","strip-ansi":"^6.0.0","jest-diff":"^27.0.6"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","check-dts":"^0.5.5","coveralls":"^3.0.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^9.2.1","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^18.16.0","supertape":"^6.0.2","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"86c11fe339c13e62a99d74f91b26f889a9e177be","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.6.0","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"shasum":"c33fe4f86daa1d89537101032b57dd17087c1660","size":3725,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.6.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.6.0_1629388642082_0.9791466031129483"},"_hasShrinkwrap":false,"publish_time":1629388642259,"_cnpm_publish_time":1629388642259,"_cnpmcore_publish_time":"2021-12-17T00:58:23.308Z"},"3.5.0":{"name":"@cloudcmd/stub","version":"3.5.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.1.1","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^15.1.2","supertape":"^4.0.0","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"7779d059af73687a8213c371f65f3a50dd941c5b","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.5.0","_nodeVersion":"15.9.0","_npmVersion":"6.14.7","dist":{"shasum":"3ba397d328c3d12b1a04596d5e2e1cc52b4fc1e8","size":3432,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.5.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.5.0_1613764968447_0.9032836108488698"},"_hasShrinkwrap":false,"publish_time":1613764968591,"_cnpm_publish_time":1613764968591,"_cnpmcore_publish_time":"2021-12-17T00:58:23.549Z"},"3.4.0":{"name":"@cloudcmd/stub","version":"3.4.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"c8":"^7.5.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.1.1","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","putout":"^14.1.3","supertape":"^4.0.0","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"2d17c10c57a560f33745b15490209bc4d9e2a5d0","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.4.0","_nodeVersion":"15.8.0","_npmVersion":"6.14.7","dist":{"shasum":"804eb588146659396a44da2591bbd4ff50472f41","size":3369,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.4.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.4.0_1612777703468_0.6281181751103437"},"_hasShrinkwrap":false,"publish_time":1612777703599,"_cnpm_publish_time":1612777703599,"_cnpmcore_publish_time":"2021-12-17T00:58:23.803Z"},"3.3.0":{"name":"@cloudcmd/stub","version":"3.3.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"nyc":{"check-coverage":true,"all":true,"exclude":["**/*.spec.js","**/*.madrun.*","test"],"branches":100,"lines":100,"functions":100,"statements":100},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.7.0","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^15.0.0","putout":"^12.7.0","supertape":"^3.9.1","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"d2d59da3491c43c5b93091eea9c2616e3fc6c63e","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.3.0","_nodeVersion":"15.4.0","_npmVersion":"6.14.7","dist":{"shasum":"25e134323647c27ef2af802a6bed115780ef15aa","size":3344,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.3.0_1608641769102_0.07991582862589786"},"_hasShrinkwrap":false,"publish_time":1608641769237,"_cnpm_publish_time":1608641769237,"_cnpmcore_publish_time":"2021-12-17T00:58:24.014Z"},"3.2.0":{"name":"@cloudcmd/stub","version":"3.2.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"nyc":{"check-coverage":true,"all":true,"exclude":["**/*.spec.js","**/*.madrun.*","test"],"branches":100,"lines":100,"functions":100,"statements":100},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.7.0","madrun":"^8.0.5","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^15.0.0","putout":"^12.7.0","supertape":"^3.9.1","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"db5e02d8f1c6b248ad48504d8460e64547585105","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.2.0","_nodeVersion":"15.4.0","_npmVersion":"6.14.7","dist":{"shasum":"5dd7b4d310485308ebe1b8be926b148dddce49e5","size":3230,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.2.0_1608641284436_0.6430987812529345"},"_hasShrinkwrap":false,"publish_time":1608641284582,"_cnpm_publish_time":1608641284582,"_cnpmcore_publish_time":"2021-12-17T00:58:24.390Z"},"3.1.0":{"name":"@cloudcmd/stub","version":"3.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^4.0.2","madrun":"^6.0.1","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^15.0.0","putout":"^8.2.0","supertape":"^2.0.0","try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"12dd3aa7083c995f1837e67d92d85cc22e0d55fc","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.1.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"10699fb0ea64805668109f8d2ec2c31702a2adce","size":3095,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.1.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.1.0_1589397745237_0.3595599267524612"},"_hasShrinkwrap":false,"publish_time":1589397745337,"_cnpm_publish_time":1589397745337,"_cnpmcore_publish_time":"2021-12-17T00:58:25.400Z"},"3.0.0":{"name":"@cloudcmd/stub","version":"3.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^4.0.0","jest-diff":"^26.0.1","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^6.2.2","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0","madrun":"^5.0.0","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^15.0.0","putout":"^7.1.0","supertape":"^1.2.3","try-catch":"^2.0.0","try-to-catch":"^2.0.0"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"0f0efd0014b2e141a25a724386749a2fcc22d555","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@3.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"e7e4434ea64fbe3212e42bf7485cb2a8c058acf9","size":2970,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-3.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_3.0.0_1589052016025_0.06619045292359393"},"_hasShrinkwrap":false,"publish_time":1589052016143,"_cnpm_publish_time":1589052016143,"_cnpmcore_publish_time":"2021-12-17T00:58:25.683Z"},"2.3.4":{"name":"@cloudcmd/stub","version":"2.3.4","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^3.0.0","jest-diff":"^25.1.0","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^6.2.2","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0","madrun":"^5.0.0","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^15.0.0","putout":"^7.1.0","supertape":"^1.2.3","try-catch":"^2.0.0","try-to-catch":"^2.0.0"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"c562c60b535b0c4e43c1513839b1fba5a79456f6","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.3.4","_nodeVersion":"13.8.0","_npmVersion":"6.12.1","dist":{"shasum":"536eac16217aad8e3e716194c9ed7418aef28a98","size":2928,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.3.4.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.3.4_1581090873473_0.9973627713251092"},"_hasShrinkwrap":false,"publish_time":1581090873605,"_cnpm_publish_time":1581090873605,"_cnpmcore_publish_time":"2021-12-17T00:58:25.872Z"},"2.3.3":{"name":"@cloudcmd/stub","version":"2.3.3","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^3.0.0","jest-diff":"^24.9.0","strip-ansi":"^6.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^6.2.2","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^3.0.0","madrun":"^5.0.0","mock-require":"^3.0.2","nodemon":"^2.0.0","nyc":"^14.1.1","putout":"^7.1.0","redrun":"^7.0.2","supertape":"^1.2.3","try-catch":"^2.0.0","try-to-catch":"^2.0.0"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"cf30b4c03afe787175b91052f3314a0225aea3db","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.3.3","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"shasum":"da70ac9bee55bdf9526ede5fa999e5474aa7770d","size":2892,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.3.3.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.3.3_1574328785477_0.3548750336326998"},"_hasShrinkwrap":false,"publish_time":1574328785631,"_cnpm_publish_time":1574328785631,"_cnpmcore_publish_time":"2021-12-17T00:58:26.111Z"},"2.3.2":{"name":"@cloudcmd/stub","version":"2.3.2","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^24.9.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^6.2.2","eslint-plugin-node":"^9.1.0","eslint-plugin-putout":"^2.0.0","madrun":"^2.5.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^14.1.1","putout":"^5.8.0","redrun":"^7.0.2","supertape":"^1.2.3","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"d2876e712d4eafac50beb6ddcd3fffb5c624dd71","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.3.2","_nodeVersion":"12.9.0","_npmVersion":"6.10.0","dist":{"shasum":"16b1c51ef21fcdd219fe270c551531ac403b48d5","size":2851,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.3.2.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.3.2_1566845054528_0.09555446181761074"},"_hasShrinkwrap":false,"publish_time":1566845054749,"_cnpm_publish_time":1566845054749,"_cnpmcore_publish_time":"2021-12-17T00:58:26.340Z"},"2.3.1":{"name":"@cloudcmd/stub","version":"2.3.1","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"1919417a88284721ecc27376043f46c9e1c55a8a","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.3.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"f733a7320b57f0e1dc7227b69a101bd9c702f2c0","size":2816,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.3.1.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.3.1_1543408581083_0.5350077851246058"},"_hasShrinkwrap":false,"publish_time":1543408581166,"_cnpm_publish_time":1543408581166,"_cnpmcore_publish_time":"2021-12-17T00:58:26.544Z"},"2.3.0":{"name":"@cloudcmd/stub","version":"2.3.0","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"fc1145b186bd4c18c6c1f0579213fada610a5117","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.3.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"f61f27db467e83d429cd55a4bcbc4c1fcea877a8","size":2811,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.3.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.3.0_1543406974873_0.7061505939603234"},"_hasShrinkwrap":false,"publish_time":1543406975009,"_cnpm_publish_time":1543406975009,"_cnpmcore_publish_time":"2021-12-17T00:58:26.731Z"},"2.2.0":{"name":"@cloudcmd/stub","version":"2.2.0","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"b67c20576832df16f770d36e03056077e932c550","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"fece6242f36c80a147b6a586ae13d15227975885","size":2792,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.2.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.2.0_1543398103540_0.9350469872292102"},"_hasShrinkwrap":false,"publish_time":1543398103645,"_cnpm_publish_time":1543398103645,"_cnpmcore_publish_time":"2021-12-17T00:58:26.934Z"},"2.1.2":{"name":"@cloudcmd/stub","version":"2.1.2","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"154e47fa0fbd3f9e9538daa18ac76358dfda63b9","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.1.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"97355103ead8b609896b7e5b7b2802c8a4926b88","size":2743,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.1.2.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.1.2_1543258906631_0.6506504515620308"},"_hasShrinkwrap":false,"publish_time":1543258906735,"_cnpm_publish_time":1543258906735,"_cnpmcore_publish_time":"2021-12-17T00:58:27.141Z"},"2.1.1":{"name":"@cloudcmd/stub","version":"2.1.1","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"33bf55cf2eaf32de23e3b0583e6fb0aa123f503c","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"0002de06c408ae36fbb3cb3dd27f5513de24fdee","size":2738,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.1.1.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.1.1_1543257739485_0.10490682029215526"},"_hasShrinkwrap":false,"publish_time":1543257739599,"_cnpm_publish_time":1543257739599,"_cnpmcore_publish_time":"2021-12-17T00:58:27.342Z"},"2.1.0":{"name":"@cloudcmd/stub","version":"2.1.0","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"gitHead":"ce6a1bff6f62c4bd857fda55f9b2c386ba10be58","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"e644cd2cbc858f21c35e8395e1603f4b721d8e35","size":2711,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.1.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.1.0_1543000306080_0.9143879028203012"},"_hasShrinkwrap":false,"publish_time":1543000306200,"_cnpm_publish_time":1543000306200,"_cnpmcore_publish_time":"2021-12-17T00:58:27.572Z"},"2.0.0":{"name":"@cloudcmd/stub","version":"2.0.0","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"gitHead":"5bdb479c4e65d79bd86e72aa77a988f24bcb48b6","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"59cf2e02238c0c9ebe1f06012064813cb6552ab9","size":2664,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-2.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_2.0.0_1542966865551_0.5246999196333209"},"_hasShrinkwrap":false,"publish_time":1542966865667,"_cnpm_publish_time":1542966865667,"_cnpmcore_publish_time":"2021-12-17T00:58:27.791Z"},"1.0.0":{"name":"@cloudcmd/stub","version":"1.0.0","access":"public","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"simplest sinon.stub alternative with diff support","homepage":"http://github.com/coderaiser/cloudcmd/stub","main":"lib/stub.js","repository":{"type":"git","url":"git://github.com/cloudcmd/stub.git"},"scripts":{"test":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"chalk":"^2.4.1","jest-diff":"^23.6.0","strip-ansi":"^5.0.0"},"keywords":["sinon","stub","async","promise","calledWith","diff","tape"],"devDependencies":{"coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","mock-require":"^3.0.2","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","sinon":"^7.1.1","sinon-called-with-diff":"^3.0.0","tape":"^4.8.0","try-catch":"^2.0.0","try-to-catch":"^1.1.1"},"license":"MIT","engines":{"node":">=8.3.0"},"gitHead":"5875600af769deac88b3f8fba2684b1958f52fb8","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"_id":"@cloudcmd/stub@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"cfadea8b43d6ad1a713beeb3c97fdcc2d1cb1be3","size":2532,"noattachment":false,"key":"/@cloudcmd/stub/-/@cloudcmd/stub-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@cloudcmd/stub/download/@cloudcmd/stub-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stub_1.0.0_1542965042197_0.6203991212339475"},"_hasShrinkwrap":false,"publish_time":1542965042377,"_cnpm_publish_time":1542965042377,"_cnpmcore_publish_time":"2021-12-17T00:58:27.990Z"}},"readme":"# Stub [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@cloudcmd/stub.svg?style=flat&longCache=true\n[BuildStatusURL]: https://github.com/coderaiser/putout/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/putout/workflows/Node%20CI/badge.svg\n[NPMURL]: https://npmjs.org/package/@cloudcmd/stub \"npm\"\n[CoverageURL]: https://coveralls.io/github/cloudcmd/stub?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/cloudcmd/stub/badge.svg?branch=master&service=github\n\nSimplest [sinon.stub()](https://sinonjs.org/) alternative. With support of showing diff on `calleddWith`.\n\n## Install\n\n```\nnpm i @cloudcmd/stub\n```\n\n## API\n\n### stub([impl])\n\n- `impl` - stub implementation\n\n```js\nimport {stub} from '@cloudcmd/stub';\nconst fn = stub();\n\n// fn contains stubbed function\nconst asyncFn = stub(async () => {\n    throw Error('hi');\n});// asyncFn contains stub async function\n```\n\n### stub().returns([value])\n\n```js\nconst fn = stub().returns('hello');\nfn();\n// returns\n'hello';\n```\n\n### stub().throws([error])\n\n```js\nconst fn = stub().throws(Error('hello'));\nfn();\n// throws\nError('hello');\n```\n\n### stub().rejects([error])\n\n```js\nconst fn = stub().rejects(Error('hello'));\nawait fn();\n// rejects\nError('hello');\n```\n\n### stub().resolves([values])\n\n```js\nconst fn = stub().resolves('hello');\nawait fn();\n// resolves\n'hello';\n```\n\n### stub().calledWith([args])\n\n```js\nconst fn = stub();\n\nfn('hello', 'world');\n\nfn.calledWith('hello', 'world');\n// returns true\n```\n\n### stub().calledWithNew()\n\n```js\nconst fn = stub();\n\nnew fn();\n\nfn.calledWithNew();\n// returns\ntrue;\n```\n\n### stub().calledBefore(fn)\n\n```js\nconst fn1 = stub();\nconst fn2 = stub();\n\nfn1();\nfn2();\n\nfn1.calledBefore(fn2);\n// returns\ntrue;\n```\n\n### stub().calledAfter(fn)\n\n```js\nconst fn1 = stub();\nconst fn2 = stub();\n\nfn1();\nfn2();\n\nfn2.calledAfter(fn1);\n// returns\ntrue;\n```\n\n### stub().called\n\n```js\nconst fn = stub();\n\nfn.called;\n// returns\nfalse;\n\nfn();\n\nfn.called;\n// returns\ntrue;\n```\n\n### stub().callCount\n\n```js\nconst fn = stub();\n\nfn.callCount;\n// returns\n0;\n\nfn();\n\nfn.callCount;\n// returns\n1;\n```\n\n### stub().args\n\n```js\nconst fn = stub();\n\nfn.args;\n// returns\n[];\n\nfn(1);\n\nfn.args;\n// returns\n[\n    [1],\n];\n```\n\n### stub().callId\n\nEach `stub` has it `callId`, which can be used to determine order of `stub` calls:\n\n```js\nconst fn1 = stub();\nconst fn2 = stub();\n\nfn1();\nfn2();\n\nfn1.callId;\n// returns\n1;\n\nfn2.callId;\n// returns\n2;\n```\n\n### isStub(fn)\n\nCheck if provided function is stub.\n\n```js\nconst {stub, isStub} = require('@cloudcmd/stub');\nconst fn = stub();\n\nisStub(fn);\n// returns\ntrue;\n\nisStub(() => {});\n// returns\nfalse;\n```\n\n## Related\n\n- [sinon-called-with-diff](https://github.com/coderaiser/sinon-called-with-diff) - sinon `calledWith` diff\n- [try-to-tape](https://github.com/coderaiser/try-to-tape) - `try catch` for async tape tests\n- [try-catch](https://github.com/coderaiser/try-catch \"TryCatch\") - functional try-catch wrapper.\n- [try-to-catch](https://github.com/coderaiser/try-to-catch \"TryToCatch\") - functional try-catch wrapper for promises.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"http://github.com/cloudcmd/stub","bugs":{"url":"https://github.com/cloudcmd/stub/issues"},"license":"MIT"}