You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(playback): consistently check for `destroyed` attribute (nock#2152)
Node, as of 14.1, started migrating the Client Request terminology from
`aborted` to `destroyed`. In order to supported our current Node version
support, 10.x+, we need to check both flags. Nock was already doing this
in the router, but not during playback.
fix(recorder): escape single quotes in path of default output (nock#2137)
Because the default output of the recorder uses single quotes, any such
quotes in the path would generate invalid Javascript.
fix(intercept): handle global flags during regexp matching (nock#2135)
When matching via a regexp instance, consistently test the entire target string.
Sets the `lastIndex` to zero for cases where the `global` flag is set and the
regexp instance has been tested previously.
fixes: nock#2134