infinity-forge 1.8.9 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/container/decorators/authorize-http-client-decorator.js +7 -6
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/ui/utils/_app_utils/generate_ref.js +2 -1
- package/dist/ui/utils/_app_utils/generate_ref.js.map +1 -1
- package/package.json +1 -1
|
@@ -84,15 +84,16 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
84
84
|
AuthorizeHttpClientDecorator.prototype.request = function (data) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
86
86
|
var storageToken, _a, token, httpResponse;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
var _b, _c;
|
|
88
|
+
return __generator(this, function (_d) {
|
|
89
|
+
switch (_d.label) {
|
|
89
90
|
case 0:
|
|
90
91
|
_a = process.browser;
|
|
91
92
|
if (!_a) return [3 /*break*/, 2];
|
|
92
93
|
return [4 /*yield*/, this.storage.get("token")];
|
|
93
94
|
case 1:
|
|
94
|
-
_a = (
|
|
95
|
-
|
|
95
|
+
_a = (_d.sent());
|
|
96
|
+
_d.label = 2;
|
|
96
97
|
case 2:
|
|
97
98
|
storageToken = _a;
|
|
98
99
|
token = process.browser && (storageToken === null || storageToken === void 0 ? void 0 : storageToken.value);
|
|
@@ -100,12 +101,12 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
100
101
|
headers: Object.assign(data.headers || {}, {
|
|
101
102
|
Authorization: "Bearer ".concat(token || ''),
|
|
102
103
|
flag: 'token',
|
|
103
|
-
painel: process.env.painel
|
|
104
|
+
painel: ((_b = data === null || data === void 0 ? void 0 : data.headers) === null || _b === void 0 ? void 0 : _b.painel) ? (_c = data === null || data === void 0 ? void 0 : data.headers) === null || _c === void 0 ? void 0 : _c.painel : process.env.painel
|
|
104
105
|
}),
|
|
105
106
|
});
|
|
106
107
|
return [4 /*yield*/, this.httpClient.request(data)];
|
|
107
108
|
case 3:
|
|
108
|
-
httpResponse =
|
|
109
|
+
httpResponse = _d.sent();
|
|
109
110
|
return [2 /*return*/, httpResponse];
|
|
110
111
|
}
|
|
111
112
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB
|
|
1
|
+
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB;;;;;;;wBAEf,KAAA,OAAO,CAAC,OAAO,CAAA;iCAAf,wBAAe;wBAAI,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAA;;8BAA/B,SAA+B;;;wBAAjE,YAAY,KAAqD;wBAEjE,KAAK,GAAG,OAAO,CAAC,OAAO,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,CAAA,CAAC;wBAErD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;4BAClB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE;gCACzC,aAAa,EAAE,iBAAU,KAAK,IAAI,EAAE,CAAE;gCACtC,IAAI,EAAE,OAAO;gCACb,MAAM,EAAE,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM;6BAC3E,CAAC;yBACH,CAAC,CAAC;wBAEkB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAlD,YAAY,GAAG,SAAmC;wBAExD,sBAAO,YAAY,EAAC;;;;KACrB;IAvBU,4BAA4B;QADxC,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,OAAO,CAAC,CAAA;QAC1B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,IAAI,CAAC,CAAA;;OAHf,4BAA4B,CAwBxC;IAAD,mCAAC;CAAA,AAzBD,IAyBC;AAxBY,oEAA4B"}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.generateRef = void 0;
|
|
4
4
|
var get_pathname_ref_1 = require("./get-pathname-ref.js");
|
|
5
5
|
function generateRef(referenceID, router, isGlobal) {
|
|
6
|
-
|
|
6
|
+
var _a;
|
|
7
|
+
return (isGlobal ? 'global' : (_a = (0, get_pathname_ref_1.getPathnameRef)(undefined, router)) === null || _a === void 0 ? void 0 : _a.page) + "_" + referenceID;
|
|
7
8
|
}
|
|
8
9
|
exports.generateRef = generateRef;
|
|
9
10
|
//# sourceMappingURL=generate_ref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAAkB,EAAE,QAAkB
|
|
1
|
+
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAAkB,EAAE,QAAkB;;IACrF,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAA,IAAA,iCAAc,EAAC,SAAS,EAAE,MAAM,CAAC,0CAAE,IAAI,CAAC,GAAG,GAAG,GAAG,WAAW,CAAA;AAC5F,CAAC;AAFD,kCAEC"}
|