Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

nock

HTTP mocking and expectations library for Node.js
Collective - Host: opensource - https://opencollective.com/nock - Code: https://github.com/node-nock/nock

style: Autofixes

github.com/nock/nock - 23899b85fa14647fe771d77a44583ab6ca4d510a authored about 5 years ago by Paul Melnikow <[email protected]>
feat(socket): propagate errors from destroy method (#1675)

Calling `destroy` on the the response, with an error, not correctly propagates through the socke...

github.com/nock/nock - 41be8849b71ebcc34afa951e1138de0d5af150ae authored about 5 years ago by Filippo Conti <[email protected]>
test(test_intercept): Convert more to async / got (#1352)

github.com/nock/nock - 9d9a663beada15e7b3eada34f68999b8f8cbb48d authored about 5 years ago by Paul Melnikow <[email protected]>
ci(package): update semantic-release to latest beta

closes https://github.com/nock/nock/issues/1345

github.com/nock/nock - e68a6082121a79e02dac9e3bf16973b79150b429 authored about 5 years ago by Gregor <[email protected]>
test(delayed_body): Cover delayed body with stream; refactor one test (#1348)

github.com/nock/nock - 7d36832ec0c2b27299d8e785702a3c52f09e49c6 authored about 5 years ago by Paul Melnikow <[email protected]>
fix(socket): When Socket#setTimeout gets a callback, should still emit

Ref #1404

github.com/nock/nock - 3e5fe2944d146c5ecd0d09c5d8cfecb1b4656a70 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update nyc to version 14.0.0

github.com/nock/nock - 8753d67cc38311b02f4482c2c017b52be0c75e2b authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
refactor(test_stream): Rewrite a stream test using got (#1457)

github.com/nock/nock - b2584ae70f20e375d136c969ccc8d4a084486335 authored about 5 years ago by Paul Melnikow <[email protected]>
test: Improve tests of badheaders (#1602)

github.com/nock/nock - 466bd94b740ac0770c4bcd10080d7d8e06bbf475 authored about 5 years ago by Paul Melnikow <[email protected]>
style: Minor style improvements (#1693)

github.com/nock/nock - 11a9517c64ca82aa645e2fcdf4a50d27020f77bc authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 670fd8807c6b9368464092527aad4c7b1675fcd3 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): Bump prettier (#1500)

github.com/nock/nock - 660a6607211589a3ba67c4d824958e7faf770b94 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test(interceptor): Cover no 'fs' (#1439)

Ref #1404

github.com/nock/nock - 92c64c344ebbd8c6c4b914526dd05ff59d4bea8e authored about 5 years ago by Paul Melnikow <[email protected]>
chore(tests): Disable got automatic retries which cause confusing behavior

Fix #1523

github.com/nock/nock - b93fdfa569831f3777cba0f60e8435fef02bd866 authored about 5 years ago by Paul Melnikow <[email protected]>
add chadfawcett as a contributor (#1462)

github.com/nock/nock - 0c30dac282ea8d13ca1985826d1414d73ff174bf authored about 5 years ago by allcontributors[bot] <allcontributors[bot]@users.noreply.github.com>
style: prettier (#1311)

github.com/nock/nock - d8913b33b8e6afc10e1ac159de4cb1ec27dcd4cc authored about 5 years ago by Paul Melnikow <[email protected]>
bug: handle content-type request headers when arrays

Fixes #1642

github.com/nock/nock - 9f79fff71bafa45a0e5caecc0d78ef985885b51f authored about 5 years ago by Matt R. Wilson <[email protected]>
fix: response.complete must be true after res.end (#1601)

Fixes https://github.com/nock/nock/issues/1493

https://nodejs.org/dist/latest-v10.x/docs/api/...

github.com/nock/nock - 28db93e3f53d359f7718c68151291f78d39e8792 authored about 5 years ago by Aleksei Androsov <[email protected]>
Add TODO comment to remove request to example.com (#1463)

github.com/nock/nock - b77b328be08e5cc0271beb5e80df036cf7242776 authored about 5 years ago by Gregor Martynus <[email protected]>
chore: Clean up some issue links

github.com/nock/nock - ae517043bd7245221953379a4a83e7ebad60bb0f authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(test_recorder): Convert a couple to async; use arrow functions

github.com/nock/nock - e5b172f59587a5ec23e1047ea6e0a336e12d7f30 authored about 5 years ago by Paul Melnikow <[email protected]>
Comprehensive cleanup after each test (#1465)

This adds a global `afterEach` hook that resets nock global state to the condition it's in when ...

github.com/nock/nock - cce24392efe2095bd6a3990b7c16a9a3d191e1f0 authored about 5 years ago by Paul Melnikow <[email protected]>
Move one more test

github.com/nock/nock - 67a0f554d936f02be4362050b0689ea7c6205954 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(request_overrider): Remove dead code

- `response.headers` was added in Node v0.1.5 and `response.rawHeaders` in v0.11.6. They are tru...

github.com/nock/nock - 06ff5c7c63ec0825a8b78dd4b9035714276b238a authored about 5 years ago by Paul Melnikow <[email protected]>
fix: add extension to main field in package.json (#1683)

This doesn't add much value from Node's POV, since it can resolve it all
the same, however, som...

github.com/nock/nock - a334e920459df2865c5883405b7b067045f4a630 authored about 5 years ago by Matt R. Wilson <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 743f7853a367a253988dd3fef9e540b93b751110 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
docs(README): Add encodedQueryParams option to docs. (#1537)

Identified as missing here https://github.com/nock/nock/issues/1514#issuecomment-488742980.

T...

github.com/nock/nock - ac89570a8e0757821f1abd38b6b6c10831e34226 authored about 5 years ago by Matt R. Wilson <[email protected]>
refactor: remove cruft

Unable to find a way to trigger the conditionals. See #1404 for reasoning why I took on this test.

github.com/nock/nock - 98dfe07bbc5effb13e9fc52d34501b063d180572 authored about 5 years ago by Richard Littauer <[email protected]>
refactor(match_body): Remove dead code (#1433)

It appears this function is only called from `end` in request_overrider, with `body` set to `req...

github.com/nock/nock - 8f05dfe9c9fe1a5140ff25c3a0fcdb7654c890ab authored about 5 years ago by Paul Melnikow <[email protected]>
chore: Move some body-matching tests into test_body_match

github.com/nock/nock - 9242ebbeb44c81d4a392750ca8dc56a85bc5bef7 authored about 5 years ago by Paul Melnikow <[email protected]>
test(scope): Cover define with port in scope, and refactor tests

github.com/nock/nock - 46ddf11bb51e6e9fdf1a225a49ba539d75aa1856 authored about 5 years ago by Paul Melnikow <[email protected]>
test(test_common): Pick up some coverage (#1317)

github.com/nock/nock - 47c5f0881163dbe9b9b13b8189decc879094c807 authored about 5 years ago by Paul Melnikow <[email protected]>
Update eslint-config-prettier to the latest version 🚀 (#1586)

* chore(package): update eslint-config-prettier to version 5.0.0

* chore(package): update loc...

github.com/nock/nock - 1b793143503e3d0aa7e4ab0c1017d033bb12daa5 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
refactor(test_nock_back): Unify test cleanup using hooks, misc (#1468)

github.com/nock/nock - c0058d573405ca6f9d537561169d49fe86b4f538 authored about 5 years ago by Paul Melnikow <[email protected]>
test: add test for JSON-encoded strings stored by recorder (#1546)

Ref #1231 and #1229

github.com/nock/nock - a217bacbf10c564d59b0ca39935320130e179274 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update eslint-config-prettier to version 4.1.0

github.com/nock/nock - 4951a56360f000ee530634fb1205c1b72fb1c3d5 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
docs: all-contributors setup (#1454)

github.com/nock/nock - eaf4e45bbd0cd60e40dba1c1fd7fb909713845ee authored about 5 years ago by allcontributors[bot] <allcontributors[bot]@users.noreply.github.com>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 83d0640365789fdfbd268fad09c764aa4e3d4d5d authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
docs: RFC 001: Analysis of lifecycle methods (#1474)

github.com/nock/nock - 2cd89bba8f1a25def34623b13a7ee0e116e2a02c authored about 5 years ago by Paul Melnikow <[email protected]>
test(interceptor): special Host header matching logic (#1622)

For #1404

Add tests for the success, reject, and ignore cases.

github.com/nock/nock - 25a25115affa53931fe7a3c15190dcdd22a0d103 authored about 5 years ago by Matt R. Wilson <[email protected]>
Throw when method is missing

github.com/nock/nock - 4a3cfacfb9f960acdb34326cc960feb00677f6aa authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(test_redirects): Rewrite using got, async

github.com/nock/nock - 7058cfdff75821c8f6af885f47ccfe4e70393703 authored about 5 years ago by Paul Melnikow <[email protected]>
test: Improve tests for header matching with function; adopt new promise-rejection assertion (#1481)

1. Assert the expected argument is passed. (It's the correct argument, though not the expected t...

github.com/nock/nock - 6069784b8e70c51bfbbb2f20aa54100d2d7d8d66 authored about 5 years ago by Paul Melnikow <[email protected]>
docs: Add some FAQ questions (#1449)

docs: Add some FAQ questions

Co-authored-by: Gregor Martynus <[email protected]>

github.com/nock/nock - c2836fb4aa7a12612c412506dbd3fc0e620abbdc authored about 5 years ago by Richard Littauer <[email protected]>
chore(package): update superagent to version 5.0.2

Closes #1487

github.com/nock/nock - 088441b7fefc66cff95949eca54a40b9c1d58cd3 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
Update tap to the latest version 🚀 (#1559)

* chore(package): update tap to version 14.0.0

* chore(package): update lockfile package-lock...

github.com/nock/nock - 5aa6d7c144ea5b6e7b9f4113ded34cc36a9854ac authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test: gently rework tests of RequestOverrider and move into their own file (#1550)

github.com/nock/nock - f4e408ca0b380a7d150195ed57ca4600bc80fe87 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(overrider): cleanup socket event logic

Changes the logic around socket events in the Request Overrider, which
had comments that correct...

github.com/nock/nock - 2647af72d40cd5ace3f33a8a5442f8ad891622dd authored about 5 years ago by Matt R. Wilson <[email protected]>
feat(overrider): added support for header modifications before end()

* fix: added support for testing header modification with http-proxy
* Remove pointless options...

github.com/nock/nock - 85268dd4be95cca0a2087392decd7edd96e7f302 authored about 5 years ago by Alex Gilleran <[email protected]>
fix(intercept): Better error message when options is falsy (#1440)

github.com/nock/nock - a8e99dc585b0ed2bfa281e6b1784bfc79a7ee800 authored about 5 years ago by Paul Melnikow <[email protected]>
fix: `req.end(cb)` compatibility with Node 12 (#1551)

github.com/nock/nock - 5394c7cf667a177dee80a13df3b38abd07df9498 authored about 5 years ago by Paul Melnikow <[email protected]>
fix: Fix `req.end(cb)`; prevent TypeError in Node 12 (#1547)

According to the docs, `req.end` can accept callback as a first argument. That's what `got` modu...

github.com/nock/nock - 529c93d16dc71fc8d94b9c1e9c3b4dc4da9ce808 authored about 5 years ago by Andrii Kostenko <[email protected]>
chore(readme): fix a typo (#1545)

github.com/nock/nock - 3734cf700c084cefc37204e1092fb864b07e11c1 authored about 5 years ago by HiiTea <[email protected]>
Update prettier to the latest version 🚀 (#1504)

* chore(package): update prettier to version 1.17.0

* chore(package): update lockfile package...

github.com/nock/nock - b14c4f6f48ee0130941d1430957da5c58e38ea13 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
fix: Restore behavior of Interceptor.filteringPath (#1543)

Calling `filteringPath` on the intercept instance was broken as the transform fn set on the scop...

github.com/nock/nock - 322e162fd8c707085782c9921dc98542eaa27812 authored about 5 years ago by Matt R. Wilson <[email protected]>
test: Test reply header arrays, args to header functions, and minor updates (#1541)

Related discussion at #1542.

github.com/nock/nock - 547d7658ddd884381bc4e23c2ecce4d6709ee104 authored about 5 years ago by Paul Melnikow <[email protected]>
Improve tests of .reply() with a synchronous function (#1521)

- Add several tests for several missing edge cases.
- Rewrite the test for #1222 so it reflects...

github.com/nock/nock - 98d002245c3af317bafc8c2c33bf8e0dbe4b94cc authored about 5 years ago by Paul Melnikow <[email protected]>
Updates from npm audit (#1444)

Clear a ReDOS vulnerability.

github.com/nock/nock - 2ecce5f5c1f82cc79674818f5df90c4147a36f5f authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 69255efa12c57f3b3eda087f3d15cc7bf92fc3c7 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update eslint-plugin-node to version 9.0.0

github.com/nock/nock - bb9ca1a7782bc2d17bc820b937b19e152e5f297d authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test: Clarify that cleanAll removes persistent mocks (#1647)

Closes #1042

github.com/nock/nock - 529bb96ddc027458909807f2ad770128ad7795fc authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Remove unnecessary conditional, add test for undefined data

See #1404.

github.com/nock/nock - a8c4ae25d7bccb2c20281a9a3f9dd2720b05f6f0 authored about 5 years ago by Richard Littauer <[email protected]>
Remove redundant test (#1456)

This test is redundant with this one in `test_delay.js`:

```js
test('calling delay could cau...

github.com/nock/nock - 7137afef2a701dcf42c4e31c4ce483d75360e65b authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - ec172ab052c85f19f8bac0270e0e2f3b96f1ca72 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
refactor(restoreOverriddenRequests): Eliminate uncovered line

github.com/nock/nock - ec40702228dea31ae181e205ea2bef83fadb3d37 authored about 5 years ago by Paul Melnikow <[email protected]>
chore: Update dev dependencies

github.com/nock/nock - 65bde314c1e5bf43f843c8100e55837995b095ae authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(scope): Replace unreachable conditional with an assertion (#1531)

Several hours have been spent on this puzzling bit of uncovered code. I can’t remember what the ...

github.com/nock/nock - 48033116417d110993526395377dd9b521bed54f authored about 5 years ago by Paul Melnikow <[email protected]>
test: Add test of DELETE request

Ref #1534

github.com/nock/nock - 6eea82c1acc7b3e46bc32e562fadae10f560ceab authored about 5 years ago by Paul Melnikow <[email protected]>
chore: Correct sorting of one test

github.com/nock/nock - 20ae00efcd147be3818a70f73d35b27b8c8f376e authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update nyc to version 13.2.0

github.com/nock/nock - e32cfb3de61335f253e193ddbb49e0eac8c2f7a4 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
refactor(tests): Rewrite some tests of delay and define using async/got (#1522)

github.com/nock/nock - b9e692491b50f66680daf3f362d82e6659bcb998 authored about 5 years ago by Paul Melnikow <[email protected]>
test(intercept): Reference the issue

github.com/nock/nock - f95280ac535a3051508471b05572c81555a0ef04 authored about 5 years ago by Paul Melnikow <[email protected]>
feat(interceptor): duplicate query keys throw

Resolves #1623

BREAKING CHANGE: Providing a duplicate search parameter to the `query`
method th...

github.com/nock/nock - c3210e57e838295e8d5fdeb61a1f3097a7bf35cd authored about 5 years ago by Matt R. Wilson <[email protected]>
ci: Run prettier with lint; drop obsolete prettier-check dependency (#1503)

github.com/nock/nock - e3793cbd07ce20e84f93e3b7d2708ac151acfc97 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Refactor RequestOverrider (#1674)

This makes RequestOverrider into a class and breaks its logic up into several shorter methods. T...

github.com/nock/nock - 58bf529cc36b0f41f0782668007db3b58a16458b authored about 5 years ago by Paul Melnikow <[email protected]>
chore(request_overrider): Update coverage TODOs

I worked on this file quite a bit since this comment was written. At this point the remaining wo...

github.com/nock/nock - 92a677adad5807fac0debac175aeacb636ba26a0 authored about 5 years ago by Paul Melnikow <[email protected]>
fix(define): Throw error when legacy reply is in wrong format

Shockingly, `_.isNumber(NaN)` is `true` which means this conditional check didn’t even work as i...

github.com/nock/nock - b378b790bcefbaf44695b2abf9b65170d7f73f84 authored about 5 years ago by Paul Melnikow <[email protected]>
Sort more intercept tests into smaller modules (#1458)

github.com/nock/nock - e8ad964511019aea99537124eb0bf9ca6f78bdcf authored about 5 years ago by Paul Melnikow <[email protected]>
test(test_request_promise): Remove a library-specific test

This use cases seems to be covered by tests in `test_ipv6.js`.

Goes along with our decision in ...

github.com/nock/nock - f8f88ff06b0322c8ccca61dbe214f35817a2e033 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: organize the tests of .reply(), .replyWithFile(), and .replyWithError() to make them more digestible (#1518)

github.com/nock/nock - c1919bcae78697b9c6ef16cd6fbf6a831869d4c5 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - a02ae3bef0cd57ab5170ac3e662ff4bb6033c1da authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update lockfile package-lock.json

github.com/nock/nock - f8223611118a6feddb8ae68f9d15ac9a300b491e authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update tap to version 13.0.3

Closes #1511

github.com/nock/nock - 3cf5d7f31074b7d4cb3a15ef682ea821889049ab authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
fix(package): update propagate to version 2.0.0

github.com/nock/nock - 75df23e15e1d4fa54924543ddf08768d0cf42a5b authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update lolex to version 4.0.1

github.com/nock/nock - 637e158160ab9d83185300b3547f09623b3443f0 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
refactor(scope): Remove unreachable code in Scope constructor (#1434)

The `Scope` constructor is not exported, so this code is unreachable.

github.com/nock/nock - a267164d05aabb25b4a3c9050c51b6f262c1b58a authored about 5 years ago by Paul Melnikow <[email protected]>
fix: Mock responses should fire when timers are mocked (#1336)

Fix picked from #1335.

Revert #1270. Fix #1334.

github.com/nock/nock - 15b381cc75bc253c54b3ab39ed6e2033c652a895 authored about 5 years ago by Chengxuan <[email protected]>
docs(README): minor typo fixes and grammatical changes (#1507)

github.com/nock/nock - e78fd3ff4acca367ccd5ac005ef897b15a2c98cd authored about 5 years ago by Justin Vallelonga <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 06469e318505433adc89e1fc97e899cf5b884d59 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test(test_intercept): Rewrite more using async / got

github.com/nock/nock - 8300f99a93aa6cd0ba8bf8cb7132fb2dd92f67f5 authored about 5 years ago by Paul Melnikow <[email protected]>
feat: Add `conditionally()` (#1488)

I am building a test framework which depends on nock and to support concurrency, I need to be ab...

github.com/nock/nock - 85ec7ed7ac835092c2cec79daf6f9caa05d3e486 authored about 5 years ago by Paris Holley <[email protected]>
fix: Fix `.matchHeader()` with `allowUnmocked` (#1480)

- Move header checks into `match()`.
- Rename internal method `matchIndependentOfBody()` to `ma...

github.com/nock/nock - f1581593d481ab793abe6a52c35394a36785e2d4 authored about 5 years ago by Daniel Mora <[email protected]>
docs(README): badges (#1309)

github.com/nock/nock - 15cf88e30f178750fa39dbc8c05cf89bd81e7162 authored about 5 years ago by Paul Melnikow <[email protected]>
test(Scope): Add unit test coverage for Scope.remove()

It's not clear whether `remove()` is intended to be part of the public API. There did not seem t...

github.com/nock/nock - 3994f4bac6eaa701310b8cd1af386a53d44a3b23 authored about 5 years ago by Paul Melnikow <[email protected]>
Add coverage ignores to recorder, and emit text report (#1608)

Ref https://github.com/nock/nock/issues/1404#issuecomment-509347456

This leaves intact two mi...

github.com/nock/nock - ba15ec07d16d0a6c83486be6da464bd12a2d26a1 authored about 5 years ago by Paul Melnikow <[email protected]>
feat(reply): Response headers to more closely match Node's functionality. (#1564)

* Response headers to more closely match Node.

Updates the header handling in the `Intercepto...

github.com/nock/nock - 80280a50a007143e66362bccd9ac97c802c2d272 authored about 5 years ago by Matt R. Wilson <[email protected]>
test(test_intercept): Rewrite more intercept tests using async, got (#1350)

github.com/nock/nock - ccc21ba97abe8ece904883596411484f3cf9431a authored about 5 years ago by Paul Melnikow <[email protected]>
docs: fix typos in CONTRIBUTING.md

github.com/nock/nock - 7871f6ec6a42921b651bc579457bb5625d1fc32c authored about 5 years ago by lihail <lihailemail>
Add todo comments

github.com/nock/nock - fd5aa906efa9aa423eb99fcee009fe067f24f7ec authored about 5 years ago by Paul Melnikow <[email protected]>
docs(README): Remove usage of arrow functions when using this

github.com/nock/nock - 7c7b855051fdea00ca502abe05d0c82d9458af13 authored about 5 years ago by Łukasz Strączyński <[email protected]>