@youpaichris/logger 6.0.6 → 6.0.7

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
  3. package/tests.js +1 -3
package/index.js CHANGED
@@ -124,7 +124,7 @@ function getCallerPath() {
124
124
  class Logger {
125
125
  #prefix;
126
126
 
127
- constructor({path = null, save = false}) {
127
+ constructor(save = false, path = null) {
128
128
  this.path = path ? path : getCallerPath();
129
129
  this.save = save;
130
130
  if (save) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youpaichris/logger",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests.js CHANGED
@@ -8,9 +8,7 @@
8
8
  * */
9
9
  const Logger = require('./index.js');
10
10
 
11
- const logger = new Logger({
12
- save: true,
13
- });
11
+ const logger = new Logger();
14
12
 
15
13
  logger.info("info")
16
14
  logger.debug("debug");