@wutiange/log-listener-plugin 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -45,13 +45,13 @@ class Logger {
|
|
45
45
|
this.server.log(sendData);
|
46
46
|
}
|
47
47
|
log(...data) {
|
48
|
-
this._log('log', data);
|
48
|
+
this._log('log', ...data);
|
49
49
|
}
|
50
50
|
warn(...data) {
|
51
|
-
this._log('warn', data);
|
51
|
+
this._log('warn', ...data);
|
52
52
|
}
|
53
53
|
error(...data) {
|
54
|
-
this._log('error', data);
|
54
|
+
this._log('error', ...data);
|
55
55
|
}
|
56
56
|
req(input, init) {
|
57
57
|
var _a;
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA6B;AAG7B,MAAM,MAAM;IAAZ;QAEU,WAAM,GAAkB,IAAI,CAAA;IA0EtC,CAAC;IAvEC,UAAU,CAAC,GAAW;QACpB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QAC5B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAM,CAAC,GAAG,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC;IAED,WAAW,CAAC,IAAyB;QACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;IACtB,CAAC;IAEO,kBAAkB;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;QAClE,CAAC;IACH,CAAC;IAEO,mBAAmB;QACzB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC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AG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;YAClC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,iCACrB,IAAI,CAAC,QAAQ,KAChB,OAAO,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,EAC1B,IAAI,EACJ,SAAS,EAAE,EAAE,EACb,UAAU,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,EAC5B,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,EACnB,SAAS,IACT,CAAA;QACJ,CAAC;KAAA;CACF;AAGD,kBAAe,IAAI,MAAM,EAAE,CAAA"}
|
package/dist/server.js
CHANGED
@@ -20,7 +20,7 @@ class Server {
|
|
20
20
|
const result = yield fetch(`${this.baseUrl}:${this.port}/${path}`, {
|
21
21
|
method: 'POST',
|
22
22
|
headers: {
|
23
|
-
'Content-Type': 'application/json;charset
|
23
|
+
'Content-Type': 'application/json;charset=utf-8'
|
24
24
|
},
|
25
25
|
body: JSON.stringify(data)
|
26
26
|
});
|