sim-node-lib 0.3.15 → 0.3.17

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/README.md CHANGED
@@ -4,9 +4,9 @@ Node commons library to use on SIMlabs projets
4
4
 
5
5
  ## ENVs
6
6
 
7
- | Description/use | Name | Block |
8
- | --------------------------------- | -------------- | ----- |
9
- | Chave para encriptação | AES_SECRET_KEY | Crypt |
7
+ | Description/use | Name | Block |
8
+ | ---------------------- | -------------- | ----- |
9
+ | Chave para encriptação | AES_SECRET_KEY | Crypt |
10
10
 
11
11
  ## Documentation
12
12
 
@@ -17,5 +17,5 @@ All documentation about this library is on Confluence.
17
17
  To publish the library, execute the command below:
18
18
 
19
19
  ```
20
- yarn pub
20
+ yarn pub
21
21
  ```
@@ -0,0 +1 @@
1
+ export default function ErrorToString(err: any): string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function ErrorToString(err) {
4
+ try {
5
+ return JSON.stringify(err);
6
+ }
7
+ catch (e) {
8
+ return err.toString();
9
+ }
10
+ }
11
+ exports.default = ErrorToString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",