@autofleet/zehut 1.4.6-debug → 1.4.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.
package/lib/tracer.d.ts CHANGED
@@ -10,6 +10,6 @@ declare class Trace {
10
10
  constructor(type: any);
11
11
  }
12
12
  export declare const newTrace: (type: any) => Trace;
13
- export declare const enable: () => () => asyncHooks.AsyncHook;
13
+ export declare const enable: () => asyncHooks.AsyncHook;
14
14
  export declare const getCurrentTrace: () => any;
15
15
  export default tracer;
package/lib/tracer.js CHANGED
@@ -48,12 +48,8 @@ class Trace {
48
48
  exports.newTrace = (type) => {
49
49
  tracer.currentTrace = new Trace(type);
50
50
  tracer.traces[async_hooks_1.default.executionAsyncId()] = tracer.currentTrace;
51
- console.log('setting trace in id: ', async_hooks_1.default.executionAsyncId(), tracer.currentTrace);
52
51
  return tracer.currentTrace;
53
52
  };
54
- exports.enable = () => () => hook.enable();
55
- exports.getCurrentTrace = () => {
56
- console.log('getting current trace which is: ', async_hooks_1.default.executionAsyncId(), tracer.currentTrace);
57
- return tracer.currentTrace || {};
58
- };
53
+ exports.enable = () => hook.enable();
54
+ exports.getCurrentTrace = () => tracer.currentTrace || {};
59
55
  exports.default = tracer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/zehut",
3
- "version": "1.4.6-debug",
3
+ "version": "1.4.7",
4
4
  "description": "manage user's identity",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",