@tsed/exceptions 8.6.0-beta.1 → 8.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ /*! For license information please see exceptions.umd.min.js.LICENSE.txt */
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@tsed/core")):"function"==typeof define&&define.amd?define(["@tsed/core"],e):"object"==typeof exports?exports["@tsed/exceptions"]=e(require("@tsed/core")):t["@tsed/exceptions"]=e(t["@tsed/core"])}(self,(t=>(()=>{"use strict";var e={725:(t,e,s)=>{var r=s(880);function o(t){if(!Object.prototype.hasOwnProperty.call(n.message,t))throw new Error("invalid status code: "+t);return n.message[t]}function n(t){if("number"==typeof t)return o(t);if("string"!=typeof t)throw new TypeError("code must be a number or string");var e=parseInt(t,10);return isNaN(e)?function(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(n.code,e))throw new Error('invalid status message: "'+t+'"');return n.code[e]}(t):o(e)}t.exports=n,n.message=r,n.code=function(t){var e={};return Object.keys(t).forEach((function(s){var r=t[s],o=Number(s);e[r.toLowerCase()]=o})),e}(r),n.codes=function(t){return Object.keys(t).map((function(t){return Number(t)}))}(r),n.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},n.empty={204:!0,205:!0,304:!0},n.retry={502:!0,503:!0,504:!0}},414:e=>{e.exports=t},880:t=>{t.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}},s={};function r(t){var o=s[t];if(void 0!==o)return o.exports;var n=s[t]={exports:{}};return e[t](n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{BadGateway:()=>rt,BadMapping:()=>m,BadRequest:()=>g,BandwidthLimitExceeded:()=>ot,ClientException:()=>f,Conflict:()=>y,Exception:()=>U,ExpectationFailed:()=>R,Forbidden:()=>E,GatewayTimeout:()=>nt,Gone:()=>b,HTTPException:()=>x,ImATeapot:()=>v,InternalServerError:()=>it,LengthRequired:()=>P,MethodNotAllowed:()=>N,MisdirectedRequest:()=>w,MovedPermanently:()=>J,MovedTemporarily:()=>K,MultipleChoices:()=>Q,NetworkAuthenticationRequired:()=>ct,NotAcceptable:()=>q,NotExtended:()=>at,NotFound:()=>L,NotImplemented:()=>ut,NotModified:()=>W,PaymentRequired:()=>O,PermanentRedirect:()=>Z,PreconditionFailed:()=>M,PreconditionRequired:()=>C,ProxyAuthentificationRequired:()=>I,ProxyError:()=>Tt,RedirectException:()=>Y,RequestEntityTooLarge:()=>F,RequestHeaderFieldsTooLarge:()=>j,RequestRangeUnsatisfiable:()=>_,RequestTimeout:()=>$,RequestURITooLong:()=>H,SeeOther:()=>tt,ServerException:()=>z,ServiceUnavailable:()=>St,StatusFamily:()=>p,TemporaryRedirect:()=>et,TooManyRequests:()=>k,Unauthorized:()=>B,UnavailableForLegalReasons:()=>G,UnprocessableEntity:()=>D,UnsupportedMediaType:()=>V,UpgradeRequired:()=>X,UseProxy:()=>st,VariantAlsoNegotiates:()=>dt});var n=r(414);const i=/([\p{Ll}\d])(\p{Lu})/gu,c=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,a=/(\d)\p{Ll}|(\p{L})\d/u,u=/[^\p{L}\d]+/giu,T="$1\0$2";function S(t){let e=t.trim();e=e.replace(i,T).replace(c,T),e=e.replace(u,"\0");let s=0,r=e.length;for(;"\0"===e.charAt(s);)s++;if(s===r)return[];for(;"\0"===e.charAt(r-1);)r--;return e.slice(s,r).split(/\0/g)}function d(t){const e=S(t);for(let t=0;t<e.length;t++){const s=e[t],r=a.exec(s);if(r){const o=r.index+(r[1]??r[2]).length;e.splice(t,1,s.slice(0,o),s.slice(o))}}return e}function l(t,e){const[s,r,o]=function(t,e={}){const s=e.split??(e.separateNumbers?d:S),r=e.prefixCharacters??"",o=e.suffixCharacters??"";let n=0,i=t.length;for(;n<t.length;){const e=t.charAt(n);if(!r.includes(e))break;n++}for(;i>n;){const e=i-1,s=t.charAt(e);if(!o.includes(s))break;i=e}return[t.slice(0,n),s(t.slice(n,i)),t.slice(i)]}(t,e);return s+r.map((n=e?.locale,!1===n?t=>t.toUpperCase():t=>t.toLocaleUpperCase(n))).join(e?.delimiter??"_")+o;var n}var p,h=r(725),A=r.n(h);class U extends Error{static validate(t,e){if(t<100||t>=600)throw new Error("Status must be between 100 and 599");if(t.toString()[0]!==e.charAt(0))throw new Error(`Status ${t} does not belong to the family ${e}`);return t}constructor(t=500,e="",s){super(e),this.name="HTTP_EXCEPTION",this.type="HTTP_EXCEPTION",this.headers={},this.status=t,this.message=e,this.name=this.#t(),this.setOrigin(s),Error.captureStackTrace(this)}setHeaders(t){return this.headers={...this.headers,...t},this}setHeader(t,e){return this.headers[t]=e,this}setOrigin(t){t&&(t instanceof Error?(this.origin=t,this.message=`${this.message}, innerException: ${this.origin.message}`.trim()):"string"==typeof t?(this.origin=new Error(t),this.message=`${this.message}, innerException: ${this.origin.message}`.trim()):this.body=t)}toString(){return`${this.name}(${this.status}): ${this.message} `.trim()}#t(){try{return 200===this.status?"SUCCESS":l(String(A()(this.status)))}catch(t){return l((0,n.nameOf)((0,n.classOf)(this)))}}}class x extends U{}!function(t){t["3xx"]="3xx",t["4xx"]="4xx",t["5xx"]="5xx"}(p||(p={}));class f extends U{constructor(t,e,s){super(U.validate(t,p["4xx"]),e,s)}}class m extends f{static{this.STATUS=421}constructor(t,e){super(m.STATUS,t,e),this.name="BAD_MAPPING"}}class g extends f{static{this.STATUS=400}constructor(t,e){super(g.STATUS,t,e)}}class y extends f{static{this.STATUS=409}constructor(t,e){super(y.STATUS,t,e)}}class R extends f{static{this.STATUS=417}constructor(t,e){super(R.STATUS,t,e)}}class E extends f{static{this.STATUS=403}constructor(t,e){super(E.STATUS,t,e)}}class b extends f{static{this.STATUS=410}constructor(t,e){super(b.STATUS,t,e)}}class v extends f{static{this.STATUS=418}constructor(t,e){super(v.STATUS,t,e),this.name="IM_A_TEAPOT"}}class P extends f{static{this.STATUS=411}constructor(t,e){super(P.STATUS,t,e)}}class N extends f{static{this.STATUS=405}constructor(t,e){super(N.STATUS,t,e)}}class w extends f{static{this.STATUS=421}constructor(t,e){super(w.STATUS,t,e)}}class q extends f{static{this.STATUS=406}constructor(t,e="You must accept content-type "+t){super(q.STATUS,e)}}class L extends f{static{this.STATUS=404}constructor(t,e){super(L.STATUS,t,e)}}class O extends f{static{this.STATUS=402}constructor(t,e){super(O.STATUS,t,e)}}class M extends f{static{this.STATUS=412}constructor(t,e){super(M.STATUS,t,e)}}class C extends f{static{this.STATUS=428}constructor(t,e){super(C.STATUS,t,e)}}class I extends f{static{this.STATUS=407}constructor(t,e){super(I.STATUS,t,e)}}class F extends f{static{this.STATUS=413}constructor(t,e){super(F.STATUS,t,e)}}class j extends f{static{this.STATUS=431}constructor(t,e){super(j.STATUS,t,e)}}class _ extends f{static{this.STATUS=416}constructor(t,e){super(_.STATUS,t,e)}}class $ extends f{static{this.STATUS=408}constructor(t,e){super($.STATUS,t,e)}}class H extends f{static{this.STATUS=414}constructor(t,e){super(H.STATUS,t,e)}}class k extends f{static{this.STATUS=429}constructor(t,e){super(k.STATUS,t,e)}}class B extends f{static{this.STATUS=401}constructor(t,e){super(B.STATUS,t,e)}}class G extends f{static{this.STATUS=451}constructor(t,e){super(G.STATUS,t,e)}}class D extends f{static{this.STATUS=422}constructor(t,e){super(D.STATUS,t,e)}}class V extends f{static{this.STATUS=415}constructor(t,e){super(V.STATUS,t,e)}}class X extends f{static{this.STATUS=426}constructor(t,e){super(X.STATUS,t,e)}}class Y extends U{constructor(t,e,s){super(U.validate(t,p["3xx"]),e,s)}}class z extends U{constructor(t,e,s){super(U.validate(t,p["5xx"]),e,s)}}class J extends Y{static{this.STATUS=301}constructor(t,e){super(J.STATUS,t,e)}}class K extends Y{static{this.STATUS=302}constructor(t,e){super(K.STATUS,t,e),this.name="MOVED_TEMPORARILY"}}class Q extends Y{static{this.STATUS=300}constructor(t,e){super(Q.STATUS,t,e)}}class W extends Y{static{this.STATUS=304}constructor(t,e){super(W.STATUS,t,e)}}class Z extends Y{static{this.STATUS=308}constructor(t,e){super(Z.STATUS,t,e)}}class tt extends Y{static{this.STATUS=303}constructor(t,e){super(tt.STATUS,t,e)}}class et extends Y{static{this.STATUS=307}constructor(t,e){super(et.STATUS,t,e)}}class st extends Y{static{this.STATUS=305}constructor(t,e){super(st.STATUS,t,e)}}class rt extends z{static{this.STATUS=502}constructor(t,e){super(rt.STATUS,t,e)}}class ot extends z{static{this.STATUS=509}constructor(t,e){super(ot.STATUS,t,e)}}class nt extends z{static{this.STATUS=504}constructor(t,e){super(nt.STATUS,t,e)}}class it extends z{static{this.STATUS=500}constructor(t,e){super(it.STATUS,t,e)}}class ct extends z{static{this.STATUS=511}constructor(t,e){super(ct.STATUS,t,e)}}class at extends z{static{this.STATUS=510}constructor(t,e){super(at.STATUS,t,e)}}class ut extends z{static{this.STATUS=501}constructor(t,e){super(ut.STATUS,t,e)}}class Tt extends z{static{this.STATUS=502}constructor(t,e){super(Tt.STATUS,t,e),this.name="PROXY_ERROR"}}class St extends z{static{this.STATUS=503}constructor(t,e){super(St.STATUS,t,e)}}class dt extends z{static{this.STATUS=506}constructor(t,e){super(dt.STATUS,t,e)}}return o})()));
3
+ //# sourceMappingURL=exceptions.umd.min.js.map
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * statuses
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2016 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exceptions.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,eACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,cAAeJ,GACG,iBAAZC,QACdA,QAAQ,oBAAsBD,EAAQG,QAAQ,eAE9CJ,EAAK,oBAAsBC,EAAQD,EAAK,cACzC,CATD,CASGO,MAAOC,2CCKV,IAAIC,EAAQ,EAAQ,KA6FpB,SAASC,EAAkBC,GACzB,IAAKC,OAAOC,UAAUC,eAAeC,KAAKC,EAAOC,QAASN,GACxD,MAAM,IAAIO,MAAM,wBAA0BP,GAG5C,OAAOK,EAAOC,QAAQN,EACxB,C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AmB7C,OAAQ1G,EAASwF,EAC5C,ECLK,MAAMgE,WAA8BlB,SACzB,KAAA5B,OAAS,GAAI,CAE7B,WAAAnB,CAAYvF,EAAiBwF,GAC3BC,MAAM+D,GAAsB9C,OAAQ1G,EAASwF,EAC/C","sources":["webpack://@tsed/exceptions/webpack/universalModuleDefinition","webpack://@tsed/exceptions/../../../node_modules/statuses/index.js","webpack://@tsed/exceptions/external umd \"@tsed/core\"","webpack://@tsed/exceptions/webpack/bootstrap","webpack://@tsed/exceptions/webpack/runtime/compat get default export","webpack://@tsed/exceptions/webpack/runtime/define property getters","webpack://@tsed/exceptions/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/exceptions/webpack/runtime/make namespace object","webpack://@tsed/exceptions/../../../node_modules/change-case/dist/index.js","webpack://@tsed/exceptions/./src/core/StatusFamily.ts","webpack://@tsed/exceptions/./src/core/Exception.ts","webpack://@tsed/exceptions/./src/core/ClientException.ts","webpack://@tsed/exceptions/./src/clientErrors/BadMapping.ts","webpack://@tsed/exceptions/./src/clientErrors/BadRequest.ts","webpack://@tsed/exceptions/./src/clientErrors/Conflict.ts","webpack://@tsed/exceptions/./src/clientErrors/ExpectationFailed.ts","webpack://@tsed/exceptions/./src/clientErrors/Forbidden.ts","webpack://@tsed/exceptions/./src/clientErrors/Gone.ts","webpack://@tsed/exceptions/./src/clientErrors/ImATeapot.ts","webpack://@tsed/exceptions/./src/clientErrors/LengthRequired.ts","webpack://@tsed/exceptions/./src/clientErrors/MethodNotAllowed.ts","webpack://@tsed/exceptions/./src/clientErrors/MisdirectedRequest.ts","webpack://@tsed/exceptions/./src/clientErrors/NotAcceptable.ts","webpack://@tsed/exceptions/./src/clientErrors/NotFound.ts","webpack://@tsed/exceptions/./src/clientErrors/PaymentRequired.ts","webpack://@tsed/exceptions/./src/clientErrors/PreconditionFailed.ts","webpack://@tsed/exceptions/./src/clientErrors/PreconditionRequired.ts","webpack://@tsed/exceptions/./src/clientErrors/ProxyAuthentificationRequired.ts","webpack://@tsed/exceptions/./src/clientErrors/RequestEntityTooLarge.ts","webpack://@tsed/exceptions/./src/clientErrors/RequestHeaderFieldsTooLarge.ts","webpack://@tsed/exceptions/./src/clientErrors/RequestRangeUnsatisfiable.ts","webpack://@tsed/exceptions/./src/clientErrors/RequestTimeout.ts","webpack://@tsed/exceptions/./src/clientErrors/RequestURITooLong.ts","webpack://@tsed/exceptions/./src/clientErrors/TooManyRequests.ts","webpack://@tsed/exceptions/./src/clientErrors/Unauthorized.ts","webpack://@tsed/exceptions/./src/clientErrors/UnavailableForLegalReasons.ts","webpack://@tsed/exceptions/./src/clientErrors/UnprocessableEntity.ts","webpack://@tsed/exceptions/./src/clientErrors/UnsupportedMediaType.ts","webpack://@tsed/exceptions/./src/clientErrors/UpgradeRequired.ts","webpack://@tsed/exceptions/./src/core/RedirectException.ts","webpack://@tsed/exceptions/./src/core/ServerException.ts","webpack://@tsed/exceptions/./src/redirections/MovedPermanently.ts","webpack://@tsed/exceptions/./src/redirections/MovedTemporarily.ts","webpack://@tsed/exceptions/./src/redirections/MultipleChoices.ts","webpack://@tsed/exceptions/./src/redirections/NotModified.ts","webpack://@tsed/exceptions/./src/redirections/PermanentRedirect.ts","webpack://@tsed/exceptions/./src/redirections/SeeOther.ts","webpack://@tsed/exceptions/./src/redirections/TemporaryRedirect.ts","webpack://@tsed/exceptions/./src/redirections/UseProxy.ts","webpack://@tsed/exceptions/./src/serverErrors/BadGateway.ts","webpack://@tsed/exceptions/./src/serverErrors/BandwidthLimitExceeded.ts","webpack://@tsed/exceptions/./src/serverErrors/GatewayTimeout.ts","webpack://@tsed/exceptions/./src/serverErrors/InternalServerError.ts","webpack://@tsed/exceptions/./src/serverErrors/NetworkAuthenticationRequired.ts","webpack://@tsed/exceptions/./src/serverErrors/NotExtended.ts","webpack://@tsed/exceptions/./src/serverErrors/NotImplemented.ts","webpack://@tsed/exceptions/./src/serverErrors/ProxyError.ts","webpack://@tsed/exceptions/./src/serverErrors/ServiceUnavailable.ts","webpack://@tsed/exceptions/./src/serverErrors/VariantAlsoNegotiates.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@tsed/core\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@tsed/core\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/exceptions\"] = factory(require(\"@tsed/core\"));\n\telse\n\t\troot[\"@tsed/exceptions\"] = factory(root[\"@tsed/core\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__414__) => {\nreturn ","/*!\n * statuses\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2016 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar codes = require('./codes.json')\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = status\n\n// status code to message map\nstatus.message = codes\n\n// status message (lower-case) to code map\nstatus.code = createMessageToStatusCodeMap(codes)\n\n// array of status codes\nstatus.codes = createStatusCodeList(codes)\n\n// status codes for redirects\nstatus.redirect = {\n 300: true,\n 301: true,\n 302: true,\n 303: true,\n 305: true,\n 307: true,\n 308: true\n}\n\n// status codes for empty bodies\nstatus.empty = {\n 204: true,\n 205: true,\n 304: true\n}\n\n// status codes for when you should retry the request\nstatus.retry = {\n 502: true,\n 503: true,\n 504: true\n}\n\n/**\n * Create a map of message to status code.\n * @private\n */\n\nfunction createMessageToStatusCodeMap (codes) {\n var map = {}\n\n Object.keys(codes).forEach(function forEachCode (code) {\n var message = codes[code]\n var status = Number(code)\n\n // populate map\n map[message.toLowerCase()] = status\n })\n\n return map\n}\n\n/**\n * Create a list of all status codes.\n * @private\n */\n\nfunction createStatusCodeList (codes) {\n return Object.keys(codes).map(function mapCode (code) {\n return Number(code)\n })\n}\n\n/**\n * Get the status code for given message.\n * @private\n */\n\nfunction getStatusCode (message) {\n var msg = message.toLowerCase()\n\n if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {\n throw new Error('invalid status message: \"' + message + '\"')\n }\n\n return status.code[msg]\n}\n\n/**\n * Get the status message for given code.\n * @private\n */\n\nfunction getStatusMessage (code) {\n if (!Object.prototype.hasOwnProperty.call(status.message, code)) {\n throw new Error('invalid status code: ' + code)\n }\n\n return status.message[code]\n}\n\n/**\n * Get the status code.\n *\n * Given a number, this will throw if it is not a known status\n * code, otherwise the code will be returned. Given a string,\n * the string will be parsed for a number and return the code\n * if valid, otherwise will lookup the code assuming this is\n * the status message.\n *\n * @param {string|number} code\n * @returns {number}\n * @public\n */\n\nfunction status (code) {\n if (typeof code === 'number') {\n return getStatusMessage(code)\n }\n\n if (typeof code !== 'string') {\n throw new TypeError('code must be a number or string')\n }\n\n // '403'\n var n = parseInt(code, 10)\n if (!isNaN(n)) {\n return getStatusMessage(n)\n }\n\n return getStatusCode(code)\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__414__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map","export enum StatusFamily {\n \"3xx\" = \"3xx\",\n \"4xx\" = \"4xx\",\n \"5xx\" = \"5xx\"\n}\n","import {classOf, nameOf} from \"@tsed/core\";\nimport {constantCase} from \"change-case\";\nimport statuses from \"statuses\";\n\nimport {StatusFamily} from \"./StatusFamily.js\";\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n public static validate(status: number, family: StatusFamily): number {\n if (status < 100 || status >= 600) {\n throw new Error(\"Status must be between 100 and 599\");\n }\n\n if (status.toString()[0] !== family.charAt(0)) {\n throw new Error(`Status ${status} does not belong to the family ${family}`);\n }\n\n return status;\n }\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = this.#getStatusConstant();\n\n this.setOrigin(origin);\n\n Error.captureStackTrace(this);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n\n #getStatusConstant() {\n try {\n return this.status === 200 ? \"SUCCESS\" : constantCase(String(statuses(this.status)));\n } catch (er) {\n return constantCase(nameOf(classOf(this)));\n }\n }\n}\n\nexport class HTTPException extends Exception {}\n","import {Exception} from \"./Exception.js\";\nimport {StatusFamily} from \"./StatusFamily.js\";\n\nexport class ClientException extends Exception {\n constructor(status: number, message: string, origin?: Error | string | any) {\n super(Exception.validate(status, StatusFamily[\"4xx\"]), message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class BadMapping extends ClientException {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class BadRequest extends ClientException {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class Conflict extends ClientException {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class ExpectationFailed extends ClientException {\n static readonly STATUS = 417;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ExpectationFailed.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class Forbidden extends ClientException {\n static readonly STATUS = 403;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Forbidden.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class Gone extends ClientException {\n static readonly STATUS = 410;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Gone.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class ImATeapot extends ClientException {\n static readonly STATUS = 418;\n name: string = \"IM_A_TEAPOT\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ImATeapot.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class LengthRequired extends ClientException {\n static readonly STATUS = 411;\n\n constructor(message: string, origin?: Error | string | any) {\n super(LengthRequired.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class MethodNotAllowed extends ClientException {\n static readonly STATUS = 405;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MethodNotAllowed.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class MisdirectedRequest extends ClientException {\n static readonly STATUS = 421;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MisdirectedRequest.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class NotAcceptable extends ClientException {\n static readonly STATUS = 406;\n\n constructor(message: string, origin: Error | string | any = \"You must accept content-type \" + message) {\n super(NotAcceptable.STATUS, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class NotFound extends ClientException {\n static readonly STATUS = 404;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotFound.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class PaymentRequired extends ClientException {\n static readonly STATUS = 402;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PaymentRequired.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class PreconditionFailed extends ClientException {\n static readonly STATUS = 412;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionFailed.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class PreconditionRequired extends ClientException {\n static readonly STATUS = 428;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionRequired.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class ProxyAuthentificationRequired extends ClientException {\n static readonly STATUS = 407;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyAuthentificationRequired.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class RequestEntityTooLarge extends ClientException {\n static readonly STATUS = 413;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestEntityTooLarge.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class RequestHeaderFieldsTooLarge extends ClientException {\n static readonly STATUS = 431;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestHeaderFieldsTooLarge.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class RequestRangeUnsatisfiable extends ClientException {\n static readonly STATUS = 416;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestRangeUnsatisfiable.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class RequestTimeout extends ClientException {\n static readonly STATUS = 408;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestTimeout.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class RequestURITooLong extends ClientException {\n static readonly STATUS = 414;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestURITooLong.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class TooManyRequests extends ClientException {\n static readonly STATUS = 429;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRequests.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class Unauthorized extends ClientException {\n static readonly STATUS = 401;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Unauthorized.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class UnavailableForLegalReasons extends ClientException {\n static readonly STATUS = 451;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnavailableForLegalReasons.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class UnprocessableEntity extends ClientException {\n static readonly STATUS = 422;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnprocessableEntity.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class UnsupportedMediaType extends ClientException {\n static readonly STATUS = 415;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnsupportedMediaType.STATUS, message, origin);\n }\n}\n","import {ClientException} from \"../core/ClientException.js\";\n\nexport class UpgradeRequired extends ClientException {\n static readonly STATUS = 426;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UpgradeRequired.STATUS, message, origin);\n }\n}\n","import {Exception} from \"./Exception.js\";\nimport {StatusFamily} from \"./StatusFamily.js\";\n\nexport class RedirectException extends Exception {\n constructor(status: number, message: string, origin?: Error | string | any) {\n super(Exception.validate(status, StatusFamily[\"3xx\"]), message, origin);\n }\n}\n","import {Exception} from \"./Exception.js\";\nimport {StatusFamily} from \"./StatusFamily.js\";\n\nexport class ServerException extends Exception {\n constructor(status: number, message: string, origin?: Error | string | any) {\n super(Exception.validate(status, StatusFamily[\"5xx\"]), message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class MovedPermanently extends RedirectException {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class MovedTemporarily extends RedirectException {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class MultipleChoices extends RedirectException {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class NotModified extends RedirectException {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class PermanentRedirect extends RedirectException {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class SeeOther extends RedirectException {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class TemporaryRedirect extends RedirectException {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n","import {RedirectException} from \"../core/RedirectException.js\";\n\nexport class UseProxy extends RedirectException {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class BadGateway extends ServerException {\n static readonly STATUS = 502;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadGateway.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class BandwidthLimitExceeded extends ServerException {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class GatewayTimeout extends ServerException {\n static readonly STATUS = 504;\n\n constructor(message: string, origin?: Error | string | any) {\n super(GatewayTimeout.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class InternalServerError extends ServerException {\n static readonly STATUS = 500;\n\n constructor(message: string, origin?: Error | string | any) {\n super(InternalServerError.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class NetworkAuthenticationRequired extends ServerException {\n static readonly STATUS = 511;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NetworkAuthenticationRequired.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class NotExtended extends ServerException {\n static readonly STATUS = 510;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotExtended.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class NotImplemented extends ServerException {\n static readonly STATUS = 501;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotImplemented.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class ProxyError extends ServerException {\n static readonly STATUS = 502;\n name: string = \"PROXY_ERROR\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyError.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class ServiceUnavailable extends ServerException {\n static readonly STATUS = 503;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ServiceUnavailable.STATUS, message, origin);\n }\n}\n","import {ServerException} from \"../core/ServerException.js\";\n\nexport class VariantAlsoNegotiates extends ServerException {\n static readonly STATUS = 506;\n\n constructor(message: string, origin?: Error | string | any) {\n super(VariantAlsoNegotiates.STATUS, message, origin);\n }\n}\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__414__","codes","getStatusMessage","code","Object","prototype","hasOwnProperty","call","status","message","Error","TypeError","n","parseInt","isNaN","msg","toLowerCase","getStatusCode","map","keys","forEach","Number","createMessageToStatusCodeMap","createStatusCodeList","redirect","empty","retry","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","__esModule","d","a","definition","key","o","defineProperty","enumerable","get","obj","prop","r","Symbol","toStringTag","value","SPLIT_LOWER_UPPER_RE","SPLIT_UPPER_UPPER_RE","SPLIT_SEPARATE_NUMBER_RE","DEFAULT_STRIP_REGEXP","SPLIT_REPLACE_VALUE","split","result","trim","replace","start","end","length","charAt","slice","splitSeparateNumbers","words","i","word","match","exec","offset","index","splice","constantCase","input","options","prefix","suffix","splitFn","separateNumbers","prefixCharacters","suffixCharacters","prefixIndex","suffixIndex","char","includes","splitPrefixSuffix","locale","toUpperCase","toLocaleUpperCase","join","delimiter","StatusFamily","Exception","validate","family","toString","constructor","origin","super","name","type","headers","this","setOrigin","captureStackTrace","setHeaders","setHeader","body","String","er","nameOf","classOf","HTTPException","ClientException","BadMapping","STATUS","BadRequest","Conflict","ExpectationFailed","Forbidden","Gone","ImATeapot","LengthRequired","MethodNotAllowed","MisdirectedRequest","NotAcceptable","NotFound","PaymentRequired","PreconditionFailed","PreconditionRequired","ProxyAuthentificationRequired","RequestEntityTooLarge","RequestHeaderFieldsTooLarge","RequestRangeUnsatisfiable","RequestTimeout","RequestURITooLong","TooManyRequests","Unauthorized","UnavailableForLegalReasons","UnprocessableEntity","UnsupportedMediaType","UpgradeRequired","RedirectException","ServerException","MovedPermanently","MovedTemporarily","MultipleChoices","NotModified","PermanentRedirect","SeeOther","TemporaryRedirect","UseProxy","BadGateway","BandwidthLimitExceeded","GatewayTimeout","InternalServerError","NetworkAuthenticationRequired","NotExtended","NotImplemented","ProxyError","ServiceUnavailable","VariantAlsoNegotiates"],"sourceRoot":""}
package/package.json CHANGED
@@ -2,21 +2,25 @@
2
2
  "name": "@tsed/exceptions",
3
3
  "description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
4
4
  "type": "module",
5
- "version": "8.6.0-beta.1",
5
+ "version": "8.6.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
9
9
  "typings": "./lib/types/index.d.ts",
10
+ "browser": "./lib/browser/exceptions.umd.min.js",
10
11
  "exports": {
11
12
  ".": {
12
13
  "tsed-source": "./src/index.ts",
13
14
  "types": "./lib/types/index.d.ts",
15
+ "browser": "./lib/browser/exceptions.umd.min.js",
14
16
  "import": "./lib/esm/index.js",
15
17
  "default": "./lib/esm/index.js"
16
18
  }
17
19
  },
18
20
  "scripts": {
19
- "build": "yarn barrels && yarn build:ts",
21
+ "clean": "rm -rf lib",
22
+ "build": "yarn clean && yarn barrels && yarn build:ts && yarn run build:browser",
23
+ "build:browser": "webpack",
20
24
  "barrels": "barrels",
21
25
  "test": "vitest run",
22
26
  "build:ts": "tsc --build tsconfig.json",
@@ -28,15 +32,16 @@
28
32
  "tslib": "2.7.0"
29
33
  },
30
34
  "devDependencies": {
31
- "@tsed/barrels": "8.6.0-beta.1",
32
- "@tsed/typescript": "8.6.0-beta.1",
35
+ "@tsed/barrels": "8.6.1",
36
+ "@tsed/typescript": "8.6.1",
33
37
  "@types/statuses": "2.0.5",
34
38
  "eslint": "9.12.0",
35
39
  "typescript": "5.4.5",
36
- "vitest": "2.1.2"
40
+ "vitest": "2.1.2",
41
+ "webpack": "^5.75.0"
37
42
  },
38
43
  "peerDependencies": {
39
- "@tsed/core": ">=8.6.0-beta.1"
44
+ "@tsed/core": ">=8.6.1"
40
45
  },
41
46
  "repository": "https://github.com/tsedio/tsed",
42
47
  "bugs": {
@@ -44,8 +49,5 @@
44
49
  },
45
50
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/exceptions",
46
51
  "author": "Romain Lenzotti",
47
- "license": "MIT",
48
- "publishConfig": {
49
- "tag": "beta"
50
- }
52
+ "license": "MIT"
51
53
  }