formats.js 533 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_formatter = exports.default_format = void 0;
  4. exports.default_format = 'RFC3986';
  5. const default_formatter = (v) => String(v);
  6. exports.default_formatter = default_formatter;
  7. exports.formatters = {
  8. RFC1738: (v) => String(v).replace(/%20/g, '+'),
  9. RFC3986: exports.default_formatter,
  10. };
  11. exports.RFC1738 = 'RFC1738';
  12. exports.RFC3986 = 'RFC3986';
  13. //# sourceMappingURL=formats.js.map