xhr2-cookies-unsafe
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

XMLHttpRequest polyfill for node.js

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

  • 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

/xhr2-cookies-unsafe/

    Package Sidebar

    Install

    npm i xhr2-cookies-unsafe

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    55.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • jeffory01