@busy-hour/blaze
Version:
<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>
63 lines (62 loc) • 1.79 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var rest_exports = {};
__export(rest_exports, {
FORM_CONTENT_TYPE: () => FORM_CONTENT_TYPE,
RESPONSE_TYPE: () => RESPONSE_TYPE,
REST_CONTENT_TYPE: () => REST_CONTENT_TYPE,
REST_METHOD: () => REST_METHOD
});
module.exports = __toCommonJS(rest_exports);
const RESPONSE_TYPE = {
BODY: "body",
TEXT: "text",
JSON: "json",
HTML: "html"
};
const REST_METHOD = {
ALL: "ALL",
GET: "GET",
POST: "POST",
PUT: "PUT",
DELETE: "DELETE",
PATCH: "PATCH",
OPTIONS: "OPTIONS",
HEAD: "HEAD",
USE: "USE"
};
const REST_CONTENT_TYPE = {
JSON: "application/json",
TEXT: "text/plain",
HTML: "text/html",
BODY: "application/octet-stream",
FORM: "application/x-www-form-urlencoded",
MULTIPART: "multipart/form-data"
};
const FORM_CONTENT_TYPE = [
REST_CONTENT_TYPE.FORM,
REST_CONTENT_TYPE.MULTIPART
];
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
FORM_CONTENT_TYPE,
RESPONSE_TYPE,
REST_CONTENT_TYPE,
REST_METHOD
});