lunex-http
Version:
A lightweight and flexible REST API client for JavaScript and TypeScript, supporting CommonJS and ES modules (ESM). Features include HTTP methods (GET, POST, PUT, PATCH, DELETE), built-in retry policies with exponential backoff, request lifecycle hooks fo
37 lines (36 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "LunexClient", {
enumerable: true,
get: function get() {
return _LunexClient["default"];
}
});
Object.defineProperty(exports, "LunexClientOptions", {
enumerable: true,
get: function get() {
return _LunexClientOptions["default"];
}
});
exports["default"] = void 0;
Object.defineProperty(exports, "shouldRetry", {
enumerable: true,
get: function get() {
return _retryPolicy.shouldRetry;
}
});
var _LunexClient = _interopRequireDefault(require("./rest/LunexClient.cjs"));
var _retryPolicy = require("./policies/retry-policy.cjs");
var _LunexClientOptions = _interopRequireDefault(require("./rest/LunexClientOptions.cjs"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
* Main entry point for the Lunex HTTP library.
*
* Exports core classes for API interaction, payload handling, and utility functions.
*
* @module lunex-http
* @author Bishal Shrestha <https://github.com/shrestha-bishal>
*/
var _default = exports["default"] = _LunexClient["default"];