nise
nise copied to clipboard
Fake XHR and fake server
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3. Changelog Sourced from shell-quote's changelog. 1.7.3 Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the...
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.3 to 3.1.4. Release notes Sourced from semver-regex's releases. v3.1.4 Backport of ReDoS fix https://github.com/sindresorhus/semver-regex/commit/7712ba564d40da101cf2b2b33e6a910d9f2f57f4 Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [ to the main sinonjs/sinon repository which I suspect are the docs for the main website https://sinonjs.org. I noticed you use an automated framework...
We have code that works in live mode using xhr, but fails using mock. https://github.com/sinonjs/nise/blob/805200b70084b1c19569ad0c04158da7bf5eed0c/lib/fake-xhr/index.js#L590 according to [the spec](https://fetch.spec.whatwg.org/#forbidden-header-name), setting/deleting a forbidden header should be a no-op > Otherwise, if...
Related to #49. Minimal repro: https://github.com/pswai/nise-defake-issue Considering this case: ```javascript sinon.FakeXMLHttpRequest.useFilters = true; sinon.FakeXMLHttpRequest.addFilter(() => true); const server = sinon.fakeServer.create(); const xhr = new XMLHttpRequest(); xhr.open("GET", "http://www.mocky.io/v2/5e8aa67e2d00003c1a1a473e", true); // Setting...
This package should be published as `@sinonjs/nise`, and the existing package deprecated.