mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
release(@nestjs) update to v4
This commit is contained in:
476
dist/coverage/prettify.js
vendored
Normal file
476
dist/coverage/prettify.js
vendored
Normal file
@@ -0,0 +1,476 @@
|
||||
window.PR_SHOULD_USE_CONTINUATION = true;
|
||||
(function () { var h = ["break,continue,do,else,for,if,return,while"]; var u = [h, "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"]; var p = [u, "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"]; var l = [p, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"]; var x = [p, "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"]; var R = [x, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"]; var r = "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes"; var w = [p, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"]; var s = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"; var I = [h, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"]; var f = [h, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"]; var H = [h, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"]; var A = [l, R, w, s + I, f, H]; var e = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/; var C = "str"; var z = "kwd"; var j = "com"; var O = "typ"; var G = "lit"; var L = "pun"; var F = "pln"; var m = "tag"; var E = "dec"; var J = "src"; var P = "atn"; var n = "atv"; var N = "nocode"; var M = "(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*"; function k(Z) { var ad = 0; var S = false; var ac = false; for (var V = 0, U = Z.length; V < U; ++V) {
|
||||
var ae = Z[V];
|
||||
if (ae.ignoreCase) {
|
||||
ac = true;
|
||||
}
|
||||
else {
|
||||
if (/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ""))) {
|
||||
S = true;
|
||||
ac = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} var Y = { b: 8, t: 9, n: 10, v: 11, f: 12, r: 13 }; function ab(ah) { var ag = ah.charCodeAt(0); if (ag !== 92) {
|
||||
return ag;
|
||||
} var af = ah.charAt(1); ag = Y[af]; if (ag) {
|
||||
return ag;
|
||||
}
|
||||
else {
|
||||
if ("0" <= af && af <= "7") {
|
||||
return parseInt(ah.substring(1), 8);
|
||||
}
|
||||
else {
|
||||
if (af === "u" || af === "x") {
|
||||
return parseInt(ah.substring(2), 16);
|
||||
}
|
||||
else {
|
||||
return ah.charCodeAt(1);
|
||||
}
|
||||
}
|
||||
} } function T(af) { if (af < 32) {
|
||||
return (af < 16 ? "\\x0" : "\\x") + af.toString(16);
|
||||
} var ag = String.fromCharCode(af); if (ag === "\\" || ag === "-" || ag === "[" || ag === "]") {
|
||||
ag = "\\" + ag;
|
||||
} return ag; } function X(am) { var aq = am.substring(1, am.length - 1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]", "g")); var ak = []; var af = []; var ao = aq[0] === "^"; for (var ar = ao ? 1 : 0, aj = aq.length; ar < aj; ++ar) {
|
||||
var ah = aq[ar];
|
||||
if (/\\[bdsw]/i.test(ah)) {
|
||||
ak.push(ah);
|
||||
}
|
||||
else {
|
||||
var ag = ab(ah);
|
||||
var al;
|
||||
if (ar + 2 < aj && "-" === aq[ar + 1]) {
|
||||
al = ab(aq[ar + 2]);
|
||||
ar += 2;
|
||||
}
|
||||
else {
|
||||
al = ag;
|
||||
}
|
||||
af.push([ag, al]);
|
||||
if (!(al < 65 || ag > 122)) {
|
||||
if (!(al < 65 || ag > 90)) {
|
||||
af.push([Math.max(65, ag) | 32, Math.min(al, 90) | 32]);
|
||||
}
|
||||
if (!(al < 97 || ag > 122)) {
|
||||
af.push([Math.max(97, ag) & ~32, Math.min(al, 122) & ~32]);
|
||||
}
|
||||
}
|
||||
}
|
||||
} af.sort(function (av, au) { return (av[0] - au[0]) || (au[1] - av[1]); }); var ai = []; var ap = [NaN, NaN]; for (var ar = 0; ar < af.length; ++ar) {
|
||||
var at = af[ar];
|
||||
if (at[0] <= ap[1] + 1) {
|
||||
ap[1] = Math.max(ap[1], at[1]);
|
||||
}
|
||||
else {
|
||||
ai.push(ap = at);
|
||||
}
|
||||
} var an = ["["]; if (ao) {
|
||||
an.push("^");
|
||||
} an.push.apply(an, ak); for (var ar = 0; ar < ai.length; ++ar) {
|
||||
var at = ai[ar];
|
||||
an.push(T(at[0]));
|
||||
if (at[1] > at[0]) {
|
||||
if (at[1] + 1 > at[0]) {
|
||||
an.push("-");
|
||||
}
|
||||
an.push(T(at[1]));
|
||||
}
|
||||
} an.push("]"); return an.join(""); } function W(al) { var aj = al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)", "g")); var ah = aj.length; var an = []; for (var ak = 0, am = 0; ak < ah; ++ak) {
|
||||
var ag = aj[ak];
|
||||
if (ag === "(") {
|
||||
++am;
|
||||
}
|
||||
else {
|
||||
if ("\\" === ag.charAt(0)) {
|
||||
var af = +ag.substring(1);
|
||||
if (af && af <= am) {
|
||||
an[af] = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} for (var ak = 1; ak < an.length; ++ak) {
|
||||
if (-1 === an[ak]) {
|
||||
an[ak] = ++ad;
|
||||
}
|
||||
} for (var ak = 0, am = 0; ak < ah; ++ak) {
|
||||
var ag = aj[ak];
|
||||
if (ag === "(") {
|
||||
++am;
|
||||
if (an[am] === undefined) {
|
||||
aj[ak] = "(?:";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ("\\" === ag.charAt(0)) {
|
||||
var af = +ag.substring(1);
|
||||
if (af && af <= am) {
|
||||
aj[ak] = "\\" + an[am];
|
||||
}
|
||||
}
|
||||
}
|
||||
} for (var ak = 0, am = 0; ak < ah; ++ak) {
|
||||
if ("^" === aj[ak] && "^" !== aj[ak + 1]) {
|
||||
aj[ak] = "";
|
||||
}
|
||||
} if (al.ignoreCase && S) {
|
||||
for (var ak = 0; ak < ah; ++ak) {
|
||||
var ag = aj[ak];
|
||||
var ai = ag.charAt(0);
|
||||
if (ag.length >= 2 && ai === "[") {
|
||||
aj[ak] = X(ag);
|
||||
}
|
||||
else {
|
||||
if (ai !== "\\") {
|
||||
aj[ak] = ag.replace(/[a-zA-Z]/g, function (ao) { var ap = ao.charCodeAt(0); return "[" + String.fromCharCode(ap & ~32, ap | 32) + "]"; });
|
||||
}
|
||||
}
|
||||
}
|
||||
} return aj.join(""); } var aa = []; for (var V = 0, U = Z.length; V < U; ++V) {
|
||||
var ae = Z[V];
|
||||
if (ae.global || ae.multiline) {
|
||||
throw new Error("" + ae);
|
||||
}
|
||||
aa.push("(?:" + W(ae) + ")");
|
||||
} return new RegExp(aa.join("|"), ac ? "gi" : "g"); } function a(V) { var U = /(?:^|\s)nocode(?:\s|$)/; var X = []; var T = 0; var Z = []; var W = 0; var S; if (V.currentStyle) {
|
||||
S = V.currentStyle.whiteSpace;
|
||||
}
|
||||
else {
|
||||
if (window.getComputedStyle) {
|
||||
S = document.defaultView.getComputedStyle(V, null).getPropertyValue("white-space");
|
||||
}
|
||||
} var Y = S && "pre" === S.substring(0, 3); function aa(ab) { switch (ab.nodeType) {
|
||||
case 1:
|
||||
if (U.test(ab.className)) {
|
||||
return;
|
||||
}
|
||||
for (var ae = ab.firstChild; ae; ae = ae.nextSibling) {
|
||||
aa(ae);
|
||||
}
|
||||
var ad = ab.nodeName;
|
||||
if ("BR" === ad || "LI" === ad) {
|
||||
X[W] = "\n";
|
||||
Z[W << 1] = T++;
|
||||
Z[(W++ << 1) | 1] = ab;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
var ac = ab.nodeValue;
|
||||
if (ac.length) {
|
||||
if (!Y) {
|
||||
ac = ac.replace(/[ \t\r\n]+/g, " ");
|
||||
}
|
||||
else {
|
||||
ac = ac.replace(/\r\n?/g, "\n");
|
||||
}
|
||||
X[W] = ac;
|
||||
Z[W << 1] = T;
|
||||
T += ac.length;
|
||||
Z[(W++ << 1) | 1] = ab;
|
||||
}
|
||||
break;
|
||||
} } aa(V); return { sourceCode: X.join("").replace(/\n$/, ""), spans: Z }; } function B(S, U, W, T) { if (!U) {
|
||||
return;
|
||||
} var V = { sourceCode: U, basePos: S }; W(V); T.push.apply(T, V.decorations); } var v = /\S/; function o(S) { var V = undefined; for (var U = S.firstChild; U; U = U.nextSibling) {
|
||||
var T = U.nodeType;
|
||||
V = (T === 1) ? (V ? S : U) : (T === 3) ? (v.test(U.nodeValue) ? S : V) : V;
|
||||
} return V === S ? undefined : V; } function g(U, T) { var S = {}; var V; (function () { var ad = U.concat(T); var ah = []; var ag = {}; for (var ab = 0, Z = ad.length; ab < Z; ++ab) {
|
||||
var Y = ad[ab];
|
||||
var ac = Y[3];
|
||||
if (ac) {
|
||||
for (var ae = ac.length; --ae >= 0;) {
|
||||
S[ac.charAt(ae)] = Y;
|
||||
}
|
||||
}
|
||||
var af = Y[1];
|
||||
var aa = "" + af;
|
||||
if (!ag.hasOwnProperty(aa)) {
|
||||
ah.push(af);
|
||||
ag[aa] = null;
|
||||
}
|
||||
} ah.push(/[\0-\uffff]/); V = k(ah); })(); var X = T.length; var W = function (ah) { var Z = ah.sourceCode, Y = ah.basePos; var ad = [Y, F]; var af = 0; var an = Z.match(V) || []; var aj = {}; for (var ae = 0, aq = an.length; ae < aq; ++ae) {
|
||||
var ag = an[ae];
|
||||
var ap = aj[ag];
|
||||
var ai = void 0;
|
||||
var am;
|
||||
if (typeof ap === "string") {
|
||||
am = false;
|
||||
}
|
||||
else {
|
||||
var aa = S[ag.charAt(0)];
|
||||
if (aa) {
|
||||
ai = ag.match(aa[1]);
|
||||
ap = aa[0];
|
||||
}
|
||||
else {
|
||||
for (var ao = 0; ao < X; ++ao) {
|
||||
aa = T[ao];
|
||||
ai = ag.match(aa[1]);
|
||||
if (ai) {
|
||||
ap = aa[0];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!ai) {
|
||||
ap = F;
|
||||
}
|
||||
}
|
||||
am = ap.length >= 5 && "lang-" === ap.substring(0, 5);
|
||||
if (am && !(ai && typeof ai[1] === "string")) {
|
||||
am = false;
|
||||
ap = J;
|
||||
}
|
||||
if (!am) {
|
||||
aj[ag] = ap;
|
||||
}
|
||||
}
|
||||
var ab = af;
|
||||
af += ag.length;
|
||||
if (!am) {
|
||||
ad.push(Y + ab, ap);
|
||||
}
|
||||
else {
|
||||
var al = ai[1];
|
||||
var ak = ag.indexOf(al);
|
||||
var ac = ak + al.length;
|
||||
if (ai[2]) {
|
||||
ac = ag.length - ai[2].length;
|
||||
ak = ac - al.length;
|
||||
}
|
||||
var ar = ap.substring(5);
|
||||
B(Y + ab, ag.substring(0, ak), W, ad);
|
||||
B(Y + ab + ak, al, q(ar, al), ad);
|
||||
B(Y + ab + ac, ag.substring(ac), W, ad);
|
||||
}
|
||||
} ah.decorations = ad; }; return W; } function i(T) { var W = [], S = []; if (T.tripleQuotedStrings) {
|
||||
W.push([C, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, "'\""]);
|
||||
}
|
||||
else {
|
||||
if (T.multiLineStrings) {
|
||||
W.push([C, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, "'\"`"]);
|
||||
}
|
||||
else {
|
||||
W.push([C, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, "\"'"]);
|
||||
}
|
||||
} if (T.verbatimStrings) {
|
||||
S.push([C, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]);
|
||||
} var Y = T.hashComments; if (Y) {
|
||||
if (T.cStyleComments) {
|
||||
if (Y > 1) {
|
||||
W.push([j, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, "#"]);
|
||||
}
|
||||
else {
|
||||
W.push([j, /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, "#"]);
|
||||
}
|
||||
S.push([C, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null]);
|
||||
}
|
||||
else {
|
||||
W.push([j, /^#[^\r\n]*/, null, "#"]);
|
||||
}
|
||||
} if (T.cStyleComments) {
|
||||
S.push([j, /^\/\/[^\r\n]*/, null]);
|
||||
S.push([j, /^\/\*[\s\S]*?(?:\*\/|$)/, null]);
|
||||
} if (T.regexLiterals) {
|
||||
var X = ("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");
|
||||
S.push(["lang-regex", new RegExp("^" + M + "(" + X + ")")]);
|
||||
} var V = T.types; if (V) {
|
||||
S.push([O, V]);
|
||||
} var U = ("" + T.keywords).replace(/^ | $/g, ""); if (U.length) {
|
||||
S.push([z, new RegExp("^(?:" + U.replace(/[\s,]+/g, "|") + ")\\b"), null]);
|
||||
} W.push([F, /^\s+/, null, " \r\n\t\xA0"]); S.push([G, /^@[a-z_$][a-z_$@0-9]*/i, null], [O, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null], [F, /^[a-z_$][a-z_$@0-9]*/i, null], [G, new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*", "i"), null, "0123456789"], [F, /^\\[\s\S]?/, null], [L, /^.[^\s\w\.$@\'\"\`\/\#\\]*/, null]); return g(W, S); } var K = i({ keywords: A, hashComments: true, cStyleComments: true, multiLineStrings: true, regexLiterals: true }); function Q(V, ag) { var U = /(?:^|\s)nocode(?:\s|$)/; var ab = /\r\n?|\n/; var ac = V.ownerDocument; var S; if (V.currentStyle) {
|
||||
S = V.currentStyle.whiteSpace;
|
||||
}
|
||||
else {
|
||||
if (window.getComputedStyle) {
|
||||
S = ac.defaultView.getComputedStyle(V, null).getPropertyValue("white-space");
|
||||
}
|
||||
} var Z = S && "pre" === S.substring(0, 3); var af = ac.createElement("LI"); while (V.firstChild) {
|
||||
af.appendChild(V.firstChild);
|
||||
} var W = [af]; function ae(al) { switch (al.nodeType) {
|
||||
case 1:
|
||||
if (U.test(al.className)) {
|
||||
break;
|
||||
}
|
||||
if ("BR" === al.nodeName) {
|
||||
ad(al);
|
||||
if (al.parentNode) {
|
||||
al.parentNode.removeChild(al);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (var an = al.firstChild; an; an = an.nextSibling) {
|
||||
ae(an);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
if (Z) {
|
||||
var am = al.nodeValue;
|
||||
var aj = am.match(ab);
|
||||
if (aj) {
|
||||
var ai = am.substring(0, aj.index);
|
||||
al.nodeValue = ai;
|
||||
var ah = am.substring(aj.index + aj[0].length);
|
||||
if (ah) {
|
||||
var ak = al.parentNode;
|
||||
ak.insertBefore(ac.createTextNode(ah), al.nextSibling);
|
||||
}
|
||||
ad(al);
|
||||
if (!ai) {
|
||||
al.parentNode.removeChild(al);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
} } function ad(ak) { while (!ak.nextSibling) {
|
||||
ak = ak.parentNode;
|
||||
if (!ak) {
|
||||
return;
|
||||
}
|
||||
} function ai(al, ar) { var aq = ar ? al.cloneNode(false) : al; var ao = al.parentNode; if (ao) {
|
||||
var ap = ai(ao, 1);
|
||||
var an = al.nextSibling;
|
||||
ap.appendChild(aq);
|
||||
for (var am = an; am; am = an) {
|
||||
an = am.nextSibling;
|
||||
ap.appendChild(am);
|
||||
}
|
||||
} return aq; } var ah = ai(ak.nextSibling, 0); for (var aj; (aj = ah.parentNode) && aj.nodeType === 1;) {
|
||||
ah = aj;
|
||||
} W.push(ah); } for (var Y = 0; Y < W.length; ++Y) {
|
||||
ae(W[Y]);
|
||||
} if (ag === (ag | 0)) {
|
||||
W[0].setAttribute("value", ag);
|
||||
} var aa = ac.createElement("OL"); aa.className = "linenums"; var X = Math.max(0, ((ag - 1)) | 0) || 0; for (var Y = 0, T = W.length; Y < T; ++Y) {
|
||||
af = W[Y];
|
||||
af.className = "L" + ((Y + X) % 10);
|
||||
if (!af.firstChild) {
|
||||
af.appendChild(ac.createTextNode("\xA0"));
|
||||
}
|
||||
aa.appendChild(af);
|
||||
} V.appendChild(aa); } function D(ac) { var aj = /\bMSIE\b/.test(navigator.userAgent); var am = /\n/g; var al = ac.sourceCode; var an = al.length; var V = 0; var aa = ac.spans; var T = aa.length; var ah = 0; var X = ac.decorations; var Y = X.length; var Z = 0; X[Y] = an; var ar, aq; for (aq = ar = 0; aq < Y;) {
|
||||
if (X[aq] !== X[aq + 2]) {
|
||||
X[ar++] = X[aq++];
|
||||
X[ar++] = X[aq++];
|
||||
}
|
||||
else {
|
||||
aq += 2;
|
||||
}
|
||||
} Y = ar; for (aq = ar = 0; aq < Y;) {
|
||||
var at = X[aq];
|
||||
var ab = X[aq + 1];
|
||||
var W = aq + 2;
|
||||
while (W + 2 <= Y && X[W + 1] === ab) {
|
||||
W += 2;
|
||||
}
|
||||
X[ar++] = at;
|
||||
X[ar++] = ab;
|
||||
aq = W;
|
||||
} Y = X.length = ar; var ae = null; while (ah < T) {
|
||||
var af = aa[ah];
|
||||
var S = aa[ah + 2] || an;
|
||||
var ag = X[Z];
|
||||
var ap = X[Z + 2] || an;
|
||||
var W = Math.min(S, ap);
|
||||
var ak = aa[ah + 1];
|
||||
var U;
|
||||
if (ak.nodeType !== 1 && (U = al.substring(V, W))) {
|
||||
if (aj) {
|
||||
U = U.replace(am, "\r");
|
||||
}
|
||||
ak.nodeValue = U;
|
||||
var ai = ak.ownerDocument;
|
||||
var ao = ai.createElement("SPAN");
|
||||
ao.className = X[Z + 1];
|
||||
var ad = ak.parentNode;
|
||||
ad.replaceChild(ao, ak);
|
||||
ao.appendChild(ak);
|
||||
if (V < S) {
|
||||
aa[ah + 1] = ak = ai.createTextNode(al.substring(W, S));
|
||||
ad.insertBefore(ak, ao.nextSibling);
|
||||
}
|
||||
}
|
||||
V = W;
|
||||
if (V >= S) {
|
||||
ah += 2;
|
||||
}
|
||||
if (V >= ap) {
|
||||
Z += 2;
|
||||
}
|
||||
} } var t = {}; function c(U, V) { for (var S = V.length; --S >= 0;) {
|
||||
var T = V[S];
|
||||
if (!t.hasOwnProperty(T)) {
|
||||
t[T] = U;
|
||||
}
|
||||
else {
|
||||
if (window.console) {
|
||||
console.warn("cannot override language handler %s", T);
|
||||
}
|
||||
}
|
||||
} } function q(T, S) { if (!(T && t.hasOwnProperty(T))) {
|
||||
T = /^\s*</.test(S) ? "default-markup" : "default-code";
|
||||
} return t[T]; } c(K, ["default-code"]); c(g([], [[F, /^[^<?]+/], [E, /^<!\w[^>]*(?:>|$)/], [j, /^<\!--[\s\S]*?(?:-\->|$)/], ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], ["lang-", /^<%([\s\S]+?)(?:%>|$)/], [L, /^(?:<[%?]|[%?]>)/], ["lang-", /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ["lang-js", /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ["lang-css", /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i], ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i]]), ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"]); c(g([[F, /^[\s]+/, null, " \t\r\n"], [n, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, "\"'"]], [[m, /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i], [P, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], ["lang-uq.val", /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], [L, /^[=<>\/]+/], ["lang-js", /^on\w+\s*=\s*\"([^\"]+)\"/i], ["lang-js", /^on\w+\s*=\s*\'([^\']+)\'/i], ["lang-js", /^on\w+\s*=\s*([^\"\'>\s]+)/i], ["lang-css", /^style\s*=\s*\"([^\"]+)\"/i], ["lang-css", /^style\s*=\s*\'([^\']+)\'/i], ["lang-css", /^style\s*=\s*([^\"\'>\s]+)/i]]), ["in.tag"]); c(g([], [[n, /^[\s\S]+/]]), ["uq.val"]); c(i({ keywords: l, hashComments: true, cStyleComments: true, types: e }), ["c", "cc", "cpp", "cxx", "cyc", "m"]); c(i({ keywords: "null,true,false" }), ["json"]); c(i({ keywords: R, hashComments: true, cStyleComments: true, verbatimStrings: true, types: e }), ["cs"]); c(i({ keywords: x, cStyleComments: true }), ["java"]); c(i({ keywords: H, hashComments: true, multiLineStrings: true }), ["bsh", "csh", "sh"]); c(i({ keywords: I, hashComments: true, multiLineStrings: true, tripleQuotedStrings: true }), ["cv", "py"]); c(i({ keywords: s, hashComments: true, multiLineStrings: true, regexLiterals: true }), ["perl", "pl", "pm"]); c(i({ keywords: f, hashComments: true, multiLineStrings: true, regexLiterals: true }), ["rb"]); c(i({ keywords: w, cStyleComments: true, regexLiterals: true }), ["js"]); c(i({ keywords: r, hashComments: 3, cStyleComments: true, multilineStrings: true, tripleQuotedStrings: true, regexLiterals: true }), ["coffee"]); c(g([], [[C, /^[\s\S]+/]]), ["regex"]); function d(V) { var U = V.langExtension; try {
|
||||
var S = a(V.sourceNode);
|
||||
var T = S.sourceCode;
|
||||
V.sourceCode = T;
|
||||
V.spans = S.spans;
|
||||
V.basePos = 0;
|
||||
q(U, T)(V);
|
||||
D(V);
|
||||
}
|
||||
catch (W) {
|
||||
if ("console" in window) {
|
||||
console.log(W && W.stack ? W.stack : W);
|
||||
}
|
||||
} } function y(W, V, U) { var S = document.createElement("PRE"); S.innerHTML = W; if (U) {
|
||||
Q(S, U);
|
||||
} var T = { langExtension: V, numberLines: U, sourceNode: S }; d(T); return S.innerHTML; } function b(ad) { function Y(af) { return document.getElementsByTagName(af); } var ac = [Y("pre"), Y("code"), Y("xmp")]; var T = []; for (var aa = 0; aa < ac.length; ++aa) {
|
||||
for (var Z = 0, V = ac[aa].length; Z < V; ++Z) {
|
||||
T.push(ac[aa][Z]);
|
||||
}
|
||||
} ac = null; var W = Date; if (!W.now) {
|
||||
W = { now: function () { return +(new Date); } };
|
||||
} var X = 0; var S; var ab = /\blang(?:uage)?-([\w.]+)(?!\S)/; var ae = /\bprettyprint\b/; function U() { var ag = (window.PR_SHOULD_USE_CONTINUATION ? W.now() + 250 : Infinity); for (; X < T.length && W.now() < ag; X++) {
|
||||
var aj = T[X];
|
||||
var ai = aj.className;
|
||||
if (ai.indexOf("prettyprint") >= 0) {
|
||||
var ah = ai.match(ab);
|
||||
var am;
|
||||
if (!ah && (am = o(aj)) && "CODE" === am.tagName) {
|
||||
ah = am.className.match(ab);
|
||||
}
|
||||
if (ah) {
|
||||
ah = ah[1];
|
||||
}
|
||||
var al = false;
|
||||
for (var ak = aj.parentNode; ak; ak = ak.parentNode) {
|
||||
if ((ak.tagName === "pre" || ak.tagName === "code" || ak.tagName === "xmp") && ak.className && ak.className.indexOf("prettyprint") >= 0) {
|
||||
al = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!al) {
|
||||
var af = aj.className.match(/\blinenums\b(?::(\d+))?/);
|
||||
af = af ? af[1] && af[1].length ? +af[1] : true : false;
|
||||
if (af) {
|
||||
Q(aj, af);
|
||||
}
|
||||
S = { langExtension: ah, sourceNode: aj, numberLines: af };
|
||||
d(S);
|
||||
}
|
||||
}
|
||||
} if (X < T.length) {
|
||||
setTimeout(U, 250);
|
||||
}
|
||||
else {
|
||||
if (ad) {
|
||||
ad();
|
||||
}
|
||||
} } U(); } window.prettyPrintOne = y; window.prettyPrint = b; window.PR = { createSimpleLexer: g, registerLangHandler: c, sourceDecorator: i, PR_ATTRIB_NAME: P, PR_ATTRIB_VALUE: n, PR_COMMENT: j, PR_DECLARATION: E, PR_KEYWORD: z, PR_LITERAL: G, PR_NOCODE: N, PR_PLAIN: F, PR_PUNCTUATION: L, PR_SOURCE: J, PR_STRING: C, PR_TAG: m, PR_TYPE: O }; })();
|
||||
PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_DECLARATION, /^<!\w[^>]*(?:>|$)/], [PR.PR_COMMENT, /^<\!--[\s\S]*?(?:-\->|$)/], [PR.PR_PUNCTUATION, /^(?:<[%?]|[%?]>)/], ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], ["lang-", /^<%([\s\S]+?)(?:%>|$)/], ["lang-", /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ["lang-handlebars", /^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ["lang-js", /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ["lang-css", /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i], ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i], [PR.PR_DECLARATION, /^{{[#^>/]?\s*[\w.][^}]*}}/], [PR.PR_DECLARATION, /^{{&?\s*[\w.][^}]*}}/], [PR.PR_DECLARATION, /^{{{>?\s*[\w.][^}]*}}}/], [PR.PR_COMMENT, /^{{![^}]*}}/]]), ["handlebars", "hbs"]);
|
||||
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN, /^[ \t\r\n\f]+/, null, " \t\r\n\f"]], [[PR.PR_STRING, /^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, null], [PR.PR_STRING, /^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, null], ["lang-css-str", /^url\(([^\)\"\']*)\)/i], [PR.PR_KEYWORD, /^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i, null], ["lang-css-kw", /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i], [PR.PR_COMMENT, /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//], [PR.PR_COMMENT, /^(?:<!--|-->)/], [PR.PR_LITERAL, /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i], [PR.PR_LITERAL, /^#(?:[0-9a-f]{3}){1,2}/i], [PR.PR_PLAIN, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i], [PR.PR_PUNCTUATION, /^[^\s\w\'\"]+/]]), ["css"]);
|
||||
PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_KEYWORD, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]), ["css-kw"]);
|
||||
PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_STRING, /^[^\)\"\']+/]]), ["css-str"]);
|
||||
//# sourceMappingURL=prettify.js.map
|
||||
1
dist/coverage/prettify.js.map
vendored
Normal file
1
dist/coverage/prettify.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
113
dist/coverage/sorter.js
vendored
Normal file
113
dist/coverage/sorter.js
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
var addSorting = (function () {
|
||||
"use strict";
|
||||
var cols, currentSort = {
|
||||
index: 0,
|
||||
desc: false
|
||||
};
|
||||
function getTable() { return document.querySelector('.coverage-summary'); }
|
||||
function getTableHeader() { return getTable().querySelector('thead tr'); }
|
||||
function getTableBody() { return getTable().querySelector('tbody'); }
|
||||
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
|
||||
function loadColumns() {
|
||||
var colNodes = getTableHeader().querySelectorAll('th'), colNode, cols = [], col, i;
|
||||
for (i = 0; i < colNodes.length; i += 1) {
|
||||
colNode = colNodes[i];
|
||||
col = {
|
||||
key: colNode.getAttribute('data-col'),
|
||||
sortable: !colNode.getAttribute('data-nosort'),
|
||||
type: colNode.getAttribute('data-type') || 'string'
|
||||
};
|
||||
cols.push(col);
|
||||
if (col.sortable) {
|
||||
col.defaultDescSort = col.type === 'number';
|
||||
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
|
||||
}
|
||||
}
|
||||
return cols;
|
||||
}
|
||||
function loadRowData(tableRow) {
|
||||
var tableCols = tableRow.querySelectorAll('td'), colNode, col, data = {}, i, val;
|
||||
for (i = 0; i < tableCols.length; i += 1) {
|
||||
colNode = tableCols[i];
|
||||
col = cols[i];
|
||||
val = colNode.getAttribute('data-value');
|
||||
if (col.type === 'number') {
|
||||
val = Number(val);
|
||||
}
|
||||
data[col.key] = val;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
function loadData() {
|
||||
var rows = getTableBody().querySelectorAll('tr'), i;
|
||||
for (i = 0; i < rows.length; i += 1) {
|
||||
rows[i].data = loadRowData(rows[i]);
|
||||
}
|
||||
}
|
||||
function sortByIndex(index, desc) {
|
||||
var key = cols[index].key, sorter = function (a, b) {
|
||||
a = a.data[key];
|
||||
b = b.data[key];
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
}, finalSorter = sorter, tableBody = document.querySelector('.coverage-summary tbody'), rowNodes = tableBody.querySelectorAll('tr'), rows = [], i;
|
||||
if (desc) {
|
||||
finalSorter = function (a, b) {
|
||||
return -1 * sorter(a, b);
|
||||
};
|
||||
}
|
||||
for (i = 0; i < rowNodes.length; i += 1) {
|
||||
rows.push(rowNodes[i]);
|
||||
tableBody.removeChild(rowNodes[i]);
|
||||
}
|
||||
rows.sort(finalSorter);
|
||||
for (i = 0; i < rows.length; i += 1) {
|
||||
tableBody.appendChild(rows[i]);
|
||||
}
|
||||
}
|
||||
function removeSortIndicators() {
|
||||
var col = getNthColumn(currentSort.index), cls = col.className;
|
||||
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
||||
col.className = cls;
|
||||
}
|
||||
function addSortIndicators() {
|
||||
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
|
||||
}
|
||||
function enableUI() {
|
||||
var i, el, ithSorter = function ithSorter(i) {
|
||||
var col = cols[i];
|
||||
return function () {
|
||||
var desc = col.defaultDescSort;
|
||||
if (currentSort.index === i) {
|
||||
desc = !currentSort.desc;
|
||||
}
|
||||
sortByIndex(i, desc);
|
||||
removeSortIndicators();
|
||||
currentSort.index = i;
|
||||
currentSort.desc = desc;
|
||||
addSortIndicators();
|
||||
};
|
||||
};
|
||||
for (i = 0; i < cols.length; i += 1) {
|
||||
if (cols[i].sortable) {
|
||||
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
||||
if (el.addEventListener) {
|
||||
el.addEventListener('click', ithSorter(i));
|
||||
}
|
||||
else {
|
||||
el.attachEvent('onclick', ithSorter(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return function () {
|
||||
if (!getTable()) {
|
||||
return;
|
||||
}
|
||||
cols = loadColumns();
|
||||
loadData(cols);
|
||||
addSortIndicators();
|
||||
enableUI();
|
||||
};
|
||||
})();
|
||||
window.addEventListener('load', addSorting);
|
||||
//# sourceMappingURL=sorter.js.map
|
||||
1
dist/coverage/sorter.js.map
vendored
Normal file
1
dist/coverage/sorter.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sorter.js","sourceRoot":"","sources":["../../coverage/sorter.js"],"names":[],"mappings":"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"}
|
||||
47
dist/example/adapters/rabbitmq-client.js
vendored
Normal file
47
dist/example/adapters/rabbitmq-client.js
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const amqp = require("amqplib");
|
||||
const index_1 = require("../../src/microservices/index");
|
||||
class RabbitMQClient extends index_1.ClientProxy {
|
||||
constructor(host, queue) {
|
||||
super();
|
||||
this.host = host;
|
||||
this.queue = queue;
|
||||
}
|
||||
sendSingleMessage(msg, callback) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const server = yield amqp.connect(this.host);
|
||||
const channel = yield server.createChannel();
|
||||
const sub = this.getSubscriberQueue();
|
||||
const pub = this.getPublisherQueue();
|
||||
channel.assertQueue(sub, { durable: false });
|
||||
channel.assertQueue(pub, { durable: false });
|
||||
channel.consume(pub, (message) => this.handleMessage(message, server, callback), { noAck: true });
|
||||
channel.sendToQueue(sub, Buffer.from(JSON.stringify(msg)));
|
||||
});
|
||||
}
|
||||
handleMessage(message, server, callback) {
|
||||
const { content } = message;
|
||||
const { err, response, disposed } = JSON.parse(content.toString());
|
||||
if (disposed) {
|
||||
server.close();
|
||||
}
|
||||
callback(err, response, disposed);
|
||||
}
|
||||
getPublisherQueue() {
|
||||
return `${this.queue}_pub`;
|
||||
}
|
||||
getSubscriberQueue() {
|
||||
return `${this.queue}_sub`;
|
||||
}
|
||||
}
|
||||
exports.RabbitMQClient = RabbitMQClient;
|
||||
//# sourceMappingURL=rabbitmq-client.js.map
|
||||
1
dist/example/adapters/rabbitmq-client.js.map
vendored
Normal file
1
dist/example/adapters/rabbitmq-client.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"rabbitmq-client.js","sourceRoot":"","sources":["../../../example/adapters/rabbitmq-client.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,gCAAgC;AAChC,yDAA4D;AAE5D,oBAA4B,SAAQ,mBAAW;IAC3C,YACqB,IAAY,EACZ,KAAa;QAC1B,KAAK,EAAE,CAAC;QAFK,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAQ;IAE9B,CAAC;IAEW,iBAAiB,CAAC,GAAG,EAAE,QAAmD;;YACtF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;YAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACtC,MAAM,GAAG,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAErC,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;YAC7C,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;YAE7C,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YAClG,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC/D,CAAC;KAAA;IAEO,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAmD;QACtF,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YACX,MAAM,CAAC,KAAK,EAAE,CAAC;QACnB,CAAC;QACD,QAAQ,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IAEO,iBAAiB;QACrB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC;IAC/B,CAAC;IAEO,kBAAkB;QACtB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC;IAC/B,CAAC;CACJ;AApCD,wCAoCC"}
|
||||
56
dist/example/adapters/rabbitmq-server.js
vendored
Normal file
56
dist/example/adapters/rabbitmq-server.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const amqp = require("amqplib");
|
||||
const microservices_1 = require("@nestjs/microservices");
|
||||
class RabbitMQServer extends microservices_1.Server {
|
||||
constructor(host, queue) {
|
||||
super();
|
||||
this.host = host;
|
||||
this.queue = queue;
|
||||
this.server = null;
|
||||
this.channel = null;
|
||||
}
|
||||
listen(callback) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.init();
|
||||
this.channel.consume(`${this.queue}_sub`, this.handleMessage.bind(this), { noAck: true });
|
||||
});
|
||||
}
|
||||
close() {
|
||||
this.channel && this.channel.close();
|
||||
this.server && this.server.close();
|
||||
}
|
||||
handleMessage(message) {
|
||||
const { content } = message;
|
||||
const msg = JSON.parse(content.toString());
|
||||
const handlers = this.getHandlers();
|
||||
const pattern = JSON.stringify(msg.pattern);
|
||||
if (!this.messageHandlers[pattern]) {
|
||||
return;
|
||||
}
|
||||
const handler = this.messageHandlers[pattern];
|
||||
const response$ = handler(msg.data);
|
||||
response$ && this.send(response$, (data) => this.sendMessage(data));
|
||||
}
|
||||
sendMessage(message) {
|
||||
this.channel.sendToQueue(`${this.queue}_pub`, Buffer.from(JSON.stringify(message)));
|
||||
}
|
||||
init() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
this.server = yield amqp.connect(this.host);
|
||||
this.channel = yield this.server.createChannel();
|
||||
this.channel.assertQueue(`${this.queue}_sub`, { durable: false });
|
||||
this.channel.assertQueue(`${this.queue}_pub`, { durable: false });
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.RabbitMQServer = RabbitMQServer;
|
||||
//# sourceMappingURL=rabbitmq-server.js.map
|
||||
1
dist/example/adapters/rabbitmq-server.js.map
vendored
Normal file
1
dist/example/adapters/rabbitmq-server.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"rabbitmq-server.js","sourceRoot":"","sources":["../../../example/adapters/rabbitmq-server.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,gCAAgC;AAChC,yDAAwE;AAGxE,oBAA4B,SAAQ,sBAAM;IAItC,YACqB,IAAY,EACZ,KAAa;QAC1B,KAAK,EAAE,CAAC;QAFK,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAQ;QAL1B,WAAM,GAAG,IAAI,CAAC;QACd,YAAO,GAAG,IAAI,CAAC;IAMnB,CAAC;IAEQ,MAAM,CAAC,QAAoB;;YACpC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9F,CAAC;KAAA;IAEM,KAAK;QACR,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACvC,CAAC;IAEO,aAAa,CAAC,OAAO;QACzB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC5C,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACjC,MAAM,CAAC;QACX,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAoB,CAAC;QACvD,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,CAAC;IAEO,WAAW,CAAC,OAAO;QACvB,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IAEa,IAAI;;YACd,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;YACjD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;YAClE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACtE,CAAC;KAAA;CACJ;AA7CD,wCA6CC"}
|
||||
20
dist/example/adapters/ws-adapter.js
vendored
Normal file
20
dist/example/adapters/ws-adapter.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const WebSocket = require("ws");
|
||||
class WsAdapter {
|
||||
create(port) {
|
||||
return new WebSocket.Server({ port });
|
||||
}
|
||||
bindClientConnect(server, callback) {
|
||||
server.on('connection', callback);
|
||||
}
|
||||
bindMessageHandlers(client, handlers) {
|
||||
client.on('message', (buffer) => {
|
||||
const data = JSON.parse(buffer);
|
||||
const { type } = data;
|
||||
const messageHandler = handlers.find((handler) => handler.message === type);
|
||||
messageHandler && messageHandler.callback(data);
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ws-adapter.js.map
|
||||
1
dist/example/adapters/ws-adapter.js.map
vendored
Normal file
1
dist/example/adapters/ws-adapter.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ws-adapter.js","sourceRoot":"","sources":["../../../example/adapters/ws-adapter.ts"],"names":[],"mappings":";;AAAA,gCAAgC;AAIhC;IACW,MAAM,CAAC,IAAY;QACtB,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;IACM,iBAAiB,CAAC,MAAM,EAAE,QAAkC;QAC/D,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IACM,mBAAmB,CAAC,MAAM,EAAE,QAAoC;QACnE,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,MAAM;YACxB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAChC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;YACtB,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;YAC5E,cAAc,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
||||
24
dist/example/common/exception.filter.js
vendored
Normal file
24
dist/example/common/exception.filter.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const index_1 = require("../../src/index");
|
||||
class CustomException {
|
||||
}
|
||||
exports.CustomException = CustomException;
|
||||
let CustomExceptionFilter = class CustomExceptionFilter {
|
||||
catch(exception, response) {
|
||||
response.status(500).json({
|
||||
message: 'Custom exception message.',
|
||||
});
|
||||
}
|
||||
};
|
||||
CustomExceptionFilter = __decorate([
|
||||
index_1.Catch(CustomException)
|
||||
], CustomExceptionFilter);
|
||||
exports.CustomExceptionFilter = CustomExceptionFilter;
|
||||
//# sourceMappingURL=exception.filter.js.map
|
||||
1
dist/example/common/exception.filter.js.map
vendored
Normal file
1
dist/example/common/exception.filter.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"exception.filter.js","sourceRoot":"","sources":["../../../example/common/exception.filter.ts"],"names":[],"mappings":";;;;;;;;AACA,2CAAyD;AAEzD;CAAgC;AAAhC,0CAAgC;AAGhC,IAAa,qBAAqB,GAAlC;IACW,KAAK,CAAC,SAA0B,EAAE,QAAkB;QACvD,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACtB,OAAO,EAAE,2BAA2B;SACvC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AANY,qBAAqB;IADjC,aAAK,CAAC,eAAe,CAAC;GACV,qBAAqB,CAMjC;AANY,sDAAqB"}
|
||||
29
dist/example/common/validator.pipe.js
vendored
Normal file
29
dist/example/common/validator.pipe.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const common_1 = require("@nestjs/common");
|
||||
let ValidatorPipe = class ValidatorPipe {
|
||||
transform(value, metadata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return value;
|
||||
});
|
||||
}
|
||||
};
|
||||
ValidatorPipe = __decorate([
|
||||
common_1.Pipe()
|
||||
], ValidatorPipe);
|
||||
exports.ValidatorPipe = ValidatorPipe;
|
||||
//# sourceMappingURL=validator.pipe.js.map
|
||||
1
dist/example/common/validator.pipe.js.map
vendored
Normal file
1
dist/example/common/validator.pipe.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"validator.pipe.js","sourceRoot":"","sources":["../../../example/common/validator.pipe.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAuE;AAIvE,IAAa,aAAa,GAA1B;IACiB,SAAS,CAAC,KAAK,EAAE,QAA0B;;YACpD,MAAM,CAAC,KAAK,CAAC;QACjB,CAAC;KAAA;CACJ,CAAA;AAJY,aAAa;IADzB,aAAI,EAAE;GACM,aAAa,CAIzB;AAJY,sCAAa"}
|
||||
23
dist/example/modules/app.module.js
vendored
Normal file
23
dist/example/modules/app.module.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const _1 = require("./../../src/");
|
||||
const users_module_1 = require("./users/users.module");
|
||||
const client_controller_1 = require("./client/client.controller");
|
||||
let ApplicationModule = class ApplicationModule {
|
||||
};
|
||||
ApplicationModule = __decorate([
|
||||
_1.Module({
|
||||
modules: [users_module_1.UsersModule],
|
||||
controllers: [
|
||||
client_controller_1.ClientController,
|
||||
],
|
||||
})
|
||||
], ApplicationModule);
|
||||
exports.ApplicationModule = ApplicationModule;
|
||||
//# sourceMappingURL=app.module.js.map
|
||||
1
dist/example/modules/app.module.js.map
vendored
Normal file
1
dist/example/modules/app.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../../example/modules/app.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,mCAAsC;AACtC,uDAAmD;AACnD,kEAA8D;AAU9D,IAAa,iBAAiB,GAA9B;CAAiC,CAAA;AAApB,iBAAiB;IAN7B,SAAM,CAAC;QACJ,OAAO,EAAE,CAAE,0BAAW,CAAE;QACxB,WAAW,EAAE;YACT,oCAAgB;SACnB;KACJ,CAAC;GACW,iBAAiB,CAAG;AAApB,8CAAiB"}
|
||||
59
dist/example/modules/client/client.controller.js
vendored
Normal file
59
dist/example/modules/client/client.controller.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const index_1 = require("../../../src/index");
|
||||
const controller_decorator_1 = require("../../../src/common/utils/decorators/controller.decorator");
|
||||
const client_decorator_1 = require("../../../src/microservices/utils/client.decorator");
|
||||
const request_mapping_decorator_1 = require("../../../src/common/utils/decorators/request-mapping.decorator");
|
||||
const client_proxy_1 = require("../../../src/microservices/client/client-proxy");
|
||||
const rxjs_1 = require("rxjs");
|
||||
const transport_enum_1 = require("../../../src/microservices/enums/transport.enum");
|
||||
const index_2 = require("../../../src/microservices/index");
|
||||
require("rxjs/add/operator/catch");
|
||||
const MicroserviceClient = { transport: transport_enum_1.Transport.TCP };
|
||||
let ClientController = class ClientController {
|
||||
sendMessage(res) {
|
||||
const pattern = { command: 'add' };
|
||||
const data = [1, 2, 3, 4, 5];
|
||||
this.client.send(pattern, data)
|
||||
.catch((err) => rxjs_1.Observable.empty())
|
||||
.subscribe((result) => res.status(200).json({ result }));
|
||||
}
|
||||
add(data) {
|
||||
const numbers = data || [];
|
||||
return rxjs_1.Observable.of(numbers.reduce((a, b) => a + b));
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
client_decorator_1.Client(MicroserviceClient),
|
||||
__metadata("design:type", client_proxy_1.ClientProxy)
|
||||
], ClientController.prototype, "client", void 0);
|
||||
__decorate([
|
||||
request_mapping_decorator_1.Get('client'),
|
||||
__param(0, index_1.Res()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], ClientController.prototype, "sendMessage", null);
|
||||
__decorate([
|
||||
index_2.MessagePattern({ command: 'add' }),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", rxjs_1.Observable)
|
||||
], ClientController.prototype, "add", null);
|
||||
ClientController = __decorate([
|
||||
controller_decorator_1.Controller()
|
||||
], ClientController);
|
||||
exports.ClientController = ClientController;
|
||||
//# sourceMappingURL=client.controller.js.map
|
||||
1
dist/example/modules/client/client.controller.js.map
vendored
Normal file
1
dist/example/modules/client/client.controller.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"client.controller.js","sourceRoot":"","sources":["../../../../example/modules/client/client.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,8CAAyC;AACzC,oGAAuF;AACvF,wFAA2E;AAC3E,8GAAqF;AACrF,iFAA6E;AAC7E,+BAAkC;AAClC,oFAA4E;AAC5E,4DAAkE;AAClE,mCAAiC;AAEjC,MAAM,kBAAkB,GAAG,EAAE,SAAS,EAAE,0BAAS,CAAC,GAAG,EAAE,CAAC;AAGxD,IAAa,gBAAgB,GAA7B;IAKW,WAAW,CAAQ,GAAa;QACnC,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,CAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAE,CAAC;QAE/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;aAC1B,KAAK,CAAC,CAAC,GAAG,KAAK,iBAAU,CAAC,KAAK,EAAE,CAAC;aAClC,SAAS,CAAC,CAAC,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;IAGM,GAAG,CAAC,IAAI;QACX,MAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QAC3B,MAAM,CAAC,iBAAU,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;CACJ,CAAA;AAjBG;IADC,yBAAM,CAAC,kBAAkB,CAAC;8BACX,0BAAW;gDAAC;AAG5B;IADC,+BAAG,CAAC,QAAQ,CAAC;IACM,WAAA,WAAG,EAAE,CAAA;;;;mDAOxB;AAGD;IADC,sBAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;;oCACjB,iBAAU;2CAG3B;AAlBQ,gBAAgB;IAD5B,iCAAU,EAAE;GACA,gBAAgB,CAmB5B;AAnBY,4CAAgB"}
|
||||
22
dist/example/modules/shared/shared.module.js
vendored
Normal file
22
dist/example/modules/shared/shared.module.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const module_decorator_1 = require("../../../src/common/utils/decorators/module.decorator");
|
||||
const chat_gateway_1 = require("../users/chat.gateway");
|
||||
const index_1 = require("../../../src/index");
|
||||
let SharedModule = class SharedModule {
|
||||
};
|
||||
SharedModule = __decorate([
|
||||
index_1.Shared(),
|
||||
module_decorator_1.Module({
|
||||
components: [chat_gateway_1.ChatGateway],
|
||||
exports: [chat_gateway_1.ChatGateway],
|
||||
})
|
||||
], SharedModule);
|
||||
exports.SharedModule = SharedModule;
|
||||
//# sourceMappingURL=shared.module.js.map
|
||||
1
dist/example/modules/shared/shared.module.js.map
vendored
Normal file
1
dist/example/modules/shared/shared.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shared.module.js","sourceRoot":"","sources":["../../../../example/modules/shared/shared.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,4FAA+E;AAC/E,wDAAoD;AACpD,8CAA4C;AAO5C,IAAa,YAAY,GAAzB;CAA4B,CAAA;AAAf,YAAY;IALxB,cAAM,EAAE;IACR,yBAAM,CAAC;QACJ,UAAU,EAAE,CAAE,0BAAW,CAAE;QAC3B,OAAO,EAAE,CAAE,0BAAW,CAAE;KAC3B,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
|
||||
48
dist/example/modules/users/auth.middleware.js
vendored
Normal file
48
dist/example/modules/users/auth.middleware.js
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const users_service_1 = require("./users.service");
|
||||
const http_exception_1 = require("../../../src/core/exceptions/http-exception");
|
||||
const utils_1 = require("../../../src/common/utils");
|
||||
let AuthMiddleware = class AuthMiddleware {
|
||||
constructor(usersService) {
|
||||
this.usersService = usersService;
|
||||
}
|
||||
resolve() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const xd = yield Promise.resolve(30);
|
||||
return (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
||||
const username = req.headers['x-access-token'];
|
||||
const users = yield this.usersService.getAllUsers();
|
||||
const user = users.find(({ name }) => name === username);
|
||||
if (!user) {
|
||||
throw new http_exception_1.HttpException('User not found.', 401);
|
||||
}
|
||||
req.user = user;
|
||||
next();
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
AuthMiddleware = __decorate([
|
||||
utils_1.Middleware(),
|
||||
__metadata("design:paramtypes", [users_service_1.UsersService])
|
||||
], AuthMiddleware);
|
||||
exports.AuthMiddleware = AuthMiddleware;
|
||||
//# sourceMappingURL=auth.middleware.js.map
|
||||
1
dist/example/modules/users/auth.middleware.js.map
vendored
Normal file
1
dist/example/modules/users/auth.middleware.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"auth.middleware.js","sourceRoot":"","sources":["../../../../example/modules/users/auth.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,mDAA+C;AAC/C,gFAA4E;AAC5E,qDAAuD;AAIvD,IAAa,cAAc,GAA3B;IACI,YAAoB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAErC,OAAO;;YAChB,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACrC,MAAM,CAAC,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI;gBACxB,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;gBAC/C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;gBACpD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI,KAAK,QAAQ,CAAC,CAAC;gBACzD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;oBACR,MAAM,IAAI,8BAAa,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;gBACpD,CAAC;gBACD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,EAAE,CAAC;YACX,CAAC,CAAA,CAAC;QACN,CAAC;KAAA;CACJ,CAAA;AAhBY,cAAc;IAD1B,kBAAU,EAAE;qCAEyB,4BAAY;GADrC,cAAc,CAgB1B;AAhBY,wCAAc"}
|
||||
40
dist/example/modules/users/chat.gateway.js
vendored
Normal file
40
dist/example/modules/users/chat.gateway.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const socket_gateway_decorator_1 = require("../../../src/websockets/utils/socket-gateway.decorator");
|
||||
const subscribe_message_decorator_1 = require("../../../src/websockets/utils/subscribe-message.decorator");
|
||||
const gateway_server_decorator_1 = require("../../../src/websockets/utils/gateway-server.decorator");
|
||||
const chat_middleware_1 = require("./chat.middleware");
|
||||
let ChatGateway = class ChatGateway {
|
||||
afterInit(server) { }
|
||||
handleConnection(client) { }
|
||||
onMessage(client, data) {
|
||||
client.emit('event', data);
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
gateway_server_decorator_1.WebSocketServer(),
|
||||
__metadata("design:type", Object)
|
||||
], ChatGateway.prototype, "server", void 0);
|
||||
__decorate([
|
||||
subscribe_message_decorator_1.SubscribeMessage('event'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, Object]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], ChatGateway.prototype, "onMessage", null);
|
||||
ChatGateway = __decorate([
|
||||
socket_gateway_decorator_1.WebSocketGateway({
|
||||
port: 2000,
|
||||
middlewares: [chat_middleware_1.ChatMiddleware],
|
||||
})
|
||||
], ChatGateway);
|
||||
exports.ChatGateway = ChatGateway;
|
||||
//# sourceMappingURL=chat.gateway.js.map
|
||||
1
dist/example/modules/users/chat.gateway.js.map
vendored
Normal file
1
dist/example/modules/users/chat.gateway.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"chat.gateway.js","sourceRoot":"","sources":["../../../../example/modules/users/chat.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qGAA0F;AAC1F,2GAA6F;AAC7F,qGAAyF;AAEzF,uDAAmD;AAMnD,IAAa,WAAW,GAAxB;IAGW,SAAS,CAAC,MAAM,IAAG,CAAC;IACpB,gBAAgB,CAAC,MAAM,IAAG,CAAC;IAG3B,SAAS,CAAC,MAAM,EAAE,IAAI;QACzB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AATsB;IAAlB,0CAAe,EAAE;;2CAAgB;AAMlC;IADC,8CAAgB,CAAC,OAAO,CAAC;;;;4CAGzB;AATQ,WAAW;IAJvB,2CAAgB,CAAC;QACd,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,CAAC,gCAAc,CAAC;KAChC,CAAC;GACW,WAAW,CAUvB;AAVY,kCAAW"}
|
||||
22
dist/example/modules/users/chat.middleware.js
vendored
Normal file
22
dist/example/modules/users/chat.middleware.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const index_1 = require("../../../src/index");
|
||||
let ChatMiddleware = class ChatMiddleware {
|
||||
resolve() {
|
||||
return (socket, next) => {
|
||||
console.log('Authorization...');
|
||||
next();
|
||||
};
|
||||
}
|
||||
};
|
||||
ChatMiddleware = __decorate([
|
||||
index_1.Middleware()
|
||||
], ChatMiddleware);
|
||||
exports.ChatMiddleware = ChatMiddleware;
|
||||
//# sourceMappingURL=chat.middleware.js.map
|
||||
1
dist/example/modules/users/chat.middleware.js.map
vendored
Normal file
1
dist/example/modules/users/chat.middleware.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"chat.middleware.js","sourceRoot":"","sources":["../../../../example/modules/users/chat.middleware.ts"],"names":[],"mappings":";;;;;;;;AAEA,8CAAgD;AAGhD,IAAa,cAAc,GAA3B;IACW,OAAO;QACV,MAAM,CAAC,CAAC,MAAM,EAAE,IAAI;YAChB,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACX,CAAC,CAAC;IACN,CAAC;CACJ,CAAA;AAPY,cAAc;IAD1B,kBAAU,EAAE;GACA,cAAc,CAO1B;AAPY,wCAAc"}
|
||||
19
dist/example/modules/users/roles.guard.js
vendored
Normal file
19
dist/example/modules/users/roles.guard.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const common_1 = require("@nestjs/common");
|
||||
let RolesGuard = class RolesGuard {
|
||||
canActivate() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
RolesGuard = __decorate([
|
||||
common_1.Guard()
|
||||
], RolesGuard);
|
||||
exports.RolesGuard = RolesGuard;
|
||||
//# sourceMappingURL=roles.guard.js.map
|
||||
1
dist/example/modules/users/roles.guard.js.map
vendored
Normal file
1
dist/example/modules/users/roles.guard.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"roles.guard.js","sourceRoot":"","sources":["../../../../example/modules/users/roles.guard.ts"],"names":[],"mappings":";;;;;;;;AAAA,2CAAoD;AAGpD,IAAa,UAAU,GAAvB;IACW,WAAW;QACd,MAAM,CAAC,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAJY,UAAU;IADtB,cAAK,EAAE;GACK,UAAU,CAItB;AAJY,gCAAU"}
|
||||
85
dist/example/modules/users/users.controller.js
vendored
Normal file
85
dist/example/modules/users/users.controller.js
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const users_service_1 = require("./users.service");
|
||||
const _1 = require("./../../../src/");
|
||||
const request_mapping_decorator_1 = require("../../../src/common/utils/decorators/request-mapping.decorator");
|
||||
const use_pipes_decorator_1 = require("../../../src/common/utils/decorators/use-pipes.decorator");
|
||||
const index_1 = require("../../../src/common/index");
|
||||
const exception_filters_decorator_1 = require("../../../src/common/utils/decorators/exception-filters.decorator");
|
||||
const exception_filter_1 = require("../../common/exception.filter");
|
||||
const validator_pipe_1 = require("../../common/validator.pipe");
|
||||
const common_1 = require("@nestjs/common");
|
||||
const roles_guard_1 = require("./roles.guard");
|
||||
let UsersController = class UsersController {
|
||||
constructor(usersService) {
|
||||
this.usersService = usersService;
|
||||
}
|
||||
getAllUsers(res) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const users = yield this.usersService.getAllUsers();
|
||||
res.status(index_1.HttpStatus.OK).json(users);
|
||||
});
|
||||
}
|
||||
getUser(res, id) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const user = yield this.usersService.getUser(id);
|
||||
res.status(index_1.HttpStatus.OK).json(user);
|
||||
});
|
||||
}
|
||||
addUser(res, user) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const msg = yield this.usersService.addUser(user);
|
||||
res.status(index_1.HttpStatus.CREATED).json(msg);
|
||||
});
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
request_mapping_decorator_1.Get(),
|
||||
common_1.UseGuards(roles_guard_1.RolesGuard),
|
||||
__param(0, _1.Res()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], UsersController.prototype, "getAllUsers", null);
|
||||
__decorate([
|
||||
request_mapping_decorator_1.Get('/:id'),
|
||||
__param(0, _1.Res()), __param(1, _1.Param('id')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, String]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], UsersController.prototype, "getUser", null);
|
||||
__decorate([
|
||||
request_mapping_decorator_1.Post(),
|
||||
use_pipes_decorator_1.UsePipes(new validator_pipe_1.ValidatorPipe()),
|
||||
__param(0, _1.Res()), __param(1, _1.Body('user')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, String]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], UsersController.prototype, "addUser", null);
|
||||
UsersController = __decorate([
|
||||
_1.Controller('users'),
|
||||
exception_filters_decorator_1.UseFilters(new exception_filter_1.CustomExceptionFilter()),
|
||||
__metadata("design:paramtypes", [users_service_1.UsersService])
|
||||
], UsersController);
|
||||
exports.UsersController = UsersController;
|
||||
//# sourceMappingURL=users.controller.js.map
|
||||
1
dist/example/modules/users/users.controller.js.map
vendored
Normal file
1
dist/example/modules/users/users.controller.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../../example/modules/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,mDAA+C;AAC/C,sCAAsE;AACtE,8GAA2F;AAC3F,kGAAoF;AACpF,qDAAuD;AACvD,kHAA8F;AAC9F,oEAAsE;AACtE,gEAA4D;AAC5D,2CAA2C;AAC3C,+CAA2C;AAI3C,IAAa,eAAe,GAA5B;IACI,YAAoB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAIrC,WAAW,CAAQ,GAAa;;YACzC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;YACpD,GAAG,CAAC,MAAM,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;KAAA;IAGY,OAAO,CAAQ,GAAa,EAAe,EAAU;;YAC9D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACjD,GAAG,CAAC,MAAM,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;KAAA;IAIY,OAAO,CAAQ,GAAa,EAAgB,IAAY;;YACjE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClD,GAAG,CAAC,MAAM,CAAC,kBAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,CAAC;KAAA;CACJ,CAAA;AAjBG;IAFC,+BAAG,EAAE;IACL,kBAAS,CAAC,wBAAU,CAAC;IACI,WAAA,MAAG,EAAE,CAAA;;;;kDAG9B;AAGD;IADC,+BAAG,CAAC,MAAM,CAAC;IACU,WAAA,MAAG,EAAE,CAAA,EAAiB,WAAA,QAAK,CAAC,IAAI,CAAC,CAAA;;;;8CAGtD;AAID;IAFC,gCAAI,EAAE;IACN,8BAAQ,CAAC,IAAI,8BAAa,EAAE,CAAC;IACR,WAAA,MAAG,EAAE,CAAA,EAAiB,WAAA,OAAI,CAAC,MAAM,CAAC,CAAA;;;;8CAGvD;AArBQ,eAAe;IAF3B,aAAU,CAAC,OAAO,CAAC;IACnB,wCAAU,CAAC,IAAI,wCAAqB,EAAE,CAAC;qCAEF,4BAAY;GADrC,eAAe,CAsB3B;AAtBY,0CAAe"}
|
||||
68
dist/example/modules/users/users.module.js
vendored
Normal file
68
dist/example/modules/users/users.module.js
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const _1 = require("./../../../src/");
|
||||
const users_controller_1 = require("./users.controller");
|
||||
const users_service_1 = require("./users.service");
|
||||
const auth_middleware_1 = require("./auth.middleware");
|
||||
const chat_gateway_1 = require("./chat.gateway");
|
||||
const AsyncToken = 'AsyncToken';
|
||||
exports.AsyncToken2 = 'AsyncToken2';
|
||||
const promiseTimeout = (t) => new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve('test');
|
||||
}, t);
|
||||
});
|
||||
let UsersModule = class UsersModule {
|
||||
constructor(async) {
|
||||
this.async = async;
|
||||
console.log(async);
|
||||
}
|
||||
configure(consumer) {
|
||||
consumer.apply(auth_middleware_1.AuthMiddleware).forRoutes(users_controller_1.UsersController);
|
||||
}
|
||||
};
|
||||
UsersModule = __decorate([
|
||||
_1.Module({
|
||||
controllers: [users_controller_1.UsersController],
|
||||
components: [
|
||||
users_service_1.UsersService,
|
||||
chat_gateway_1.ChatGateway,
|
||||
{
|
||||
provide: AsyncToken,
|
||||
useFactory: () => __awaiter(this, void 0, void 0, function* () {
|
||||
yield promiseTimeout(5000);
|
||||
return 'async Value';
|
||||
}),
|
||||
inject: [],
|
||||
},
|
||||
{
|
||||
provide: exports.AsyncToken2,
|
||||
useValue: promiseTimeout(3000),
|
||||
},
|
||||
],
|
||||
}),
|
||||
__param(0, _1.Inject(AsyncToken)),
|
||||
__metadata("design:paramtypes", [Object])
|
||||
], UsersModule);
|
||||
exports.UsersModule = UsersModule;
|
||||
//# sourceMappingURL=users.module.js.map
|
||||
1
dist/example/modules/users/users.module.js.map
vendored
Normal file
1
dist/example/modules/users/users.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"users.module.js","sourceRoot":"","sources":["../../../../example/modules/users/users.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAyD;AACzD,yDAAqD;AACrD,mDAA+C;AAC/C,uDAAmD;AAEnD,iDAA6C;AAE7C,MAAM,UAAU,GAAG,YAAY,CAAC;AACnB,QAAA,WAAW,GAAG,aAAa,CAAC;AAEzC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM;IACtD,UAAU,CAAC;QACP,OAAO,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC,EAAE,CAAC,CAAC,CAAC;AACV,CAAC,CAAC,CAAC;AAqBH,IAAa,WAAW,GAAxB;IACI,YAAiD,KAAK;QAAL,UAAK,GAAL,KAAK,CAAA;QAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACM,SAAS,CAAC,QAA6B;QAC1C,QAAQ,CAAC,KAAK,CAAC,gCAAc,CAAC,CAAC,SAAS,CAAC,kCAAe,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AAPY,WAAW;IAnBvB,SAAM,CAAC;QACJ,WAAW,EAAE,CAAE,kCAAe,CAAE;QAChC,UAAU,EAAE;YACR,4BAAY;YACZ,0BAAW;YACX;gBACI,OAAO,EAAE,UAAU;gBACnB,UAAU,EAAE;oBACR,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;oBAC3B,MAAM,CAAC,aAAa,CAAC;gBACzB,CAAC,CAAA;gBACD,MAAM,EAAE,EAAE;aACb;YACD;gBACI,OAAO,EAAE,mBAAW;gBACpB,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC;aACjC;SACJ;KACJ,CAAC;IAEe,WAAA,SAAM,CAAC,UAAU,CAAC,CAAA;;GADtB,WAAW,CAOvB;AAPY,kCAAW"}
|
||||
48
dist/example/modules/users/users.service.js
vendored
Normal file
48
dist/example/modules/users/users.service.js
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const _1 = require("./../../../src/");
|
||||
const http_exception_1 = require("../../../src/core/exceptions/http-exception");
|
||||
const index_1 = require("../../../src/common/index");
|
||||
let UsersService = class UsersService {
|
||||
constructor(xd) {
|
||||
this.users = [
|
||||
{ id: 1, name: 'John Doe' },
|
||||
{ id: 2, name: 'Alice Caeiro' },
|
||||
{ id: 3, name: 'Who Knows' },
|
||||
];
|
||||
console.log(xd);
|
||||
}
|
||||
getAllUsers() {
|
||||
return Promise.resolve(this.users);
|
||||
}
|
||||
getUser(id) {
|
||||
const user = this.users.find((user) => user.id === +id);
|
||||
if (!user) {
|
||||
throw new http_exception_1.HttpException('User not found', 404);
|
||||
}
|
||||
return Promise.resolve(user);
|
||||
}
|
||||
addUser(user) {
|
||||
this.users.push(user);
|
||||
return Promise.resolve();
|
||||
}
|
||||
};
|
||||
UsersService = __decorate([
|
||||
_1.Component(),
|
||||
__param(0, index_1.Inject('AsyncToken2')),
|
||||
__metadata("design:paramtypes", [Object])
|
||||
], UsersService);
|
||||
exports.UsersService = UsersService;
|
||||
//# sourceMappingURL=users.service.js.map
|
||||
1
dist/example/modules/users/users.service.js.map
vendored
Normal file
1
dist/example/modules/users/users.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"users.service.js","sourceRoot":"","sources":["../../../../example/modules/users/users.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAA4C;AAC5C,gFAA4E;AAE5E,qDAAmD;AAGnD,IAAa,YAAY,GAAzB;IACI,YAAmC,EAAE;QAG7B,UAAK,GAAG;YACZ,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC3B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE;YAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE;SAC/B,CAAC;QANE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpB,CAAC;IAOM,WAAW;QACd,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAEM,OAAO,CAAC,EAAU;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACxD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,IAAI,8BAAa,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;QACnD,CAAC;QACD,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAEM,OAAO,CAAC,IAAI;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AA1BY,YAAY;IADxB,YAAS,EAAE;IAEK,WAAA,cAAM,CAAC,aAAa,CAAC,CAAA;;GADzB,YAAY,CA0BxB;AA1BY,oCAAY"}
|
||||
30
dist/example/server.js
vendored
Normal file
30
dist/example/server.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const express = require("express");
|
||||
const bodyParser = require("body-parser");
|
||||
const core_1 = require("./../src/core");
|
||||
const app_module_1 = require("./modules/app.module");
|
||||
const index_1 = require("../src/microservices/index");
|
||||
const validator_pipe_1 = require("./common/validator.pipe");
|
||||
const port = 3001;
|
||||
const server = express();
|
||||
server.use(bodyParser.json());
|
||||
core_1.NestFactory.create(app_module_1.ApplicationModule, server).then((app) => __awaiter(this, void 0, void 0, function* () {
|
||||
const microservice = app.connectMicroservice({
|
||||
transport: index_1.Transport.TCP,
|
||||
});
|
||||
app.useGlobalPipes(new validator_pipe_1.ValidatorPipe());
|
||||
app.startAllMicroservices(() => console.log('All microservices are listening...'));
|
||||
yield app.listen(port, () => {
|
||||
console.log('Application listen on port:', port);
|
||||
});
|
||||
}));
|
||||
//# sourceMappingURL=server.js.map
|
||||
1
dist/example/server.js.map
vendored
Normal file
1
dist/example/server.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../example/server.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mCAAmC;AACnC,0CAA0C;AAC1C,wCAA4C;AAC5C,qDAAyD;AACzD,sDAAuD;AACvD,4DAAwD;AAExD,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC;AACzB,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;AAE9B,kBAAW,CAAC,MAAM,CAAC,8BAAiB,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAO,GAAG;IACzD,MAAM,YAAY,GAAG,GAAG,CAAC,mBAAmB,CAAC;QACzC,SAAS,EAAE,iBAAS,CAAC,GAAG;KAC3B,CAAC,CAAC;IAEH,GAAG,CAAC,cAAc,CAAC,IAAI,8BAAa,EAAE,CAAC,CAAC;IACxC,GAAG,CAAC,qBAAqB,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC,CAAC;IACnF,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE;QACnB,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,IAAI,CAAC,CAAC;IAErD,CAAC,CAAC,CAAC;AACP,CAAC,CAAA,CAAC,CAAC"}
|
||||
25
dist/gulpfile.js
vendored
Normal file
25
dist/gulpfile.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
const gulp = require('gulp');
|
||||
const ts = require('gulp-typescript');
|
||||
const packages = {
|
||||
common: ts.createProject('src/common/tsconfig.json'),
|
||||
core: ts.createProject('src/core/tsconfig.json'),
|
||||
microservices: ts.createProject('src/microservices/tsconfig.json'),
|
||||
websockets: ts.createProject('src/websockets/tsconfig.json'),
|
||||
testing: ts.createProject('src/testing/tsconfig.json')
|
||||
};
|
||||
const modules = Object.keys(packages);
|
||||
const source = 'src';
|
||||
const dist = 'node_modules/@nestjs';
|
||||
gulp.task('default', function () {
|
||||
modules.forEach((module) => {
|
||||
gulp.watch([`${source}/${module}/**/*.ts`, `${source}/${module}/*.ts`], [module]);
|
||||
});
|
||||
});
|
||||
modules.forEach((module) => {
|
||||
gulp.task(module, () => {
|
||||
return packages[module].src()
|
||||
.pipe(packages[module]())
|
||||
.pipe(gulp.dest(`${dist}/${module}`));
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=gulpfile.js.map
|
||||
1
dist/gulpfile.js.map
vendored
Normal file
1
dist/gulpfile.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gulpfile.js","sourceRoot":"","sources":["../gulpfile.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEtC,MAAM,QAAQ,GAAG;IACb,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC;IACpD,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,wBAAwB,CAAC;IAChD,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,iCAAiC,CAAC;IAClE,UAAU,EAAE,EAAE,CAAC,aAAa,CAAC,8BAA8B,CAAC;IAC5D,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,2BAA2B,CAAC;CACzD,CAAC;AACF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,MAAM,GAAG,KAAK,CAAC;AACrB,MAAM,IAAI,GAAG,sBAAsB,CAAA;AAEnC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;IACjB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM;QACnB,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,IAAI,MAAM,UAAU,EAAE,GAAG,MAAM,IAAI,MAAM,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACtF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM;IACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACd,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE;aACxB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;aACxB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
||||
3
dist/index.js
vendored
Normal file
3
dist/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
require('ts-node/register');
|
||||
require('./example/server');
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/index.js.map
vendored
Normal file
1
dist/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAC"}
|
||||
19
dist/src/common/constants.js
vendored
Normal file
19
dist/src/common/constants.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.metadata = {
|
||||
MODULES: 'modules',
|
||||
COMPONENTS: 'components',
|
||||
CONTROLLERS: 'controllers',
|
||||
EXPORTS: 'exports',
|
||||
};
|
||||
exports.SHARED_MODULE_METADATA = '__sharedModule__';
|
||||
exports.PATH_METADATA = 'path';
|
||||
exports.PARAMTYPES_METADATA = 'design:paramtypes';
|
||||
exports.SELF_DECLARED_DEPS_METADATA = 'self:paramtypes';
|
||||
exports.METHOD_METADATA = 'method';
|
||||
exports.ROUTE_ARGS_METADATA = '__routeArguments__';
|
||||
exports.EXCEPTION_FILTERS_METADATA = '__exceptionFilters__';
|
||||
exports.FILTER_CATCH_EXCEPTIONS = '__filterCatchExceptions__';
|
||||
exports.PIPES_METADATA = '__pipes__';
|
||||
exports.GUARDS_METADATA = '__guards__';
|
||||
//# sourceMappingURL=constants.js.map
|
||||
1
dist/src/common/constants.js.map
vendored
Normal file
1
dist/src/common/constants.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,QAAQ,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACrB,CAAC;AAEW,QAAA,sBAAsB,GAAG,kBAAkB,CAAC;AAC5C,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,mBAAmB,GAAG,mBAAmB,CAAC;AAC1C,QAAA,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,mBAAmB,GAAG,oBAAoB,CAAC;AAC3C,QAAA,0BAA0B,GAAG,sBAAsB,CAAC;AACpD,QAAA,uBAAuB,GAAG,2BAA2B,CAAC;AACtD,QAAA,cAAc,GAAG,WAAW,CAAC;AAC7B,QAAA,eAAe,GAAG,YAAY,CAAC"}
|
||||
49
dist/src/common/enums/http-status.enum.js
vendored
Normal file
49
dist/src/common/enums/http-status.enum.js
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var HttpStatus;
|
||||
(function (HttpStatus) {
|
||||
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
||||
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
||||
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
||||
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
||||
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
||||
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
||||
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
||||
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
||||
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
||||
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
||||
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
||||
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
||||
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
||||
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
||||
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
||||
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
||||
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
||||
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
||||
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
||||
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
||||
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
||||
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
||||
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
||||
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
||||
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
||||
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
||||
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
||||
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
||||
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
||||
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
||||
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
||||
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
||||
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
||||
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
||||
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
||||
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
||||
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
||||
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
||||
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
||||
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
||||
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
||||
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
||||
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
||||
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
||||
//# sourceMappingURL=http-status.enum.js.map
|
||||
1
dist/src/common/enums/http-status.enum.js.map
vendored
Normal file
1
dist/src/common/enums/http-status.enum.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"http-status.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/http-status.enum.ts"],"names":[],"mappings":";;AAAA,IAAY,UA4CX;AA5CD,WAAY,UAAU;IAClB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,yDAAgB,CAAA;IAChB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,qDAAc,CAAA;IACd,+FAAmC,CAAA;IACnC,yDAAgB,CAAA;IAChB,+DAAmB,CAAA;IACnB,mEAAqB,CAAA;IACrB,uDAAe,CAAA;IACf,uEAAuB,CAAA;IACvB,+CAAW,CAAA;IACX,uDAAe,CAAA;IACf,6DAAkB,CAAA;IAClB,yEAAwB,CAAA;IACxB,yEAAwB,CAAA;IACxB,2DAAiB,CAAA;IACjB,6DAAkB,CAAA;IAClB,qEAAsB,CAAA;IACtB,uDAAe,CAAA;IACf,uDAAe,CAAA;IACf,yEAAwB,CAAA;IACxB,iEAAoB,CAAA;IACpB,+FAAmC,CAAA;IACnC,mEAAqB,CAAA;IACrB,qDAAc,CAAA;IACd,6CAAU,CAAA;IACV,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,uEAAuB,CAAA;IACvB,6DAAkB,CAAA;IAClB,iFAA4B,CAAA;IAC5B,mGAAqC,CAAA;IACrC,yEAAwB,CAAA;IACxB,6EAA0B,CAAA;IAC1B,uEAAuB,CAAA;IACvB,+EAA2B,CAAA;IAC3B,mEAAqB,CAAA;IACrB,2DAAiB,CAAA;IACjB,2EAAyB,CAAA;IACzB,mEAAqB,CAAA;IACrB,yFAAgC,CAAA;AACpC,CAAC,EA5CW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QA4CrB"}
|
||||
8
dist/src/common/enums/index.js
vendored
Normal file
8
dist/src/common/enums/index.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("./request-method.enum"));
|
||||
__export(require("./http-status.enum"));
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/enums/index.js.map
vendored
Normal file
1
dist/src/common/enums/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;AAAA,2CAAsC;AACtC,wCAAmC"}
|
||||
8
dist/src/common/enums/nest-environment.enum.js
vendored
Normal file
8
dist/src/common/enums/nest-environment.enum.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var NestEnvironment;
|
||||
(function (NestEnvironment) {
|
||||
NestEnvironment[NestEnvironment["RUN"] = 0] = "RUN";
|
||||
NestEnvironment[NestEnvironment["TEST"] = 1] = "TEST";
|
||||
})(NestEnvironment = exports.NestEnvironment || (exports.NestEnvironment = {}));
|
||||
//# sourceMappingURL=nest-environment.enum.js.map
|
||||
1
dist/src/common/enums/nest-environment.enum.js.map
vendored
Normal file
1
dist/src/common/enums/nest-environment.enum.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nest-environment.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/nest-environment.enum.ts"],"names":[],"mappings":";;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,mDAAG,CAAA;IACH,qDAAI,CAAA;AACR,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
||||
12
dist/src/common/enums/request-method.enum.js
vendored
Normal file
12
dist/src/common/enums/request-method.enum.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var RequestMethod;
|
||||
(function (RequestMethod) {
|
||||
RequestMethod[RequestMethod["GET"] = 0] = "GET";
|
||||
RequestMethod[RequestMethod["POST"] = 1] = "POST";
|
||||
RequestMethod[RequestMethod["PUT"] = 2] = "PUT";
|
||||
RequestMethod[RequestMethod["DELETE"] = 3] = "DELETE";
|
||||
RequestMethod[RequestMethod["PATCH"] = 4] = "PATCH";
|
||||
RequestMethod[RequestMethod["ALL"] = 5] = "ALL";
|
||||
})(RequestMethod = exports.RequestMethod || (exports.RequestMethod = {}));
|
||||
//# sourceMappingURL=request-method.enum.js.map
|
||||
1
dist/src/common/enums/request-method.enum.js.map
vendored
Normal file
1
dist/src/common/enums/request-method.enum.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"request-method.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/request-method.enum.ts"],"names":[],"mappings":";;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,+CAAO,CAAA;IACP,iDAAI,CAAA;IACJ,+CAAG,CAAA;IACH,qDAAM,CAAA;IACN,mDAAK,CAAA;IACL,+CAAG,CAAA;AACP,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|
||||
14
dist/src/common/enums/route-paramtypes.enum.js
vendored
Normal file
14
dist/src/common/enums/route-paramtypes.enum.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var RouteParamtypes;
|
||||
(function (RouteParamtypes) {
|
||||
RouteParamtypes[RouteParamtypes["REQUEST"] = 0] = "REQUEST";
|
||||
RouteParamtypes[RouteParamtypes["RESPONSE"] = 1] = "RESPONSE";
|
||||
RouteParamtypes[RouteParamtypes["NEXT"] = 2] = "NEXT";
|
||||
RouteParamtypes[RouteParamtypes["BODY"] = 3] = "BODY";
|
||||
RouteParamtypes[RouteParamtypes["QUERY"] = 4] = "QUERY";
|
||||
RouteParamtypes[RouteParamtypes["PARAM"] = 5] = "PARAM";
|
||||
RouteParamtypes[RouteParamtypes["HEADERS"] = 6] = "HEADERS";
|
||||
RouteParamtypes[RouteParamtypes["SESSION"] = 7] = "SESSION";
|
||||
})(RouteParamtypes = exports.RouteParamtypes || (exports.RouteParamtypes = {}));
|
||||
//# sourceMappingURL=route-paramtypes.enum.js.map
|
||||
1
dist/src/common/enums/route-paramtypes.enum.js.map
vendored
Normal file
1
dist/src/common/enums/route-paramtypes.enum.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"route-paramtypes.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/route-paramtypes.enum.ts"],"names":[],"mappings":";;AAAA,IAAY,eASX;AATD,WAAY,eAAe;IACvB,2DAAO,CAAA;IACP,6DAAQ,CAAA;IACR,qDAAI,CAAA;IACJ,qDAAI,CAAA;IACJ,uDAAK,CAAA;IACL,uDAAK,CAAA;IACL,2DAAO,CAAA;IACP,2DAAO,CAAA;AACX,CAAC,EATW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAS1B"}
|
||||
4
dist/src/common/exceptions/constants.js
vendored
Normal file
4
dist/src/common/exceptions/constants.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InvalidModuleConfigMessage = (property) => `Invalid property '${property}' in @Module() decorator.`;
|
||||
//# sourceMappingURL=constants.js.map
|
||||
1
dist/src/common/exceptions/constants.js.map
vendored
Normal file
1
dist/src/common/exceptions/constants.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/common/exceptions/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,0BAA0B,GAAG,CAAC,QAAgB,KACvD,qBAAqB,QAAQ,2BAA2B,CAAC"}
|
||||
10
dist/src/common/exceptions/invalid-module-config.exception.js
vendored
Normal file
10
dist/src/common/exceptions/invalid-module-config.exception.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const constants_1 = require("./constants");
|
||||
class InvalidModuleConfigException extends Error {
|
||||
constructor(property) {
|
||||
super(constants_1.InvalidModuleConfigMessage(property));
|
||||
}
|
||||
}
|
||||
exports.InvalidModuleConfigException = InvalidModuleConfigException;
|
||||
//# sourceMappingURL=invalid-module-config.exception.js.map
|
||||
1
dist/src/common/exceptions/invalid-module-config.exception.js.map
vendored
Normal file
1
dist/src/common/exceptions/invalid-module-config.exception.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"invalid-module-config.exception.js","sourceRoot":"","sources":["../../../../src/common/exceptions/invalid-module-config.exception.ts"],"names":[],"mappings":";;AAAA,2CAAyD;AAEzD,kCAA0C,SAAQ,KAAK;IACnD,YAAY,QAAgB;QACxB,KAAK,CAAC,sCAA0B,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChD,CAAC;CACJ;AAJD,oEAIC"}
|
||||
9
dist/src/common/index.js
vendored
Normal file
9
dist/src/common/index.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("./utils"));
|
||||
__export(require("./enums"));
|
||||
__export(require("./services/logger.service"));
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/index.js.map
vendored
Normal file
1
dist/src/common/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;;;AAOA,6BAAwB;AACxB,6BAAwB;AAmBxB,+CAA0C"}
|
||||
3
dist/src/common/interfaces/can-activate.interface.js
vendored
Normal file
3
dist/src/common/interfaces/can-activate.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=can-activate.interface.js.map
|
||||
1
dist/src/common/interfaces/can-activate.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/can-activate.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"can-activate.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/can-activate.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/controllers/controller-metadata.interface.js
vendored
Normal file
3
dist/src/common/interfaces/controllers/controller-metadata.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=controller-metadata.interface.js.map
|
||||
1
dist/src/common/interfaces/controllers/controller-metadata.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/controllers/controller-metadata.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"controller-metadata.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/controllers/controller-metadata.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/controllers/controller.interface.js
vendored
Normal file
3
dist/src/common/interfaces/controllers/controller.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=controller.interface.js.map
|
||||
1
dist/src/common/interfaces/controllers/controller.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/controllers/controller.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"controller.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/controllers/controller.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/controllers/index.js
vendored
Normal file
3
dist/src/common/interfaces/controllers/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/interfaces/controllers/index.js.map
vendored
Normal file
1
dist/src/common/interfaces/controllers/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/controllers/index.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/exceptions/exception-filter-metadata.interface.js
vendored
Normal file
3
dist/src/common/interfaces/exceptions/exception-filter-metadata.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=exception-filter-metadata.interface.js.map
|
||||
1
dist/src/common/interfaces/exceptions/exception-filter-metadata.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/exceptions/exception-filter-metadata.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"exception-filter-metadata.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/exceptions/exception-filter-metadata.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/exceptions/exception-filter.interface.js
vendored
Normal file
3
dist/src/common/interfaces/exceptions/exception-filter.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=exception-filter.interface.js.map
|
||||
1
dist/src/common/interfaces/exceptions/exception-filter.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/exceptions/exception-filter.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"exception-filter.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/exceptions/exception-filter.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/exceptions/index.js
vendored
Normal file
3
dist/src/common/interfaces/exceptions/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/interfaces/exceptions/index.js.map
vendored
Normal file
1
dist/src/common/interfaces/exceptions/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/exceptions/index.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/index.js
vendored
Normal file
3
dist/src/common/interfaces/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/interfaces/index.js.map
vendored
Normal file
1
dist/src/common/interfaces/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/index.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/injectable.interface.js
vendored
Normal file
3
dist/src/common/interfaces/injectable.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=injectable.interface.js.map
|
||||
1
dist/src/common/interfaces/injectable.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/injectable.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"injectable.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/injectable.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/metatype.interface.js
vendored
Normal file
3
dist/src/common/interfaces/metatype.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=metatype.interface.js.map
|
||||
1
dist/src/common/interfaces/metatype.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/metatype.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"metatype.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/metatype.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/express-midleware.interface.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/express-midleware.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=express-midleware.interface.js.map
|
||||
1
dist/src/common/interfaces/middlewares/express-midleware.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/express-midleware.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"express-midleware.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/express-midleware.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/index.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/interfaces/middlewares/index.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/index.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/middleware-config-proxy.interface.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/middleware-config-proxy.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=middleware-config-proxy.interface.js.map
|
||||
1
dist/src/common/interfaces/middlewares/middleware-config-proxy.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/middleware-config-proxy.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"middleware-config-proxy.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/middleware-config-proxy.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/middleware-configuration.interface.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/middleware-configuration.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=middleware-configuration.interface.js.map
|
||||
1
dist/src/common/interfaces/middlewares/middleware-configuration.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/middleware-configuration.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"middleware-configuration.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/middleware-configuration.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/middlewares-consumer.interface.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/middlewares-consumer.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=middlewares-consumer.interface.js.map
|
||||
1
dist/src/common/interfaces/middlewares/middlewares-consumer.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/middlewares-consumer.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"middlewares-consumer.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/middlewares-consumer.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/middlewares/nest-middleware.interface.js
vendored
Normal file
3
dist/src/common/interfaces/middlewares/nest-middleware.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=nest-middleware.interface.js.map
|
||||
1
dist/src/common/interfaces/middlewares/nest-middleware.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/middlewares/nest-middleware.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nest-middleware.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/middlewares/nest-middleware.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/modules/index.js
vendored
Normal file
3
dist/src/common/interfaces/modules/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/src/common/interfaces/modules/index.js.map
vendored
Normal file
1
dist/src/common/interfaces/modules/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/modules/index.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/modules/module-metadata.interface.js
vendored
Normal file
3
dist/src/common/interfaces/modules/module-metadata.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=module-metadata.interface.js.map
|
||||
1
dist/src/common/interfaces/modules/module-metadata.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/modules/module-metadata.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"module-metadata.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/modules/module-metadata.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/modules/module-metatype.interface.js
vendored
Normal file
3
dist/src/common/interfaces/modules/module-metatype.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=module-metatype.interface.js.map
|
||||
1
dist/src/common/interfaces/modules/module-metatype.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/modules/module-metatype.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"module-metatype.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/modules/module-metatype.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/modules/nest-module.interface.js
vendored
Normal file
3
dist/src/common/interfaces/modules/nest-module.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=nest-module.interface.js.map
|
||||
1
dist/src/common/interfaces/modules/nest-module.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/modules/nest-module.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nest-module.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/modules/nest-module.interface.ts"],"names":[],"mappings":""}
|
||||
3
dist/src/common/interfaces/modules/on-destroy.interface.js
vendored
Normal file
3
dist/src/common/interfaces/modules/on-destroy.interface.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=on-destroy.interface.js.map
|
||||
1
dist/src/common/interfaces/modules/on-destroy.interface.js.map
vendored
Normal file
1
dist/src/common/interfaces/modules/on-destroy.interface.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"on-destroy.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/modules/on-destroy.interface.ts"],"names":[],"mappings":""}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user