@adviser/cement 0.2.35 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;AAE3D,qBAAa,QAAQ;IACP,QAAQ,CAAC,EAAE,EAAE,YAAY;gBAAhB,EAAE,EAAE,YAAY;IACrC,KAAK,IAAI,UAAU,GAAG,UAAU,EAAE;IAQlC,MAAM,IAAI,UAAU,GAAG,UAAU,EAAE;CAGpC;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAe3E,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAG/E;AAED,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,EAAE,GAAG,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;AAEjG,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,GAAE,GAAG,CAAC,OAAO,CAAqC,GAAG,QAAQ,CAgF5G;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;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QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;oBACtC,CAAC;gBAEH,CAAC;YACH,CAAC;YAED,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC,GAA4B,CAAC,CAAC;QAC1D,CAAC;QACD;YACE,IAAI,CAAC,GAAG,EAAE,CAAC;gBACT,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;YACzC,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,gBAAgB,OAAO,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;AACH,CAAC;AAuED,MAAM,UAAU,QAAQ,CAAC,GAAY;IACnC,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB;YACE,QAAQ;YACR,aAAa;YACb,cAAc;YACd,UAAU;YACV,KAAK;YACL,OAAO;YACP,MAAM;YACN,OAAO;YACP,KAAK;YACL,WAAW;YACX,KAAK;YACL,MAAM;YACN,WAAW;YACX,KAAK;YACL,KAAK;YACL,QAAQ;SACT;aAEE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAQ,GAAW,CAAC,EAAE,CAAC,KAAK,UAAU,CAAC;aACnD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAClC,CAAC;AACJ,CAAC"}
package/ts/logger.test.js CHANGED
@@ -1,7 +1,19 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
1
12
  import { TimeFactory, IsLogger, Level, LevelHandlerImpl, LogCollector, LoggerImpl, logValue, Result, runtimeFn, TimeMode, BuildURI, URI, MutableURL, JSONFormatter, YAMLFormatter, } from "@adviser/cement";
2
13
  import { WebSysAbstraction } from "@adviser/cement/web";
3
14
  import { stripper } from "./utils/stripper.js";
4
15
  describe("TestLogger", () => {
16
+ var _TestResponse_url;
5
17
  let logCollector;
6
18
  let logger;
7
19
  beforeEach(() => {
@@ -987,6 +999,36 @@ describe("TestLogger", () => {
987
999
  expect(res.isErr()).toBeTruthy();
988
1000
  expect(res.Err().message).toBe('{"level":"error","msg":"AsError"}\n');
989
1001
  });
1002
+ it("receive object", async () => {
1003
+ logger
1004
+ .Error()
1005
+ .Str({ blaStr: "blub", blaStr2: "blub2" })
1006
+ .Uint64({ blaUint64: 65, blaUint642: 66 })
1007
+ .Int({ blaInt: 65 })
1008
+ .Bool({ blaBool: true, blaBool2: false })
1009
+ .Any({ blaAny: { a: 1 }, blaAny2: { b: 2 } })
1010
+ .Msg("hello");
1011
+ await logger.Flush();
1012
+ expect(logCollector.Logs()).toEqual([
1013
+ {
1014
+ blaAny: {
1015
+ a: 1,
1016
+ },
1017
+ blaAny2: {
1018
+ b: 2,
1019
+ },
1020
+ blaBool: true,
1021
+ blaBool2: false,
1022
+ blaInt: 65,
1023
+ blaStr: "blub",
1024
+ blaStr2: "blub2",
1025
+ blaUint64: 65,
1026
+ blaUint642: 66,
1027
+ level: "error",
1028
+ msg: "hello",
1029
+ },
1030
+ ]);
1031
+ });
990
1032
  it("my own yaml formatter", async () => {
991
1033
  const log = logger.SetExposeStack(true).SetFormatter(new YAMLFormatter(logger.TxtEnDe(), 2)).With().Logger();
992
1034
  log
@@ -1064,110 +1106,358 @@ describe("TestLogger", () => {
1064
1106
  }),
1065
1107
  ]);
1066
1108
  });
1067
- it("fetch-formatter", async () => {
1068
- const result = new Response("body", {
1109
+ class TestResponse extends Response {
1110
+ constructor(body, init) {
1111
+ super(body, init);
1112
+ _TestResponse_url.set(this, void 0);
1113
+ __classPrivateFieldSet(this, _TestResponse_url, (init === null || init === void 0 ? void 0 : init.url) || "", "f");
1114
+ }
1115
+ get url() {
1116
+ return __classPrivateFieldGet(this, _TestResponse_url, "f");
1117
+ }
1118
+ }
1119
+ _TestResponse_url = new WeakMap();
1120
+ describe("fetch-formatter", async () => {
1121
+ const resp = new TestResponse("body", {
1069
1122
  status: 200,
1070
1123
  statusText: "OK",
1071
1124
  headers: new Headers({
1072
1125
  "Content-Type": "text/html",
1073
1126
  "X-Test": "test",
1074
1127
  }),
1128
+ url: "https://www.google.com",
1075
1129
  });
1076
- logger.Error().Any("res", { the: result }).Msg("ok");
1077
- logger.Error().Http(Result.Ok(result)).Msg("1");
1078
1130
  const req = new Request("https://www.google.com", {
1079
1131
  method: "PUT",
1080
1132
  headers: new Headers({
1081
1133
  "Content-Type": "text/html",
1082
1134
  "X-Test": "xtest",
1083
1135
  }),
1136
+ body: "String",
1084
1137
  });
1085
- logger.Error().Http(result, req, "Https").Msg("1");
1086
- await logger.Flush();
1087
- expect(stripper(["isReloadNavigation", "reason", "targetAddressSpace", "attribute", "duplex"], logCollector.Logs(true).map((i) => JSON.parse(i)))).toEqual([
1088
- {
1089
- level: "error",
1090
- res: {
1091
- the: {
1092
- type: "default",
1093
- url: "",
1094
- redirected: false,
1095
- status: 200,
1096
- ok: true,
1097
- statusText: "OK",
1098
- headers: {
1099
- "content-type": "text/html",
1100
- "x-test": "test",
1138
+ async function fixupLogs() {
1139
+ await logger.Flush();
1140
+ return stripper(["isReloadNavigation", "reason", "targetAddressSpace", "attribute", "duplex", "cache", "credentials", "destination"], logCollector.Logs(true).map((i) => JSON.parse(i)));
1141
+ }
1142
+ it("res", async () => {
1143
+ logger.Error().Any("res", { the: resp }).Msg("ok-the-res");
1144
+ expect(await fixupLogs()).toEqual([
1145
+ {
1146
+ level: "error",
1147
+ res: {
1148
+ the: {
1149
+ type: "default",
1150
+ redirected: false,
1151
+ status: 200,
1152
+ ok: true,
1153
+ statusText: "OK",
1154
+ headers: {
1155
+ "content-type": "text/html",
1156
+ "x-test": "test",
1157
+ },
1158
+ body: ">Stream<",
1159
+ bodyUsed: false,
1101
1160
  },
1102
- body: ">Stream<",
1103
- bodyUsed: false,
1104
1161
  },
1162
+ msg: "ok-the-res",
1105
1163
  },
1106
- msg: "ok",
1107
- },
1108
- {
1109
- level: "error",
1110
- Http: {
1111
- type: "default",
1112
- url: "",
1113
- redirected: false,
1114
- status: 200,
1115
- ok: true,
1116
- statusText: "OK",
1117
- headers: {
1118
- "content-type": "text/html",
1119
- "x-test": "test",
1164
+ ]);
1165
+ });
1166
+ it("res", async () => {
1167
+ logger.Error().Any("req", { the: req }).Msg("ok-the-req");
1168
+ expect(await fixupLogs()).toEqual([
1169
+ {
1170
+ level: "error",
1171
+ msg: "ok-the-req",
1172
+ req: {
1173
+ the: {
1174
+ body: ">Stream<",
1175
+ bodyUsed: false,
1176
+ headers: {
1177
+ "content-type": "text/html",
1178
+ "x-test": "xtest",
1179
+ },
1180
+ keepalive: false,
1181
+ method: "PUT",
1182
+ mode: "cors",
1183
+ integrity: "",
1184
+ isHistoryNavigation: false,
1185
+ redirect: "follow",
1186
+ referrer: "about:client",
1187
+ referrerPolicy: "",
1188
+ signal: {
1189
+ aborted: false,
1190
+ onabort: "null",
1191
+ },
1192
+ url: "https://www.google.com/",
1193
+ },
1120
1194
  },
1121
- body: ">Stream<",
1122
- bodyUsed: false,
1123
1195
  },
1124
- msg: "1",
1125
- },
1126
- {
1127
- level: "error",
1128
- Https: {
1129
- res: {
1130
- type: "default",
1131
- url: "",
1132
- redirected: false,
1133
- status: 200,
1134
- ok: true,
1135
- statusText: "OK",
1196
+ ]);
1197
+ });
1198
+ it("req-res", async () => {
1199
+ logger
1200
+ .Error()
1201
+ .Any("req-res", { the: { req, res: resp } })
1202
+ .Msg("ok-the-req-res");
1203
+ expect(await fixupLogs()).toEqual([
1204
+ {
1205
+ level: "error",
1206
+ msg: "ok-the-req-res",
1207
+ "req-res": {
1208
+ the: {
1209
+ req: {
1210
+ body: ">Stream<",
1211
+ bodyUsed: false,
1212
+ headers: {
1213
+ "content-type": "text/html",
1214
+ "x-test": "xtest",
1215
+ },
1216
+ integrity: "",
1217
+ isHistoryNavigation: false,
1218
+ keepalive: false,
1219
+ method: "PUT",
1220
+ mode: "cors",
1221
+ redirect: "follow",
1222
+ referrer: "about:client",
1223
+ referrerPolicy: "",
1224
+ signal: {
1225
+ aborted: false,
1226
+ onabort: "null",
1227
+ },
1228
+ url: "https://www.google.com/",
1229
+ },
1230
+ res: {
1231
+ body: ">Stream<",
1232
+ bodyUsed: false,
1233
+ headers: {
1234
+ "content-type": "text/html",
1235
+ "x-test": "test",
1236
+ },
1237
+ ok: true,
1238
+ redirected: false,
1239
+ status: 200,
1240
+ statusText: "OK",
1241
+ type: "default",
1242
+ },
1243
+ },
1244
+ },
1245
+ },
1246
+ ]);
1247
+ });
1248
+ it("req-res", async () => {
1249
+ logger.Error().Http(Result.Ok(resp)).Msg("-1");
1250
+ expect(await fixupLogs()).toEqual([
1251
+ {
1252
+ Http: {
1253
+ body: ">Stream<",
1254
+ bodyUsed: false,
1136
1255
  headers: {
1137
1256
  "content-type": "text/html",
1138
1257
  "x-test": "test",
1139
1258
  },
1259
+ ok: true,
1260
+ redirected: false,
1261
+ status: 200,
1262
+ statusText: "OK",
1263
+ type: "default",
1264
+ },
1265
+ level: "error",
1266
+ msg: "-1",
1267
+ },
1268
+ ]);
1269
+ });
1270
+ it("0", async () => {
1271
+ logger.Error().Http().Msg("0");
1272
+ expect(await fixupLogs()).toEqual([
1273
+ {
1274
+ level: "error",
1275
+ msg: "0",
1276
+ },
1277
+ ]);
1278
+ });
1279
+ it("1", async () => {
1280
+ logger.Error().Http(resp, req, "Https").Msg("1");
1281
+ expect(await fixupLogs()).toEqual([
1282
+ {
1283
+ Https: {
1284
+ req: {
1285
+ body: ">Stream<",
1286
+ bodyUsed: false,
1287
+ headers: {
1288
+ "content-type": "text/html",
1289
+ "x-test": "xtest",
1290
+ },
1291
+ integrity: "",
1292
+ isHistoryNavigation: false,
1293
+ keepalive: false,
1294
+ method: "PUT",
1295
+ mode: "cors",
1296
+ redirect: "follow",
1297
+ referrer: "about:client",
1298
+ referrerPolicy: "",
1299
+ signal: {
1300
+ aborted: false,
1301
+ onabort: "null",
1302
+ },
1303
+ url: "https://www.google.com/",
1304
+ },
1305
+ res: {
1306
+ body: ">Stream<",
1307
+ bodyUsed: false,
1308
+ headers: {
1309
+ "content-type": "text/html",
1310
+ "x-test": "test",
1311
+ },
1312
+ ok: true,
1313
+ redirected: false,
1314
+ status: 200,
1315
+ statusText: "OK",
1316
+ type: "default",
1317
+ },
1318
+ },
1319
+ level: "error",
1320
+ msg: "1",
1321
+ },
1322
+ ]);
1323
+ });
1324
+ it("1.1", async () => {
1325
+ logger.Error().Http("Yolo", Result.Ok(req), Result.Ok(resp)).Msg("1.1");
1326
+ expect(await fixupLogs()).toEqual([
1327
+ {
1328
+ Yolo: {
1329
+ req: {
1330
+ body: ">Stream<",
1331
+ bodyUsed: false,
1332
+ headers: {
1333
+ "content-type": "text/html",
1334
+ "x-test": "xtest",
1335
+ },
1336
+ integrity: "",
1337
+ isHistoryNavigation: false,
1338
+ keepalive: false,
1339
+ method: "PUT",
1340
+ mode: "cors",
1341
+ redirect: "follow",
1342
+ referrer: "about:client",
1343
+ referrerPolicy: "",
1344
+ signal: {
1345
+ aborted: false,
1346
+ onabort: "null",
1347
+ },
1348
+ url: "https://www.google.com/",
1349
+ },
1350
+ res: {
1351
+ body: ">Stream<",
1352
+ bodyUsed: false,
1353
+ headers: {
1354
+ "content-type": "text/html",
1355
+ "x-test": "test",
1356
+ },
1357
+ ok: true,
1358
+ redirected: false,
1359
+ status: 200,
1360
+ statusText: "OK",
1361
+ type: "default",
1362
+ },
1363
+ },
1364
+ level: "error",
1365
+ msg: "1.1",
1366
+ },
1367
+ ]);
1368
+ });
1369
+ it("1.2", async () => {
1370
+ logger.Error().Http("Yerr", Result.Err("e1"), Result.Err("e2")).Msg("1.2");
1371
+ expect(await fixupLogs()).toEqual([
1372
+ {
1373
+ error: ["e1", "e2"],
1374
+ level: "error",
1375
+ msg: "1.2",
1376
+ },
1377
+ ]);
1378
+ });
1379
+ it("2", async () => {
1380
+ logger.Error().Http(req, "Https").Msg("2");
1381
+ expect(await fixupLogs()).toEqual([
1382
+ {
1383
+ Https: {
1140
1384
  body: ">Stream<",
1141
1385
  bodyUsed: false,
1142
- },
1143
- req: {
1144
- method: "PUT",
1145
- url: "https://www.google.com/",
1146
1386
  headers: {
1147
1387
  "content-type": "text/html",
1148
1388
  "x-test": "xtest",
1149
1389
  },
1150
- destination: "",
1151
- referrer: "about:client",
1152
- referrerPolicy: "",
1390
+ integrity: "",
1391
+ isHistoryNavigation: false,
1392
+ keepalive: false,
1393
+ method: "PUT",
1153
1394
  mode: "cors",
1154
- credentials: "same-origin",
1155
- cache: "default",
1156
1395
  redirect: "follow",
1396
+ referrer: "about:client",
1397
+ referrerPolicy: "",
1398
+ signal: {
1399
+ aborted: false,
1400
+ onabort: "null",
1401
+ },
1402
+ url: "https://www.google.com/",
1403
+ },
1404
+ level: "error",
1405
+ msg: "2",
1406
+ },
1407
+ ]);
1408
+ });
1409
+ it("3", async () => {
1410
+ logger.Error().Any("HttpReq", req).Msg("3");
1411
+ expect(await fixupLogs()).toEqual([
1412
+ {
1413
+ HttpReq: {
1414
+ body: ">Stream<",
1415
+ bodyUsed: false,
1416
+ headers: {
1417
+ "content-type": "text/html",
1418
+ "x-test": "xtest",
1419
+ },
1157
1420
  integrity: "",
1158
- keepalive: false,
1159
1421
  isHistoryNavigation: false,
1422
+ keepalive: false,
1423
+ method: "PUT",
1424
+ mode: "cors",
1425
+ redirect: "follow",
1426
+ referrer: "about:client",
1427
+ referrerPolicy: "",
1160
1428
  signal: {
1161
1429
  aborted: false,
1162
1430
  onabort: "null",
1163
1431
  },
1164
- body: "null",
1432
+ url: "https://www.google.com/",
1433
+ },
1434
+ level: "error",
1435
+ msg: "3",
1436
+ },
1437
+ ]);
1438
+ });
1439
+ it("4", async () => {
1440
+ logger.Error().Any("HttpRes", resp).Msg("4");
1441
+ expect(await fixupLogs()).toEqual([
1442
+ {
1443
+ HttpRes: {
1444
+ body: ">Stream<",
1165
1445
  bodyUsed: false,
1446
+ headers: {
1447
+ "content-type": "text/html",
1448
+ "x-test": "test",
1449
+ },
1450
+ ok: true,
1451
+ redirected: false,
1452
+ status: 200,
1453
+ statusText: "OK",
1454
+ type: "default",
1166
1455
  },
1456
+ level: "error",
1457
+ msg: "4",
1167
1458
  },
1168
- msg: "1",
1169
- },
1170
- ]);
1459
+ ]);
1460
+ });
1171
1461
  });
1172
1462
  it("use toJSON", async () => {
1173
1463
  logger