tornado-cli/local_modules/web3-providers-http/local_modules/xhr2-cookies
Ayanami d55ca374e4
Use merkle tree from npm & remove ./lib
Reference: 0c6e638852

- fixed yarn installation bug as well
2022-02-27 07:32:24 +09:00
..
dist Use merkle tree from npm & remove ./lib 2022-02-27 07:32:24 +09:00
test Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
.gitignore Use merkle tree from npm & remove ./lib 2022-02-27 07:32:24 +09:00
.npmignore Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
README.md Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
errors.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
index.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
package.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
progress-event.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
tsconfig.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
tslint.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
wallaby.js Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request-event-target.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request-upload.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
yarn.lock Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00

README.md

XMLHttpRequest polyfill for node.js

Based on https://github.com/pwnall/node-xhr2/tree/bd6d48431ad93c8073811e5d4b77394dd637a85a

  • Adds support for cookies
  • Adds in-project TypeScript type definitions
  • Switched to TypeScript

Cookies

  • saved in XMLHttpRequest.cookieJar
  • saved between redirects
  • saved between requests
  • can be cleared by doing:
import * as Cookie from 'cookiejar';
XMLHttpRequest.cookieJar = Cookie.CookieJar();

Aims

  • Provide full XMLHttpRequest features to Angular Universal HttpClient & node-angular-http-client

Changelog

1.1.0

  • added saving of cookies between requests, not just redirects
  • bug fixes
  • most tests from xhr2 ported over and passing