8000 Tags · guerrerocarlos/nock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: guerrerocarlos/nock

Tags

v9.3.2

Toggle v9.3.2's commit message
fix: restore compatibility with Node <4.5 (nock#1144)

This reverts commit e933b3a.

v9.3.1

Toggle v9.3.1's commit message
fix: use `aborted` property on http request (nock#1134)

I had some difficulty with this code:

    httpRequest.on('timeout', function () {
      trackFailure('timeout')
      httpRequest.abort()
    })

    httpRequest.on('error', function (err) {
      // Count error if request wasn't aborted due to timeout
      if (!httpRequest.aborted) {
        trackFailure(err)
      }
      callback(err)
    }

When `nock` was not in use, `trackFailure()` would be called once on
timeout.  With `nock` enabled, `trackFailure()` would be called twice
because `httpRequest.aborted` would be undefined.

This change creates and uses the `aborted` property in the same
fashion as the system `http` module.

v9.3.0

Toggle v9.3.0's commit message
feat: support URL objects

`url.URL` was added in Node 7 and functions like `http.get()`,
`http.request()` accept URL objects as well as strings as their first
argument. Add support for that to nock.

v9.2.6

Toggle v9.2.6's commit message
fix: match HTTP headers with case insensitivity (nock#1122)

v9.2.5

Toggle v9.2.5's commit message
fix: remove arrow functions to restore Node<4 compatibility (nock#1114)

v9.2.4

Toggle v9.2.4's commit message
fix: url encoded body matches non-string values (nock#1110)

v9.2.3

Toggle v9.2.3's commit message
fix: PhantomJS 2 usage (nock#1075)

v9.2.2

Toggle v9.2.2's commit message
fix: Allow allowUnmocked = true and regexp paths to work (nock#1034)

v9.2.1

Toggle v9.2.1's commit message
build(package): -restify, +restify-clients

v9.2.0

Toggle v9.2.0's commit message
feat: support replay of recorded binary responses

0