@dxos/debug 0.8.4-main.f9ba587 → 0.8.4-main.fbb7a13

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/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@dxos/debug",
3
- "version": "0.8.4-main.f9ba587",
3
+ "version": "0.8.4-main.fbb7a13",
4
4
  "description": "Debug utilities",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
10
14
  "type": "module",
11
15
  "exports": {
12
16
  ".": {
17
+ "types": "./dist/types/src/index.d.ts",
13
18
  "browser": "./dist/lib/browser/index.mjs",
14
19
  "node": {
15
20
  "require": "./dist/lib/node/index.cjs",
16
21
  "default": "./dist/lib/node-esm/index.mjs"
17
- },
18
- "types": "./dist/types/src/index.d.ts"
22
+ }
19
23
  }
20
24
  },
21
25
  "types": "dist/types/src/index.d.ts",
@@ -27,7 +31,7 @@
27
31
  "src"
28
32
  ],
29
33
  "dependencies": {
30
- "@dxos/node-std": "0.8.4-main.f9ba587"
34
+ "@dxos/node-std": "0.8.4-main.fbb7a13"
31
35
  },
32
36
  "devDependencies": {},
33
37
  "publishConfig": {
package/src/log-method.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
+ /* eslint-disable no-console */
6
+
5
7
  export function logMethod(
6
8
  target: any,
7
9
  propertyName: string,
package/src/snoop.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
+ /* eslint-disable no-console */
6
+
5
7
  export enum SnoopLevel {
6
8
  DEFAULT = 0,
7
9
  VERBOSE = 1,
@@ -14,6 +14,7 @@ import { StackTrace } from './stack-trace';
14
14
  export const warnAfterTimeout = async <T>(timeout: number, context: string, body: () => Promise<T>): Promise<T> => {
15
15
  const stack = new StackTrace();
16
16
  const timeoutId = setTimeout(() => {
17
+ // eslint-disable-next-line no-console
17
18
  console.warn(
18
19
  `Action \`${context}\` is taking more then ${timeout.toLocaleString()}ms to complete. This might be a bug.\n${stack.getStack()}`,
19
20
  );