slack-tiny-logger 1.0.12 → 1.0.13

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/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
- var data = { text: "".concat(service, "::").concat(env, " - error context ").concat(context) };
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
- var data = { text: "".concat(service, "::").concat(env, " - error context ").concat(context) };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slack-tiny-logger",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Light weight slack logger for web hooks",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",
package/readme.md CHANGED
@@ -4,3 +4,5 @@
4
4
 
5
5
  - notifyChannel({...})
6
6
 
7
+ # slack-logger
8
+ # slack-logger