packages/network-tools/README.md
A low-level package that contains networking-related classes and utilities to be used in the browser and Node.js environment.
You can see a list of the modules exported from this package in ./lib/index.ts. Here is a brief description of what's available:
cors contains utilities for Cross-Origin Resource Sharingdocument-domain-injection contains utilities related to document.domain injection of the Cypress driveruri contains utilities for URL parsing and formattingSee the individual class files in ./lib for more information.
We currently build a CommonJS and an ESM version of this package. However, since this package is only consumed via CommonJS, we currently only build the CommonJS variant of the package.
yarn workspace @packages/network-tools build-prod
Tests are located in ./test
To run tests:
yarn workspace @packages/network-tools test
yarn workspace @packages/network-tools test-watch
yarn workspace @packages/network-tools test-debug