Comparing version 2.3.15 to 2.3.16
# Change Log | ||
## [2.3.15] | ||
## [2.3.16] | ||
- Fixed translating Error and other classes | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "residue", | ||
"version": "2.3.15", | ||
"version": "2.3.16", | ||
"description": "Library to interact with residue server seamlessly.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,12 +13,2 @@ ﷽ | ||
## Native Modules | ||
This library depends on following native modules, without them library will not work: | ||
* [Path Module](https://nodejs.org/api/path.html) | ||
* [File System Module](https://nodejs.org/api/fs.html) | ||
* [Crypto Module](https://nodejs.org/api/crypto.html) | ||
* [ZLib Module](https://nodejs.org/api/zlib.html) | ||
* [Net Module](https://nodejs.org/api/net.html) | ||
* [Util Module](https://nodejs.org/api/util.html) | ||
## API | ||
@@ -56,3 +46,3 @@ #### `connect(options)` | ||
## Usage | ||
``` | ||
```js | ||
var residue = require('residue'); | ||
@@ -87,3 +77,7 @@ var logger = residue.getLogger('sample-app'); | ||
// other levels | ||
``` | ||
## Log | ||
```js | ||
logger.info(...); | ||
logger.warn(...); | ||
@@ -94,3 +88,3 @@ logger.error(...); | ||
logger.fatal(...); | ||
logger.verbose(verbose-level, ...); | ||
logger.verbose(verbose_level, ...); | ||
``` | ||
@@ -97,0 +91,0 @@ |
@@ -68,3 +68,7 @@ // | ||
} else if (typeof cpy[idx].toString === 'function') { | ||
cpy[idx] = cpy[idx].toString(); | ||
let str = cpy[idx].toString(); | ||
if (str === '[object Object]') { | ||
str = JSON.stringify(cpy[idx]); | ||
} | ||
cpy[idx] = str; | ||
} else if (typeof cpy[idx].stringify === 'function') { | ||
@@ -71,0 +75,0 @@ cpy[idx] = cpy[idx].stringify(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
765
38798
117