@mongodb-js/compass-logging 1.1.3 → 1.1.5

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/dist/logger.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { MongoLogWriter, mongoLogId } from 'mongodb-log-writer';
2
2
  import createDebug from 'debug';
3
- declare type TrackProps = Record<string, any> | (() => Record<string, any>);
4
- declare type TrackFunction = (event: string, properties?: TrackProps) => void;
5
- export declare type LoggerAndTelemetry = {
3
+ type TrackProps = Record<string, any> | (() => Record<string, any>);
4
+ type TrackFunction = (event: string, properties?: TrackProps) => void;
5
+ export type LoggerAndTelemetry = {
6
6
  log: ReturnType<MongoLogWriter['bindComponent']>;
7
7
  mongoLogId: typeof mongoLogId;
8
8
  debug: ReturnType<typeof createDebug>;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,WAAW,MAAM,OAAO,CAAC;AAQhC,aAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AACpE,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAetE,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,EAAE,UAAU,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;IACjD,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,KAAK,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACtC,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAChB,kBAAkB,CA0FpB;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,WAAW,MAAM,OAAO,CAAC;AAQhC,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AACpE,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAetE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,UAAU,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;IACjD,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,KAAK,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACtC,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAChB,kBAAkB,CA0FpB;AAED,eAAe,wBAAwB,CAAC"}
package/dist/react.d.ts CHANGED
@@ -8,10 +8,10 @@ export declare function useTrackOnChange(component: string, onChange: (track: Lo
8
8
  useRef: any;
9
9
  useEffect: any;
10
10
  }): void;
11
- declare type ComponentProps<T> = T extends (props: infer P) => any ? P : T extends {
11
+ type ComponentProps<T> = T extends (props: infer P) => any ? P : T extends {
12
12
  new (props: infer P): any;
13
13
  } ? P : never;
14
- declare type ComponentReturnType<T> = T extends (...args: any[]) => infer R ? R : T extends {
14
+ type ComponentReturnType<T> = T extends (...args: any[]) => infer R ? R : T extends {
15
15
  new (...args: any[]): {
16
16
  render(...args: any[]): infer R;
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB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mongodb-js/compass",
16
- "version": "1.1.3",
16
+ "version": "1.1.5",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "https://github.com/mongodb-js/compass.git"
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "license": "SSPL",
25
25
  "peerDependencies": {
26
- "hadron-ipc": "^3.1.1"
26
+ "hadron-ipc": "^3.1.2"
27
27
  },
28
28
  "main": "dist/index.js",
29
29
  "compass:main": "src/index.ts",
@@ -42,7 +42,7 @@
42
42
  "check": "npm run lint && npm run depcheck",
43
43
  "check-ci": "npm run check",
44
44
  "test": "mocha",
45
- "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
45
+ "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
46
46
  "test-watch": "npm run test -- --watch",
47
47
  "test-ci": "npm run test-cov",
48
48
  "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
@@ -53,25 +53,25 @@
53
53
  "mongodb-log-writer": "^1.1.5"
54
54
  },
55
55
  "devDependencies": {
56
- "@mongodb-js/eslint-config-compass": "^1.0.3",
57
- "@mongodb-js/mocha-config-compass": "^1.0.2",
56
+ "@mongodb-js/eslint-config-compass": "^1.0.5",
57
+ "@mongodb-js/mocha-config-compass": "^1.1.1",
58
58
  "@mongodb-js/prettier-config-compass": "^1.0.0",
59
- "@mongodb-js/tsconfig-compass": "^1.0.1",
59
+ "@mongodb-js/tsconfig-compass": "^1.0.2",
60
60
  "@types/chai": "^4.2.21",
61
61
  "@types/mocha": "^9.0.0",
62
62
  "@types/sinon-chai": "^3.2.5",
63
63
  "chai": "^4.3.4",
64
64
  "depcheck": "^1.4.1",
65
65
  "eslint": "^7.25.0",
66
- "hadron-ipc": "^3.1.1",
67
- "mocha": "^8.4.0",
66
+ "hadron-ipc": "^3.1.2",
67
+ "mocha": "^10.2.0",
68
68
  "nyc": "^15.1.0",
69
69
  "prettier": "^2.7.1",
70
70
  "sinon": "^9.2.3",
71
- "typescript": "^4.8.3"
71
+ "typescript": "^5.0.4"
72
72
  },
73
73
  "optionalPeerDependencies": {
74
74
  "compass-preferences-model": "^2.0.0"
75
75
  },
76
- "gitHead": "96ec6b32140254def920e2b4a8dba9be56633f75"
76
+ "gitHead": "e4f2643a437ce2407657a63246e303d13ce8297b"
77
77
  }