slack-tiny-logger 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/cjs/index.js +1 -2
- package/lib/esm/index.js +1 -2
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/umd/index.js +0 -0
- package/package.json +1 -1
- package/readme.md +2 -0
package/lib/cjs/index.js
CHANGED
@@ -7,8 +7,7 @@ exports.notifyChannel = void 0;
|
|
7
7
|
var axios_1 = __importDefault(require("axios"));
|
8
8
|
var notifyChannel = function (_a) {
|
9
9
|
var service = _a.service, context = _a.context, env = _a.env, url = _a.url;
|
10
|
-
|
11
|
-
axios_1.default.post(url, JSON.stringify(data)).then(function (data) {
|
10
|
+
axios_1.default.post(url, { text: "".concat(service, "::").concat(env, " - error context ").concat(context) }).then(function (data) {
|
12
11
|
console.log({ message: data === null || data === void 0 ? void 0 : data.statusText });
|
13
12
|
}).catch(function (e) {
|
14
13
|
console.log({ error: e, logLevel: 'error' });
|
package/lib/esm/index.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import axios from 'axios';
|
2
2
|
export var notifyChannel = function (_a) {
|
3
3
|
var service = _a.service, context = _a.context, env = _a.env, url = _a.url;
|
4
|
-
|
5
|
-
axios.post(url, JSON.stringify(data)).then(function (data) {
|
4
|
+
axios.post(url, { text: "".concat(service, "::").concat(env, " - error context ").concat(context) }).then(function (data) {
|
6
5
|
console.log({ message: data === null || data === void 0 ? void 0 : data.statusText });
|
7
6
|
}).catch(function (e) {
|
8
7
|
console.log({ error: e, logLevel: 'error' });
|
package/lib/index.d.ts
CHANGED
File without changes
|
package/lib/index.js
CHANGED
File without changes
|
package/lib/umd/index.js
CHANGED
File without changes
|
package/package.json
CHANGED