@openfn/logger
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -63,8 +63,5 @@ // src/logger.ts | ||
level: "default", | ||
// TODO support an array of emitters here | ||
logger: defaultEmitter, | ||
// I guess? | ||
hideNamespace: false, | ||
hideIcons: false, | ||
// Not implemented | ||
wrap: false, | ||
@@ -178,5 +175,5 @@ showTimestamps: false, | ||
delete timers[name2]; | ||
return duration_default((/* @__PURE__ */ new Date()).getTime() - startTime); | ||
return duration_default(new Date().getTime() - startTime); | ||
} | ||
timers[name2] = (/* @__PURE__ */ new Date()).getTime(); | ||
timers[name2] = new Date().getTime(); | ||
}; | ||
@@ -195,10 +192,6 @@ const wrap = (level) => (...args) => log(level, ...args); | ||
print, | ||
// possible convenience APIs | ||
force: () => { | ||
}, | ||
// force the next lines to log (even if silent) | ||
unforce: () => { | ||
}, | ||
// restore silent default | ||
// print a line break | ||
break: () => { | ||
@@ -209,5 +202,3 @@ console.log(); | ||
}, | ||
// set the indent level | ||
options: opts | ||
// debug and testing | ||
}; | ||
@@ -286,3 +277,2 @@ return logger; | ||
level, | ||
// Chop out the square brackets from the namespace, it's a style thing and annoying in tests | ||
namespace: namespace.substring(1, namespace.length - 1), | ||
@@ -289,0 +279,0 @@ icon, |
{ | ||
"name": "@openfn/logger", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Cross-package logging utility", | ||
@@ -32,3 +32,3 @@ "module": "dist/index.js", | ||
"tslib": "^2.4.0", | ||
"tsup": "^7.1.0", | ||
"tsup": "^6.2.3", | ||
"typescript": "^4.8.3" | ||
@@ -35,0 +35,0 @@ }, |
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
13013
361