@libp2p/logger 3.0.2 → 3.0.3-50f912c2

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.
@@ -1,7 +1,7 @@
1
1
  export interface Logger {
2
2
  (formatter: any, ...args: any[]): void;
3
- error: (formatter: any, ...args: any[]) => void;
4
- trace: (formatter: any, ...args: any[]) => void;
3
+ error(formatter: any, ...args: any[]): void;
4
+ trace(formatter: any, ...args: any[]): void;
5
5
  enabled: boolean;
6
6
  }
7
7
  export declare function logger(name: string): Logger;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA4CA,MAAM,WAAW,MAAM;IACrB,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACtC,KAAK,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;IAC/C,KAAK,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;IAC/C,OAAO,EAAE,OAAO,CAAA;CACjB;AAeD,wBAAgB,MAAM,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa5C;AAED,wBAAgB,OAAO,IAAK,IAAI,CAE/B;AAED,wBAAgB,MAAM,CAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,wBAAgB,OAAO,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA4CA,MAAM,WAAW,MAAM;IACrB,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAC3C,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAC3C,OAAO,EAAE,OAAO,CAAA;CACjB;AAeD,wBAAgB,MAAM,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa5C;AAED,wBAAgB,OAAO,IAAK,IAAI,CAE/B;AAED,wBAAgB,MAAM,CAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,wBAAgB,OAAO,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/logger",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-50f912c2",
4
4
  "description": "A logging component for use in js-libp2p modules",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/logger#readme",
@@ -31,6 +31,7 @@
31
31
  "eslintConfig": {
32
32
  "extends": "ipfs",
33
33
  "parserOptions": {
34
+ "project": true,
34
35
  "sourceType": "module"
35
36
  }
36
37
  },
@@ -48,17 +49,17 @@
48
49
  "test:electron-main": "aegir test -t electron-main"
49
50
  },
50
51
  "dependencies": {
51
- "@libp2p/interface": "^0.1.2",
52
+ "@libp2p/interface": "0.1.3-50f912c2",
52
53
  "@multiformats/multiaddr": "^12.1.5",
53
54
  "debug": "^4.3.4",
54
55
  "interface-datastore": "^8.2.0",
55
56
  "multiformats": "^12.0.1"
56
57
  },
57
58
  "devDependencies": {
58
- "@libp2p/peer-id": "^3.0.2",
59
+ "@libp2p/peer-id": "3.0.3-50f912c2",
59
60
  "@types/debug": "^4.1.7",
60
- "aegir": "^40.0.8",
61
- "sinon": "^15.1.2",
61
+ "aegir": "^41.0.2",
62
+ "sinon": "^17.0.0",
62
63
  "uint8arrays": "^4.0.4"
63
64
  }
64
65
  }
package/src/index.ts CHANGED
@@ -44,8 +44,8 @@ debug.formatters.a = (v?: Multiaddr): string => {
44
44
 
45
45
  export interface Logger {
46
46
  (formatter: any, ...args: any[]): void
47
- error: (formatter: any, ...args: any[]) => void
48
- trace: (formatter: any, ...args: any[]) => void
47
+ error(formatter: any, ...args: any[]): void
48
+ trace(formatter: any, ...args: any[]): void
49
49
  enabled: boolean
50
50
  }
51
51
 
@@ -1,7 +0,0 @@
1
- {
2
- "Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_logger.Logger.html",
3
- "disable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_logger.disable.html",
4
- "enable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_logger.enable.html",
5
- "enabled": "https://libp2p.github.io/js-libp2p/functions/_libp2p_logger.enabled.html",
6
- "logger": "https://libp2p.github.io/js-libp2p/functions/_libp2p_logger.logger-1.html"
7
- }