@tsed/exceptions 8.10.0-rc.1 → 8.10.0-rc.3
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.
- package/package.json +4 -7
- package/lib/browser/exceptions.umd.cjs +0 -20
- package/vite.config.mts +0 -19
package/package.json
CHANGED
|
@@ -2,25 +2,22 @@
|
|
|
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.10.0-rc.
|
|
5
|
+
"version": "8.10.0-rc.3",
|
|
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.cjs",
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
12
|
"tsed-source": "./src/index.ts",
|
|
14
13
|
"types": "./lib/types/index.d.ts",
|
|
15
|
-
"browser": "./lib/browser/exceptions.umd.cjs",
|
|
16
14
|
"import": "./lib/esm/index.js",
|
|
17
15
|
"default": "./lib/esm/index.js"
|
|
18
16
|
}
|
|
19
17
|
},
|
|
20
18
|
"scripts": {
|
|
21
19
|
"clean": "rm -rf lib",
|
|
22
|
-
"build": "yarn clean && yarn barrels && yarn build:ts
|
|
23
|
-
"build:browser": "vite build",
|
|
20
|
+
"build": "yarn clean && yarn barrels && yarn build:ts",
|
|
24
21
|
"barrels": "barrels",
|
|
25
22
|
"test": "vitest run",
|
|
26
23
|
"build:ts": "tsc --build tsconfig.esm.json",
|
|
@@ -32,8 +29,8 @@
|
|
|
32
29
|
"tslib": "2.7.0"
|
|
33
30
|
},
|
|
34
31
|
"devDependencies": {
|
|
35
|
-
"@tsed/barrels": "8.10.0-rc.
|
|
36
|
-
"@tsed/typescript": "8.10.0-rc.
|
|
32
|
+
"@tsed/barrels": "8.10.0-rc.3",
|
|
33
|
+
"@tsed/typescript": "8.10.0-rc.3",
|
|
37
34
|
"@types/statuses": "2.0.5",
|
|
38
35
|
"eslint": "9.12.0",
|
|
39
36
|
"typescript": "5.4.5",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
(function(p,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(p=typeof globalThis<"u"?globalThis:p||self,L(p["@tsed/exceptions"]={}))})(this,function(p){"use strict";var Bn=p=>{throw TypeError(p)};var To=(p,L,Z)=>L.has(p)||Bn("Cannot "+Z);var $n=(p,L,Z)=>L.has(p)?Bn("Cannot add the same private member more than once"):L instanceof WeakSet?L.add(p):L.set(p,Z);var Kn=(p,L,Z)=>(To(p,L,"access private method"),Z);var yt,Hn;var L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var it={exports:{}},Vn=it.exports,jr;function Wn(){return jr||(jr=1,function(g,i){(function(r,O){O(i)})(Vn,function(r){var O=t=>{throw TypeError(t)},N=(t,e,n)=>e.has(t)||O("Cannot "+n),P=(t,e,n)=>(N(t,e,"read from private field"),n?n.call(t):e.get(t)),E=(t,e,n)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),M=(t,e,n,a)=>(N(t,e,"write to private field"),e.set(t,n),n),$,Q,z,et,F=(t=>(t.PARAM="parameter",t.PARAM_CTOR="parameter.constructor",t.PARAM_STC="parameter.static",t.PROP="property",t.PROP_STC="property.static",t.METHOD="method",t.METHOD_STC="method.static",t.CLASS="class",t))(F||{});function Fr(t){return t.prototype?t:t.constructor}function R(t){return Fr(t)}function ir(t){const[e,n,a]=t,u=S=>e!==R(e)?S:`${S}.static`;return typeof a=="number"?n?u("parameter"):"parameter.constructor":a&&a.value?u("method"):n&&a===void 0||a?u("property"):F.CLASS}function ar(t){return t===Date||t instanceof Date&&!isNaN(+t)}function rt(t){return typeof t=="function"}function ae(t){return t==null}function cr(t){return typeof t=="boolean"||t instanceof Boolean||t===Boolean}function ur(t){return typeof t=="boolean"||t instanceof Boolean||t===Boolean}function fr(t){return typeof t=="number"}function lr(t){return typeof t=="number"||t instanceof Number||t===Number}function ct(t){return typeof t=="string"}function pr(t){return typeof t=="string"||t instanceof String||t===String}function Br(t){return pr(t)||lr(t)||ur(t)}function hr(t){return ct(t)||fr(t)||cr(t)}function ss(t){return[String,Number,Boolean].includes(t)}function $r(t){return t instanceof RegExp}function nt(t){return typeof t=="symbol"}function os(t){return typeof t=="symbol"||t instanceof Symbol||t===Symbol}const is=t=>ae(t)||hr(t)||nt(t)||rt(t),J=(t,e=new WeakMap)=>{if(is(t))return t;const n=e.get(t);if(n)return n;if(ArrayBuffer.isView(t))return Buffer.isBuffer(t)?Buffer.from(t):new(R(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(ar(t))return new Date(t);if($r(t))return new RegExp(t);if(Array.isArray(t)){const u=[];return e.set(t,u),t.forEach((S,w)=>u[w]=J(S,e)),u}if(t instanceof Map){const u=new Map;return e.set(t,u),t.forEach((S,w)=>u.set(J(w,e),J(S,e))),u}if(t instanceof Set){const u=new Set;return e.set(t,u),t.forEach(S=>u.add(J(S,e))),u}const a=Object.create(Reflect.getPrototypeOf(t));return e.set(t,a),Reflect.ownKeys(t).forEach(u=>{const S=Object.getOwnPropertyDescriptor(t,u);S&&(rt(S.value)?Object.defineProperty(a,u,S):Object.defineProperty(a,u,{...S,value:J(S.value,e)}))}),a};function Kr(t){return t?R(t)!==Object?Object.create(t):{}:{}}function ce(t){return["__proto__","constructor","prototype"].includes(t)}function dr(t){return Object.keys(t).filter(e=>!ce(e))}function Hr(t){return(e,n,a)=>{const u=e.findIndex(S=>t(S,n));return u===-1?[...e,n]:(e[u]=ut(e[u],n,a),e)}}const Vr=Hr((t,e)=>t===e);function as({reducers:t,parentKey:e}){return t?e&&t[e]?t[e]:t.default||Vr:Vr}function cs(t,e){return hr(t)||nt(t)||rt(t)||e===void 0}function us(t,e){return t==null||t===""&&e!==""}function ut(t,e,n={}){if(us(e,t))return t;if(cs(e,t))return e;if(Array.isArray(t)){const u=as(n);return[].concat(e).reduce((S,w)=>u(S,w,n),[...t])}const a=Kr(t);return[...dr(t),...dr(e)].reduce((u,S)=>{var w;const x=t&&t[S],D=ut(x,e&&e[S],{...n,parentKey:S});return n.cleanUndefinedProps&&D===void 0||(u[S]=((w=n.alter)==null?void 0:w.call(n,S,D))??D),u},a)}function X(t,e){return Reflect.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function fs(t,e){var n;return(n=X(t,e))==null?void 0:n.value}function Wr(t){return typeof t=="function"?t.name:t.constructor.name}const Gr=t=>t.toString().replace("Symbol(","").replace(")","");function q(t){switch(typeof t){default:return""+t;case"symbol":return Gr(t);case"function":return Wr(t)}}var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof L<"u"?L:typeof self<"u"?self:{},Jr={};/*! *****************************************************************************
|
|
2
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var Xr;function ls(){if(Xr)return Jr;Xr=1;var t;return function(e){(function(n){var a=typeof globalThis=="object"?globalThis:typeof zr=="object"?zr:typeof self=="object"?self:typeof this=="object"?this:D(),u=S(e);typeof a.Reflect<"u"&&(u=S(a.Reflect,u)),n(u,a),typeof a.Reflect>"u"&&(a.Reflect=e);function S(H,tt){return function(Y,pt){Object.defineProperty(H,Y,{configurable:!0,writable:!0,value:pt}),tt&&tt(Y,pt)}}function w(){try{return Function("return this;")()}catch{}}function x(){try{return(0,eval)("(function() { return this; })()")}catch{}}function D(){return w()||x()}})(function(n,a){var u=Object.prototype.hasOwnProperty,S=typeof Symbol=="function",w=S&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",x=S&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",D=typeof Object.create=="function",H={__proto__:[]}instanceof Array,tt=!D&&!H,Y={create:D?function(){return Cr(Object.create(null))}:H?function(){return Cr({__proto__:null})}:function(){return Cr({})},has:tt?function(s,o){return u.call(s,o)}:function(s,o){return o in s},get:tt?function(s,o){return u.call(s,o)?s[o]:void 0}:function(s,o){return s[o]}},pt=Object.getPrototypeOf(Function),ht=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:lo(),Pr=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:po(),Ur=typeof WeakMap=="function"?WeakMap:ho(),st=S?Symbol.for("@reflect-metadata:registry"):void 0,pe=co(),On=uo(pe);function Vs(s,o,c,f){if(v(c)){if(!jn(s))throw new TypeError;if(!kn(o))throw new TypeError;return to(s,o)}else{if(!jn(s))throw new TypeError;if(!j(o))throw new TypeError;if(!j(f)&&!v(f)&&!ot(f))throw new TypeError;return ot(f)&&(f=void 0),c=V(c),eo(s,o,c,f)}}n("decorate",Vs);function Ws(s,o){function c(f,T){if(!j(f))throw new TypeError;if(!v(T)&&!io(T))throw new TypeError;Un(s,o,f,T)}return c}n("metadata",Ws);function Gs(s,o,c,f){if(!j(c))throw new TypeError;return v(f)||(f=V(f)),Un(s,o,c,f)}n("defineMetadata",Gs);function zs(s,o,c){if(!j(o))throw new TypeError;return v(c)||(c=V(c)),bn(s,o,c)}n("hasMetadata",zs);function Js(s,o,c){if(!j(o))throw new TypeError;return v(c)||(c=V(c)),Mr(s,o,c)}n("hasOwnMetadata",Js);function Xs(s,o,c){if(!j(o))throw new TypeError;return v(c)||(c=V(c)),En(s,o,c)}n("getMetadata",Xs);function qs(s,o,c){if(!j(o))throw new TypeError;return v(c)||(c=V(c)),Pn(s,o,c)}n("getOwnMetadata",qs);function Ys(s,o){if(!j(s))throw new TypeError;return v(o)||(o=V(o)),Mn(s,o)}n("getMetadataKeys",Ys);function Zs(s,o){if(!j(s))throw new TypeError;return v(o)||(o=V(o)),Rn(s,o)}n("getOwnMetadataKeys",Zs);function Qs(s,o,c){if(!j(o))throw new TypeError;if(v(c)||(c=V(c)),!j(o))throw new TypeError;v(c)||(c=V(c));var f=dt(o,c,!1);return v(f)?!1:f.OrdinaryDeleteMetadata(s,o,c)}n("deleteMetadata",Qs);function to(s,o){for(var c=s.length-1;c>=0;--c){var f=s[c],T=f(o);if(!v(T)&&!ot(T)){if(!kn(T))throw new TypeError;o=T}}return o}function eo(s,o,c,f){for(var T=s.length-1;T>=0;--T){var _=s[T],k=_(o,c,f);if(!v(k)&&!ot(k)){if(!j(k))throw new TypeError;f=k}}return f}function bn(s,o,c){var f=Mr(s,o,c);if(f)return!0;var T=xr(o);return ot(T)?!1:bn(s,T,c)}function Mr(s,o,c){var f=dt(o,c,!1);return v(f)?!1:Cn(f.OrdinaryHasOwnMetadata(s,o,c))}function En(s,o,c){var f=Mr(s,o,c);if(f)return Pn(s,o,c);var T=xr(o);if(!ot(T))return En(s,T,c)}function Pn(s,o,c){var f=dt(o,c,!1);if(!v(f))return f.OrdinaryGetOwnMetadata(s,o,c)}function Un(s,o,c,f){var T=dt(c,f,!0);T.OrdinaryDefineOwnMetadata(s,o,c,f)}function Mn(s,o){var c=Rn(s,o),f=xr(s);if(f===null)return c;var T=Mn(f,o);if(T.length<=0)return c;if(c.length<=0)return T;for(var _=new Pr,k=[],m=0,l=c;m<l.length;m++){var h=l[m],d=_.has(h);d||(_.add(h),k.push(h))}for(var y=0,A=T;y<A.length;y++){var h=A[y],d=_.has(h);d||(_.add(h),k.push(h))}return k}function Rn(s,o){var c=dt(s,o,!1);return c?c.OrdinaryOwnMetadataKeys(s,o):[]}function xn(s){if(s===null)return 1;switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return s===null?1:6;default:return 6}}function v(s){return s===void 0}function ot(s){return s===null}function ro(s){return typeof s=="symbol"}function j(s){return typeof s=="object"?s!==null:typeof s=="function"}function no(s,o){switch(xn(s)){case 0:return s;case 1:return s;case 2:return s;case 3:return s;case 4:return s;case 5:return s}var c="string",f=Dn(s,w);if(f!==void 0){var T=f.call(s,c);if(j(T))throw new TypeError;return T}return so(s)}function so(s,o){var c,f;{var T=s.toString;if(he(T)){var f=T.call(s);if(!j(f))return f}var c=s.valueOf;if(he(c)){var f=c.call(s);if(!j(f))return f}}throw new TypeError}function Cn(s){return!!s}function oo(s){return""+s}function V(s){var o=no(s);return ro(o)?o:oo(o)}function jn(s){return Array.isArray?Array.isArray(s):s instanceof Object?s instanceof Array:Object.prototype.toString.call(s)==="[object Array]"}function he(s){return typeof s=="function"}function kn(s){return typeof s=="function"}function io(s){switch(xn(s)){case 3:return!0;case 4:return!0;default:return!1}}function Rr(s,o){return s===o||s!==s&&o!==o}function Dn(s,o){var c=s[o];if(c!=null){if(!he(c))throw new TypeError;return c}}function _n(s){var o=Dn(s,x);if(!he(o))throw new TypeError;var c=o.call(s);if(!j(c))throw new TypeError;return c}function Ln(s){return s.value}function Nn(s){var o=s.next();return o.done?!1:o}function In(s){var o=s.return;o&&o.call(s)}function xr(s){var o=Object.getPrototypeOf(s);if(typeof s!="function"||s===pt||o!==pt)return o;var c=s.prototype,f=c&&Object.getPrototypeOf(c);if(f==null||f===Object.prototype)return o;var T=f.constructor;return typeof T!="function"||T===s?o:T}function ao(){var s;!v(st)&&typeof a.Reflect<"u"&&!(st in a.Reflect)&&typeof a.Reflect.defineMetadata=="function"&&(s=fo(a.Reflect));var o,c,f,T=new Ur,_={registerProvider:k,getProvider:l,setProvider:d};return _;function k(y){if(!Object.isExtensible(_))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case s===y:break;case v(o):o=y;break;case o===y:break;case v(c):c=y;break;case c===y:break;default:f===void 0&&(f=new Pr),f.add(y);break}}function m(y,A){if(!v(o)){if(o.isProviderFor(y,A))return o;if(!v(c)){if(c.isProviderFor(y,A))return o;if(!v(f))for(var U=_n(f);;){var C=Nn(U);if(!C)return;var B=Ln(C);if(B.isProviderFor(y,A))return In(U),B}}}if(!v(s)&&s.isProviderFor(y,A))return s}function l(y,A){var U=T.get(y),C;return v(U)||(C=U.get(A)),v(C)&&(C=m(y,A),v(C)||(v(U)&&(U=new ht,T.set(y,U)),U.set(A,C))),C}function h(y){if(v(y))throw new TypeError;return o===y||c===y||!v(f)&&f.has(y)}function d(y,A,U){if(!h(U))throw new Error("Metadata provider not registered.");var C=l(y,A);if(C!==U){if(!v(C))return!1;var B=T.get(y);v(B)&&(B=new ht,T.set(y,B)),B.set(A,U)}return!0}}function co(){var s;return!v(st)&&j(a.Reflect)&&Object.isExtensible(a.Reflect)&&(s=a.Reflect[st]),v(s)&&(s=ao()),!v(st)&&j(a.Reflect)&&Object.isExtensible(a.Reflect)&&Object.defineProperty(a.Reflect,st,{enumerable:!1,configurable:!1,writable:!1,value:s}),s}function uo(s){var o=new Ur,c={isProviderFor:function(h,d){var y=o.get(h);return v(y)?!1:y.has(d)},OrdinaryDefineOwnMetadata:k,OrdinaryHasOwnMetadata:T,OrdinaryGetOwnMetadata:_,OrdinaryOwnMetadataKeys:m,OrdinaryDeleteMetadata:l};return pe.registerProvider(c),c;function f(h,d,y){var A=o.get(h),U=!1;if(v(A)){if(!y)return;A=new ht,o.set(h,A),U=!0}var C=A.get(d);if(v(C)){if(!y)return;if(C=new ht,A.set(d,C),!s.setProvider(h,d,c))throw A.delete(d),U&&o.delete(h),new Error("Wrong provider for target.")}return C}function T(h,d,y){var A=f(d,y,!1);return v(A)?!1:Cn(A.has(h))}function _(h,d,y){var A=f(d,y,!1);if(!v(A))return A.get(h)}function k(h,d,y,A){var U=f(y,A,!0);U.set(h,d)}function m(h,d){var y=[],A=f(h,d,!1);if(v(A))return y;for(var U=A.keys(),C=_n(U),B=0;;){var Fn=Nn(C);if(!Fn)return y.length=B,y;var yo=Ln(Fn);try{y[B]=yo}catch(So){try{In(C)}finally{throw So}}B++}}function l(h,d,y){var A=f(d,y,!1);if(v(A)||!A.delete(h))return!1;if(A.size===0){var U=o.get(d);v(U)||(U.delete(y),U.size===0&&o.delete(U))}return!0}}function fo(s){var o=s.defineMetadata,c=s.hasOwnMetadata,f=s.getOwnMetadata,T=s.getOwnMetadataKeys,_=s.deleteMetadata,k=new Ur,m={isProviderFor:function(l,h){var d=k.get(l);return!v(d)&&d.has(h)?!0:T(l,h).length?(v(d)&&(d=new Pr,k.set(l,d)),d.add(h),!0):!1},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:c,OrdinaryGetOwnMetadata:f,OrdinaryOwnMetadataKeys:T,OrdinaryDeleteMetadata:_};return m}function dt(s,o,c){var f=pe.getProvider(s,o);if(!v(f))return f;if(c){if(pe.setProvider(s,o,On))return On;throw new Error("Illegal state.")}}function lo(){var s={},o=[],c=function(){function m(l,h,d){this._index=0,this._keys=l,this._values=h,this._selector=d}return m.prototype["@@iterator"]=function(){return this},m.prototype[x]=function(){return this},m.prototype.next=function(){var l=this._index;if(l>=0&&l<this._keys.length){var h=this._selector(this._keys[l],this._values[l]);return l+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:h,done:!1}}return{value:void 0,done:!0}},m.prototype.throw=function(l){throw this._index>=0&&(this._index=-1,this._keys=o,this._values=o),l},m.prototype.return=function(l){return this._index>=0&&(this._index=-1,this._keys=o,this._values=o),{value:l,done:!0}},m}(),f=function(){function m(){this._keys=[],this._values=[],this._cacheKey=s,this._cacheIndex=-2}return Object.defineProperty(m.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),m.prototype.has=function(l){return this._find(l,!1)>=0},m.prototype.get=function(l){var h=this._find(l,!1);return h>=0?this._values[h]:void 0},m.prototype.set=function(l,h){var d=this._find(l,!0);return this._values[d]=h,this},m.prototype.delete=function(l){var h=this._find(l,!1);if(h>=0){for(var d=this._keys.length,y=h+1;y<d;y++)this._keys[y-1]=this._keys[y],this._values[y-1]=this._values[y];return this._keys.length--,this._values.length--,Rr(l,this._cacheKey)&&(this._cacheKey=s,this._cacheIndex=-2),!0}return!1},m.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=s,this._cacheIndex=-2},m.prototype.keys=function(){return new c(this._keys,this._values,T)},m.prototype.values=function(){return new c(this._keys,this._values,_)},m.prototype.entries=function(){return new c(this._keys,this._values,k)},m.prototype["@@iterator"]=function(){return this.entries()},m.prototype[x]=function(){return this.entries()},m.prototype._find=function(l,h){if(!Rr(this._cacheKey,l)){this._cacheIndex=-1;for(var d=0;d<this._keys.length;d++)if(Rr(this._keys[d],l)){this._cacheIndex=d;break}}return this._cacheIndex<0&&h&&(this._cacheIndex=this._keys.length,this._keys.push(l),this._values.push(void 0)),this._cacheIndex},m}();return f;function T(m,l){return m}function _(m,l){return l}function k(m,l){return[m,l]}}function po(){var s=function(){function o(){this._map=new ht}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(c){return this._map.has(c)},o.prototype.add=function(c){return this._map.set(c,c),this},o.prototype.delete=function(c){return this._map.delete(c)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[x]=function(){return this.keys()},o}();return s}function ho(){var s=16,o=Y.create(),c=f();return function(){function l(){this._key=f()}return l.prototype.has=function(h){var d=T(h,!1);return d!==void 0?Y.has(d,this._key):!1},l.prototype.get=function(h){var d=T(h,!1);return d!==void 0?Y.get(d,this._key):void 0},l.prototype.set=function(h,d){var y=T(h,!0);return y[this._key]=d,this},l.prototype.delete=function(h){var d=T(h,!1);return d!==void 0?delete d[this._key]:!1},l.prototype.clear=function(){this._key=f()},l}();function f(){var l;do l="@@WeakMap@@"+m();while(Y.has(o,l));return o[l]=!0,l}function T(l,h){if(!u.call(l,c)){if(!h)return;Object.defineProperty(l,c,{value:Y.create()})}return l[c]}function _(l,h){for(var d=0;d<h;++d)l[d]=Math.random()*255|0;return l}function k(l){if(typeof Uint8Array=="function"){var h=new Uint8Array(l);return typeof crypto<"u"?crypto.getRandomValues(h):typeof msCrypto<"u"?msCrypto.getRandomValues(h):_(h,l),h}return _(new Array(l),l)}function m(){var l=k(s);l[6]=l[6]&79|64,l[8]=l[8]&191|128;for(var h="",d=0;d<s;++d){var y=l[d];(d===4||d===6||d===8)&&(h+="-"),y<16&&(h+="0"),h+=y.toString(16).toLowerCase()}return h}}function Cr(s){return s.__=void 0,delete s.__,s}})}(t||(t={})),Jr}ls();const yr="design:paramtypes",qr="design:type",Yr="design:returntype",ft=new Map,Zr=class{static get(e,n,a){return Reflect.getMetadata(e,R(n),a)}static getOwn(e,n,a){return Reflect.getOwnMetadata(e,R(n),a)}static getType(e,n){return Reflect.getMetadata(qr,e,n)}static getOwnType(e,n){return Reflect.getMetadata(qr,e,n)}static getReturnType(e,n){return Reflect.getMetadata(Yr,e,n)}static getOwnReturnType(e,n){return Reflect.getOwnMetadata(Yr,e,n)}static has(e,n,a){try{return Reflect.hasMetadata(e,R(n),a)}catch{}return!1}static hasOwn(e,n,a){return Reflect.hasOwnMetadata(e,R(n),a)}static delete(e,n,a){return Reflect.deleteMetadata(e,R(n),a)}static setParamTypes(e,n,a){return this.set(yr,a,e.prototype,n)}static set(e,n,a,u){const S=ft.has(e)?ft.get(e)||[]:[],w=R(a);S.indexOf(w)===-1&&(S.push(w),ft.set(e,S)),Reflect.defineMetadata(e,n,R(a),u)}static getParamTypes(e,n){return Reflect.getMetadata(yr,e,n)||[]}static getOwnParamTypes(e,n){return Reflect.getOwnMetadata(yr,e,n)||[]}};Zr.getTargetsFromPropertyKey=t=>ft.has(t)?ft.get(t)||[]:[];let Qr=Zr;const tn="tsed:class:store",en="tsed:method:store",rn="tsed:property:store",nn="tsed:param:store",Sr=new Map;function ue(t,...e){if(nt(e[0]))return Sr.has(e[0])||Sr.set(e[0],new K),Sr.get(e[0]);{const n=Qr;return n.hasOwn(t,...e)||n.set(t,new K,...e),n.getOwn(t,...e)}}function ps(t){const[e,n,a]=t;switch(ir(t)){case F.PARAM_CTOR:case F.PARAM_STC:case F.PARAM:const u=ue(nn,e,n);return u.has(""+a)||u.set(""+a,new K),u.get(""+a);case F.PROP:case F.PROP_STC:return ue(rn,e,n);case F.METHOD:case F.METHOD_STC:return ue(en,e,n);case F.CLASS:return ue(tn,e)}}class K{constructor(){this._entries=new Map}static from(...e){return ps(e)}static fromMethod(e,n){return K.from(e,n,X(e,n))}static mergeStoreFrom(e,n,...a){const u=K.from(e,...a);return K.from(n,...a)._entries.forEach((S,w)=>{u.merge(w,S)}),u}static mergeStoreMethodFrom(e,n,a){return this.mergeStoreFrom(e,n,a,X(e,a))}get(e,n){return this._entries.get(q(e))||n}has(e){return this._entries.has(q(e))}set(e,n){return this._entries.set(q(e),n),this}delete(e){return this._entries.delete(q(e))}merge(e,n,a=!1){let u=this.get(e);return u&&(n=J(n),u=J(u),n=a?ut(n,u):ut(u,n)),this.set(e,n),this}toJson(){return[...this._entries.entries()].reduce((e,[n,a])=>({...e,[n]:a}),{})}}function Tr(t){return(...e)=>{const n=K.from(...e),a=t(n,e);return typeof a=="function"&&a(...e),e[2]}}function hs(t,e){return Tr(n=>{n.merge(t,e)})}function ds(t,e){return Tr(n=>{n.set(t,e)})}class vr extends Error{constructor(e,n){super(vr.buildMessage(e,n))}static buildMessage(e,n){const[a,u,S]=n,w=ir(n),x=w.split("/")[0],D=x==="parameter"?".["+S+"]":"",H=u?"."+u:x==="parameter"?".constructor":"",tt=q(R(a))+H+D;return`${e.name} cannot be used as ${w} decorator on ${tt}`}}var gr=(t=>(t.PROD="production",t.DEV="development",t.TEST="test",t))(gr||{});const ys=gr,sn=Function;L.Type=sn;function wr(t){return t&&Object.getPrototypeOf(t)}function on(t){return wr(t)}function mr(t){const e=[];let n=R(t);for(;n&&q(n)!=="";)e.unshift(n),n=on(n);return e}function fe(t){return typeof t=="object"}function an(t){return!!t&&typeof t.lift=="function"&&typeof t.subscribe=="function"}function Ar(t){return t===Promise||t instanceof Promise||!!t&&typeof t.subscribe!="function"&&typeof t.then=="function"}function le(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function cn(t){return fe(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var un=(t=>(t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED",t))(un||{}),fn=(t=>(t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA",t))(fn||{});class Ss{constructor({hasNextFunction:e=!1}={}){E(this,$),E(this,Q),E(this,z),E(this,et),this.status="PENDING",M(this,z,!1),M(this,z,e),M(this,et,new Promise((n,a)=>{M(this,$,n),M(this,Q,a)}))}isDone(){return this.status!=="PENDING"}get next(){return M(this,z,!0),e=>{if(!this.isDone())return e?this.reject(e):this.resolve({type:"DATA"})}}call(e){if(this.isDone())return Promise.resolve(this);try{this.handle(e())}catch(n){this.reject(n)}return P(this,et)}reject(e){this.isDone()||(this.done("REJECTED"),P(this,Q).call(this,e))}resolve(e={}){this.isDone()||(this.done("RESOLVED"),P(this,$).call(this,{...e,state:"RESOLVED"}))}destroy(){}cancel(){if(!this.isDone())return this.done("CANCELED"),P(this,$).call(this,{state:"CANCELED"})}done(e){this.destroy(),this.status=e}handle(e,n={}){if(!this.isDone()){if(e){if(this.isCanceledResponse(e))return this.cancel();if(an(e)&&(e=e.toPromise()),cn(e))return this.handle(e.data,{...n,status:e.status,headers:e.headers});if(le(e))return this.resolve({...n,type:"STREAM",data:e});if(le(e)||Buffer.isBuffer(e))return this.resolve({...n,type:"BUFFER",data:e});if(Ar(e))return e.then(a=>this.handle(a,n)).catch(a=>a.response&&cn(a.response)?this.handle(a.response):this.reject(a))}if(!P(this,z))return this.resolve({...n,data:e,type:"DATA"})}}isCanceledResponse(e){return e==="CANCELED"}}$=new WeakMap,Q=new WeakMap,z=new WeakMap,et=new WeakMap;function Ts(t){try{t()}catch(e){return e}}async function vs(t){try{await t()}catch(e){return e}}function gs(t,e=[]){return Object.entries(t).reduce((n,[a,u])=>(ce(a)||e.includes(a)||u===void 0||(n[a]=u),n),{})}function ln(t){return typeof t=="function"?t:t.constructor}function pn(t){return ln(t)}function lt(t){return R(t)===t?t.prototype:t}function hn(t){const e=new Map;return t=R(t),mr(t).forEach(n=>{Reflect.ownKeys(lt(n)).forEach(a=>{var u;nt(a)||a==="constructor"||(u=Object.getOwnPropertyDescriptor(lt(n),a))!=null&&u.get||e.set(a,{target:n,propertyKey:a})})}),Array.from(e.values())}function ws(t,e){hn(t).forEach(({target:n,propertyKey:a})=>{const u=lt(t);n!==R(t)&&(Object.defineProperty(u,a,{writable:!0,configurable:!0,value(...x){return lt(n)[a].apply(this,x)}}),K.mergeStoreMethodFrom(t,n,a));let S=X(t,a);const w=e(u,a,S)||S;w&&Object.defineProperty(u,a,w)})}function ms(t,e){return[t,e,X(t,e)]}function Or(t){return Array.isArray(t)}function br(t){return t===Array||Or(t)}function dn(t){return t&&rt(t)&&!t.prototype}function yn(t){return t&&"isBuffer"in t&&typeof t.isBuffer=="function"?!0:Sn(t)}function Sn(t){return!!(t&&(t===Uint8Array||t instanceof Uint8Array))}function Er(t){return t===Object}function As(t){return Er(R(t))&&t!==Object}function Tn(t){return!t||dn(t)?!1:!(nt(t)||Br(t)||Er(t)||ar(t)||Ar(t)||br(t)||yn(t))}function Os(t){return Tn(t)?R(t):t}function vn(t){return`${(pn(t).toString().split(`
|
|
15
|
-
`).find(e=>e.indexOf("constructor(")>-1)||"constructor()").replace("{","").trim()}`}function bs(t){return vn(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map(e=>e.trim())}function Es(){return`e${Math.random().toString(36).substring(7)}`}const Ps=t=>{const[e,n,a,u="."]=t;return fe(n)||ct(e)?{expression:e,scope:n,defaultValue:a,separator:u}:{expression:n,scope:e,defaultValue:a,separator:u}};function Us(...t){const e=Ps(t);let n=e.scope;const{expression:a,defaultValue:u,separator:S}=e;if(!a)return n;if(!n)return u;const w=a.split(S),x=D=>{if(n){if(n[D]!==void 0||fe(n)&&D in n)return n[D];if(rt(n.get))return n.get(D)}};for(;(n=x(w.shift()))&&w.length;);return n===void 0?u:n}function gn(t){return t&&typeof t.toJSON=="function"}function Ms(t,e){let n="0.0.0.0",a=e;return typeof e=="string"&&e.indexOf(":")>-1&&([n,a]=e.split(":"),a=+a),{protocol:t,address:n,port:a,toString(){return[`${this.protocol}://${this.address}`,typeof this.port=="number"&&this.port].filter(Boolean).join(":")}}}function wn(t,e){for(const n of mr(t)){const a=Object.getOwnPropertyDescriptor(n&&n.prototype||n,e);if(a)return a}}function Rs(t){return br(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function xs(t){return t===""||ae(t)}function Cs(t,e){const n=R(t);if(n){const a=wn(n,e);if(a)return a.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function js(t,e,n=5){if(!t||!e)return!1;for(t=R(t),e=R(e);q(t)!=="";){if(!n)return!1;if(t===e)return!0;t=wr(t),n--}return!1}function ks(t){return!!(t&&t!=null&&t._isAMomentObject)}function mn(t){return t&&t._bsontype}function Ds(t){return!!(gn(t)&&t.$isMongooseModelPrototype||mn(t))}function _s(t){return!(Buffer.isBuffer(t)||le(t)||cr(t)||fr(t)||ct(t)||ae(t))}function Ls(t){return pr(t)?"string":lr(t)?"number":ur(t)?"boolean":"any"}function Ns(t,e,n,a="."){const u=e.split(a),S=(w,x)=>ce(w)?!1:x?(typeof t.set=="function"?t.set(w,n):t[w]=n,!1):(typeof t.set=="function"?(t.has(w)||t.set(w,{}),t=t.get(w)):t=t[w]=t[w]||{},!0);for(;S(u.shift(),!u.length););}function An(t){return t?ct(t)?e=>e[t]:t:(e,n)=>String(n)}function Is(t,e){if(Or(t)){const a=An(e||"id");return t.reduce((u,S,w)=>([].concat(a(S,w)).forEach(x=>{var D;const H=u.get(x);S=((D=H==null?void 0:H.merge)==null?void 0:D.call(H,S))||S,u.set(x,S)}),u),new Map)}const n=An(e);return Object.entries(t).reduce((a,[u,S])=>a.set(n(S,u),S),new Map)}function Fs(t){return Array.from(new Set(t).values())}function Bs(t,e="id"){const n=new Map;return t.forEach(a=>{n.set(a[e],a)}),Array.from(n.values())}function $s(...t){return(...e)=>{const n=typeof e[2]=="object";if(t.filter(a=>!!a).forEach(a=>{const u=a(...e);n&&typeof u=="object"&&(e[2]=u)}),n)return e[2]}}function Ks(t){return(e,n)=>t(e,n,X(e,n))}function Hs(...t){return(e,n)=>{t.filter(Boolean).forEach(a=>a(e,n,X(e,n)))}}r.AnyToPromise=Ss,r.AnyToPromiseResponseTypes=fn,r.AnyToPromiseStatus=un,r.CLASS_STORE=tn,r.DecoratorTypes=F,r.Env=gr,r.EnvTypes=ys,r.METHOD_STORE=en,r.Metadata=Qr,r.PARAM_STORE=nn,r.PROPERTY_STORE=rn,r.Store=K,r.StoreFn=Tr,r.StoreMerge=hs,r.StoreSet=ds,r.Type=sn,r.UnsupportedDecoratorType=vr,r.ancestorOf=wr,r.ancestorsOf=mr,r.catchAsyncError=vs,r.catchError=Ts,r.classOf=R,r.cleanObject=gs,r.constructorOf=pn,r.createInstance=Kr,r.decorateMethodsOf=ws,r.decoratorArgs=ms,r.decoratorTypeOf=ir,r.deepClone=J,r.deepMerge=ut,r.descriptorOf=X,r.getClass=Fr,r.getClassOrSymbol=Os,r.getConstructor=ln,r.getConstructorArgNames=bs,r.getHostInfoFromPort=Ms,r.getInheritedClass=on,r.getRandomId=Es,r.getValue=Us,r.hasJsonMethod=gn,r.inheritedDescriptorOf=wn,r.isArray=Or,r.isArrayOrArrayClass=br,r.isArrowFn=dn,r.isBoolean=cr,r.isBooleanOrBooleanClass=ur,r.isBuffer=yn,r.isClass=Tn,r.isClassObject=Er,r.isCollection=Rs,r.isDate=ar,r.isEmpty=xs,r.isEnumerable=Cs,r.isFunction=rt,r.isInheritedFrom=js,r.isMethodDescriptor=fs,r.isMomentObject=ks,r.isMongooseObject=Ds,r.isNil=ae,r.isNumber=fr,r.isNumberOrNumberClass=lr,r.isObject=fe,r.isObjectID=mn,r.isObservable=an,r.isPlainObject=As,r.isPrimitive=hr,r.isPrimitiveClass=ss,r.isPrimitiveOrPrimitiveClass=Br,r.isPromise=Ar,r.isProtectedKey=ce,r.isRegExp=$r,r.isSerializable=_s,r.isStream=le,r.isString=ct,r.isStringOrStringClass=pr,r.isSymbol=nt,r.isSymbolOrSymbolClass=os,r.isUint8Array=Sn,r.mergeReducerBuilder=Hr,r.methodsOf=hn,r.nameOf=q,r.nameOfClass=Wr,r.nameOfSymbol=Gr,r.objectKeys=dr,r.primitiveOf=Ls,r.prototypeOf=lt,r.setValue=Ns,r.toMap=Is,r.toStringConstructor=vn,r.uniq=Fs,r.uniqBy=Bs,r.useDecorators=$s,r.useMethodDecorator=Ks,r.useMethodDecorators=Hs,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})})}(it,it.exports)),it.exports}var kr=Wn();const Gn=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),zn=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Jn=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Xn=/[^\p{L}\d]+/giu,Dr="$1\0$2",_r="";function Lr(g){let i=g.trim();i=i.replace(Gn,Dr).replace(zn,Dr),i=i.replace(Xn,"\0");let r=0,O=i.length;for(;i.charAt(r)==="\0";)r++;if(r===O)return[];for(;i.charAt(O-1)==="\0";)O--;return i.slice(r,O).split(/\0/g)}function qn(g){const i=Lr(g);for(let r=0;r<i.length;r++){const O=i[r],N=Jn.exec(O);if(N){const P=N.index+(N[1]??N[2]).length;i.splice(r,1,O.slice(0,P),O.slice(P))}}return i}function Nr(g,i){const[r,O,N]=Zn(g,i);return r+O.map(Yn(i==null?void 0:i.locale)).join("_")+N}function Yn(g){return g===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(g)}function Zn(g,i={}){const r=i.split??(i.separateNumbers?qn:Lr),O=i.prefixCharacters??_r,N=i.suffixCharacters??_r;let P=0,E=g.length;for(;P<g.length;){const M=g.charAt(P);if(!O.includes(M))break;P++}for(;E>P;){const M=E-1,$=g.charAt(M);if(!N.includes($))break;E=M}return[g.slice(0,P),r(g.slice(P,E)),g.slice(E)]}const Qn={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"};/*!
|
|
16
|
-
* statuses
|
|
17
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
18
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
19
|
-
* MIT Licensed
|
|
20
|
-
*/var de,Ir;function ts(){if(Ir)return de;Ir=1;var g=Qn;de=P,P.message=g,P.code=i(g),P.codes=r(g),P.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},P.empty={204:!0,205:!0,304:!0},P.retry={502:!0,503:!0,504:!0};function i(E){var M={};return Object.keys(E).forEach(function(Q){var z=E[Q],et=Number(Q);M[z.toLowerCase()]=et}),M}function r(E){return Object.keys(E).map(function($){return Number($)})}function O(E){var M=E.toLowerCase();if(!Object.prototype.hasOwnProperty.call(P.code,M))throw new Error('invalid status message: "'+E+'"');return P.code[M]}function N(E){if(!Object.prototype.hasOwnProperty.call(P.message,E))throw new Error("invalid status code: "+E);return P.message[E]}function P(E){if(typeof E=="number")return N(E);if(typeof E!="string")throw new TypeError("code must be a number or string");var M=parseInt(E,10);return isNaN(M)?O(E):N(M)}return de}var es=ts();const rs=Z(es);class G extends Error{constructor(r=500,O="",N){super(O);$n(this,yt);this.name="HTTP_EXCEPTION",this.type="HTTP_EXCEPTION",this.headers={},this.status=r,this.message=O,this.name=Kn(this,yt,Hn).call(this),this.setOrigin(N),Error.captureStackTrace(this)}static validate(r,O){if(r<100||r>=600)throw new Error("Status must be between 100 and 599");if(r.toString()[0]!==O.charAt(0))throw new Error(`Status ${r} does not belong to the family ${O}`);return r}setHeaders(r){return this.headers={...this.headers,...r},this}setHeader(r,O){return this.headers[r]=O,this}setOrigin(r){r&&(r instanceof Error?(this.origin=r,this.message=`${this.message}, innerException: ${this.origin.message}`.trim()):typeof r=="string"?(this.origin=new Error(r),this.message=`${this.message}, innerException: ${this.origin.message}`.trim()):this.body=r)}toString(){return`${this.name}(${this.status}): ${this.message} `.trim()}}yt=new WeakSet,Hn=function(){try{return this.status===200?"SUCCESS":Nr(String(rs(this.status)))}catch{return Nr(kr.nameOf(kr.classOf(this)))}};class ns extends G{}var at=(g=>(g["3xx"]="3xx",g["4xx"]="4xx",g["5xx"]="5xx",g))(at||{});class b extends G{constructor(i,r,O){super(G.validate(i,at["4xx"]),r,O)}}const St=class St extends b{constructor(i,r){super(St.STATUS,i,r),this.name="BAD_MAPPING"}};St.STATUS=421;let ye=St;const Tt=class Tt extends b{constructor(i,r){super(Tt.STATUS,i,r)}};Tt.STATUS=400;let Se=Tt;const vt=class vt extends b{constructor(i,r){super(vt.STATUS,i,r)}};vt.STATUS=409;let Te=vt;const gt=class gt extends b{constructor(i,r){super(gt.STATUS,i,r)}};gt.STATUS=417;let ve=gt;const wt=class wt extends b{constructor(i,r){super(wt.STATUS,i,r)}};wt.STATUS=403;let ge=wt;const mt=class mt extends b{constructor(i,r){super(mt.STATUS,i,r)}};mt.STATUS=410;let we=mt;const At=class At extends b{constructor(i,r){super(At.STATUS,i,r),this.name="IM_A_TEAPOT"}};At.STATUS=418;let me=At;const Ot=class Ot extends b{constructor(i,r){super(Ot.STATUS,i,r)}};Ot.STATUS=411;let Ae=Ot;const bt=class bt extends b{constructor(i,r){super(bt.STATUS,i,r)}};bt.STATUS=405;let Oe=bt;const Et=class Et extends b{constructor(i,r){super(Et.STATUS,i,r)}};Et.STATUS=421;let be=Et;const Pt=class Pt extends b{constructor(i,r="You must accept content-type "+i){super(Pt.STATUS,r)}};Pt.STATUS=406;let Ee=Pt;const Ut=class Ut extends b{constructor(i,r){super(Ut.STATUS,i,r)}};Ut.STATUS=404;let Pe=Ut;const Mt=class Mt extends b{constructor(i,r){super(Mt.STATUS,i,r)}};Mt.STATUS=402;let Ue=Mt;const Rt=class Rt extends b{constructor(i,r){super(Rt.STATUS,i,r)}};Rt.STATUS=412;let Me=Rt;const xt=class xt extends b{constructor(i,r){super(xt.STATUS,i,r)}};xt.STATUS=428;let Re=xt;const Ct=class Ct extends b{constructor(i,r){super(Ct.STATUS,i,r)}};Ct.STATUS=407;let xe=Ct;const jt=class jt extends b{constructor(i,r){super(jt.STATUS,i,r)}};jt.STATUS=413;let Ce=jt;const kt=class kt extends b{constructor(i,r){super(kt.STATUS,i,r)}};kt.STATUS=431;let je=kt;const Dt=class Dt extends b{constructor(i,r){super(Dt.STATUS,i,r)}};Dt.STATUS=416;let ke=Dt;const _t=class _t extends b{constructor(i,r){super(_t.STATUS,i,r)}};_t.STATUS=408;let De=_t;const Lt=class Lt extends b{constructor(i,r){super(Lt.STATUS,i,r)}};Lt.STATUS=414;let _e=Lt;const Nt=class Nt extends b{constructor(i,r){super(Nt.STATUS,i,r)}};Nt.STATUS=429;let Le=Nt;const It=class It extends b{constructor(i,r){super(It.STATUS,i,r)}};It.STATUS=401;let Ne=It;const Ft=class Ft extends b{constructor(i,r){super(Ft.STATUS,i,r)}};Ft.STATUS=451;let Ie=Ft;const Bt=class Bt extends b{constructor(i,r){super(Bt.STATUS,i,r)}};Bt.STATUS=422;let Fe=Bt;const $t=class $t extends b{constructor(i,r){super($t.STATUS,i,r)}};$t.STATUS=415;let Be=$t;const Kt=class Kt extends b{constructor(i,r){super(Kt.STATUS,i,r)}};Kt.STATUS=426;let $e=Kt;class W extends G{constructor(i,r,O){super(G.validate(i,at["3xx"]),r,O)}}class I extends G{constructor(i,r,O){super(G.validate(i,at["5xx"]),r,O)}}const Ht=class Ht extends W{constructor(i,r){super(Ht.STATUS,i,r)}};Ht.STATUS=301;let Ke=Ht;const Vt=class Vt extends W{constructor(i,r){super(Vt.STATUS,i,r),this.name="MOVED_TEMPORARILY"}};Vt.STATUS=302;let He=Vt;const Wt=class Wt extends W{constructor(i,r){super(Wt.STATUS,i,r)}};Wt.STATUS=300;let Ve=Wt;const Gt=class Gt extends W{constructor(i,r){super(Gt.STATUS,i,r)}};Gt.STATUS=304;let We=Gt;const zt=class zt extends W{constructor(i,r){super(zt.STATUS,i,r)}};zt.STATUS=308;let Ge=zt;const Jt=class Jt extends W{constructor(i,r){super(Jt.STATUS,i,r)}};Jt.STATUS=303;let ze=Jt;const Xt=class Xt extends W{constructor(i,r){super(Xt.STATUS,i,r)}};Xt.STATUS=307;let Je=Xt;const qt=class qt extends W{constructor(i,r){super(qt.STATUS,i,r)}};qt.STATUS=305;let Xe=qt;const Yt=class Yt extends I{constructor(i,r){super(Yt.STATUS,i,r)}};Yt.STATUS=502;let qe=Yt;const Zt=class Zt extends I{constructor(i,r){super(Zt.STATUS,i,r)}};Zt.STATUS=509;let Ye=Zt;const Qt=class Qt extends I{constructor(i,r){super(Qt.STATUS,i,r)}};Qt.STATUS=504;let Ze=Qt;const te=class te extends I{constructor(i,r){super(te.STATUS,i,r)}};te.STATUS=500;let Qe=te;const ee=class ee extends I{constructor(i,r){super(ee.STATUS,i,r)}};ee.STATUS=511;let tr=ee;const re=class re extends I{constructor(i,r){super(re.STATUS,i,r)}};re.STATUS=510;let er=re;const ne=class ne extends I{constructor(i,r){super(ne.STATUS,i,r)}};ne.STATUS=501;let rr=ne;const se=class se extends I{constructor(i,r){super(se.STATUS,i,r),this.name="PROXY_ERROR"}};se.STATUS=502;let nr=se;const oe=class oe extends I{constructor(i,r){super(oe.STATUS,i,r)}};oe.STATUS=503;let sr=oe;const ie=class ie extends I{constructor(i,r){super(ie.STATUS,i,r)}};ie.STATUS=506;let or=ie;p.BadGateway=qe,p.BadMapping=ye,p.BadRequest=Se,p.BandwidthLimitExceeded=Ye,p.ClientException=b,p.Conflict=Te,p.Exception=G,p.ExpectationFailed=ve,p.Forbidden=ge,p.GatewayTimeout=Ze,p.Gone=we,p.HTTPException=ns,p.ImATeapot=me,p.InternalServerError=Qe,p.LengthRequired=Ae,p.MethodNotAllowed=Oe,p.MisdirectedRequest=be,p.MovedPermanently=Ke,p.MovedTemporarily=He,p.MultipleChoices=Ve,p.NetworkAuthenticationRequired=tr,p.NotAcceptable=Ee,p.NotExtended=er,p.NotFound=Pe,p.NotImplemented=rr,p.NotModified=We,p.PaymentRequired=Ue,p.PermanentRedirect=Ge,p.PreconditionFailed=Me,p.PreconditionRequired=Re,p.ProxyAuthentificationRequired=xe,p.ProxyError=nr,p.RedirectException=W,p.RequestEntityTooLarge=Ce,p.RequestHeaderFieldsTooLarge=je,p.RequestRangeUnsatisfiable=ke,p.RequestTimeout=De,p.RequestURITooLong=_e,p.SeeOther=ze,p.ServerException=I,p.ServiceUnavailable=sr,p.StatusFamily=at,p.TemporaryRedirect=Je,p.TooManyRequests=Le,p.Unauthorized=Ne,p.UnavailableForLegalReasons=Ie,p.UnprocessableEntity=Fe,p.UnsupportedMediaType=Be,p.UpgradeRequired=$e,p.UseProxy=Xe,p.VariantAlsoNegotiates=or,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/vite.config.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {defineConfig} from "vite";
|
|
2
|
-
import {join} from "node:path";
|
|
3
|
-
|
|
4
|
-
// https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [],
|
|
7
|
-
build: {
|
|
8
|
-
outDir: "lib/browser",
|
|
9
|
-
lib: {
|
|
10
|
-
entry: join(import.meta.dirname, "src/index.ts"),
|
|
11
|
-
formats: ["umd"],
|
|
12
|
-
name: "@tsed/exceptions",
|
|
13
|
-
fileName: "exceptions"
|
|
14
|
-
},
|
|
15
|
-
rollupOptions: {
|
|
16
|
-
// external: /node_modules\/(.*)/
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|