@mongodb-js/compass-web 0.5.0 → 0.5.2
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/entrypoint.d.ts.map +1 -1
- package/dist/index.js +209 -209
- package/dist/logger-and-telemetry.d.ts +5 -8
- package/dist/logger-and-telemetry.d.ts.map +1 -1
- package/package.json +30 -29
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Logger } from '@mongodb-js/compass-logging/provider';
|
|
2
2
|
import { mongoLogId } from '@mongodb-js/compass-logging/provider';
|
|
3
3
|
export type TrackFunction = (event: string, properties: Record<string, any>) => void;
|
|
4
4
|
export type LogFunction = (type: 'debug' | 'info' | 'warn' | 'error' | 'fatal', ...args: any[]) => void;
|
|
5
5
|
export type DebugFunction = (...args: any[]) => void;
|
|
6
|
-
type Debugger =
|
|
7
|
-
export declare class CompassWebLoggerAndTelemetry implements
|
|
6
|
+
type Debugger = Logger['debug'];
|
|
7
|
+
export declare class CompassWebLoggerAndTelemetry implements Logger {
|
|
8
8
|
private component;
|
|
9
9
|
private callbackRef;
|
|
10
|
-
log:
|
|
10
|
+
log: Logger['log'];
|
|
11
11
|
debug: Debugger;
|
|
12
12
|
constructor(component: string, callbackRef: {
|
|
13
13
|
current: {
|
|
14
|
-
onTrack?: TrackFunction;
|
|
15
14
|
onLog?: LogFunction;
|
|
16
15
|
onDebug?: DebugFunction;
|
|
17
16
|
};
|
|
18
17
|
});
|
|
19
|
-
track: (event: string, properties?: Record<string, any> | (() => Record<string, any>)) => void;
|
|
20
18
|
mongoLogId: typeof mongoLogId;
|
|
21
|
-
createLogger: (component: string) =>
|
|
19
|
+
createLogger: (component: string) => Logger;
|
|
22
20
|
}
|
|
23
21
|
export declare function useCompassWebLoggerAndTelemetry(callbacks: {
|
|
24
22
|
onLog?: LogFunction;
|
|
25
23
|
onDebug?: DebugFunction;
|
|
26
|
-
onTrack?: TrackFunction;
|
|
27
24
|
}): CompassWebLoggerAndTelemetry;
|
|
28
25
|
export {};
|
|
29
26
|
//# sourceMappingURL=logger-and-telemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-and-telemetry.d.ts","sourceRoot":"","sources":["../src/logger-and-telemetry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"logger-and-telemetry.d.ts","sourceRoot":"","sources":["../src/logger-and-telemetry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEP,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,MAAM,MAAM,aAAa,GAAG,CAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5B,IAAI,CAAC;AAEV,MAAM,MAAM,WAAW,GAAG,CACxB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,EACnD,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,IAAI,CAAC;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAwErD,KAAK,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AA+BhC,qBAAa,4BAA6B,YAAW,MAAM;IAMvD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,WAAW;IANrB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnB,KAAK,EAAE,QAAQ,CAAC;gBAGN,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE;QACnB,OAAO,EAAE;YACP,KAAK,CAAC,EAAE,WAAW,CAAC;YACpB,OAAO,CAAC,EAAE,aAAa,CAAC;SACzB,CAAC;KACH;IASH,UAAU,oBAAc;IAExB,YAAY,cAAe,MAAM,KAAG,MAAM,CAExC;CACH;AAED,wBAAgB,+BAA+B,CAAC,SAAS,EAAE;IACzD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,4BAA4B,CAW/B"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"email": "compass@mongodb.com"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/mongodb-js/compass",
|
|
17
|
-
"version": "0.5.
|
|
17
|
+
"version": "0.5.2",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/mongodb-js/compass.git"
|
|
@@ -62,31 +62,32 @@
|
|
|
62
62
|
"react-dom": "^17.0.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@mongodb-js/atlas-service": "^0.
|
|
66
|
-
"@mongodb-js/compass-aggregations": "^9.
|
|
67
|
-
"@mongodb-js/compass-app-stores": "^7.
|
|
68
|
-
"@mongodb-js/compass-collection": "^4.
|
|
69
|
-
"@mongodb-js/compass-components": "^1.
|
|
70
|
-
"@mongodb-js/compass-connections": "^1.
|
|
71
|
-
"@mongodb-js/compass-crud": "^13.
|
|
72
|
-
"@mongodb-js/compass-databases-collections": "^1.
|
|
73
|
-
"@mongodb-js/compass-explain-plan": "^6.
|
|
74
|
-
"@mongodb-js/compass-export-to-language": "^9.
|
|
75
|
-
"@mongodb-js/compass-field-store": "^9.
|
|
76
|
-
"@mongodb-js/compass-generative-ai": "^0.
|
|
77
|
-
"@mongodb-js/compass-indexes": "^5.
|
|
78
|
-
"@mongodb-js/compass-logging": "^1.
|
|
79
|
-
"@mongodb-js/compass-query-bar": "^8.
|
|
80
|
-
"@mongodb-js/compass-schema": "^6.
|
|
81
|
-
"@mongodb-js/compass-schema-validation": "^6.
|
|
82
|
-
"@mongodb-js/compass-sidebar": "^5.
|
|
83
|
-
"@mongodb-js/compass-
|
|
84
|
-
"@mongodb-js/
|
|
85
|
-
"@mongodb-js/
|
|
65
|
+
"@mongodb-js/atlas-service": "^0.23.0",
|
|
66
|
+
"@mongodb-js/compass-aggregations": "^9.36.0",
|
|
67
|
+
"@mongodb-js/compass-app-stores": "^7.20.0",
|
|
68
|
+
"@mongodb-js/compass-collection": "^4.33.0",
|
|
69
|
+
"@mongodb-js/compass-components": "^1.26.1",
|
|
70
|
+
"@mongodb-js/compass-connections": "^1.34.0",
|
|
71
|
+
"@mongodb-js/compass-crud": "^13.34.0",
|
|
72
|
+
"@mongodb-js/compass-databases-collections": "^1.33.0",
|
|
73
|
+
"@mongodb-js/compass-explain-plan": "^6.34.0",
|
|
74
|
+
"@mongodb-js/compass-export-to-language": "^9.10.0",
|
|
75
|
+
"@mongodb-js/compass-field-store": "^9.9.0",
|
|
76
|
+
"@mongodb-js/compass-generative-ai": "^0.17.0",
|
|
77
|
+
"@mongodb-js/compass-indexes": "^5.33.0",
|
|
78
|
+
"@mongodb-js/compass-logging": "^1.4.0",
|
|
79
|
+
"@mongodb-js/compass-query-bar": "^8.35.0",
|
|
80
|
+
"@mongodb-js/compass-schema": "^6.35.0",
|
|
81
|
+
"@mongodb-js/compass-schema-validation": "^6.34.0",
|
|
82
|
+
"@mongodb-js/compass-sidebar": "^5.34.0",
|
|
83
|
+
"@mongodb-js/compass-telemetry": "^1.1.0",
|
|
84
|
+
"@mongodb-js/compass-workspaces": "^0.15.0",
|
|
85
|
+
"@mongodb-js/connection-storage": "^0.15.0",
|
|
86
|
+
"@mongodb-js/eslint-config-compass": "^1.1.2",
|
|
86
87
|
"@mongodb-js/mocha-config-compass": "^1.3.9",
|
|
87
88
|
"@mongodb-js/prettier-config-compass": "^1.0.2",
|
|
88
89
|
"@mongodb-js/tsconfig-compass": "^1.0.4",
|
|
89
|
-
"@mongodb-js/webpack-config-compass": "^1.3.
|
|
90
|
+
"@mongodb-js/webpack-config-compass": "^1.3.12",
|
|
90
91
|
"@testing-library/react": "^12.1.5",
|
|
91
92
|
"@testing-library/react-hooks": "^7.0.2",
|
|
92
93
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -101,23 +102,23 @@
|
|
|
101
102
|
"bson": "^6.2.0",
|
|
102
103
|
"buffer": "^6.0.3",
|
|
103
104
|
"chai": "^4.3.6",
|
|
104
|
-
"compass-preferences-model": "^2.
|
|
105
|
+
"compass-preferences-model": "^2.24.0",
|
|
105
106
|
"crypto-browserify": "^3.12.0",
|
|
106
107
|
"debug": "^4.3.4",
|
|
107
108
|
"depcheck": "^1.4.1",
|
|
108
109
|
"dns-query": "^0.11.2",
|
|
109
|
-
"electron": "^29.4.
|
|
110
|
+
"electron": "^29.4.3",
|
|
110
111
|
"eslint": "^7.25.0",
|
|
111
112
|
"events": "^3.3.0",
|
|
112
113
|
"express": "^4.19.2",
|
|
113
114
|
"express-http-proxy": "^2.0.0",
|
|
114
|
-
"hadron-app-registry": "^9.
|
|
115
|
+
"hadron-app-registry": "^9.2.0",
|
|
115
116
|
"is-ip": "^5.0.1",
|
|
116
117
|
"lodash": "^4.17.21",
|
|
117
118
|
"mocha": "^10.2.0",
|
|
118
|
-
"mongodb": "^6.
|
|
119
|
+
"mongodb": "^6.7.0",
|
|
119
120
|
"mongodb-connection-string-url": "^3.0.1",
|
|
120
|
-
"mongodb-data-service": "^22.
|
|
121
|
+
"mongodb-data-service": "^22.22.0",
|
|
121
122
|
"nyc": "^15.1.0",
|
|
122
123
|
"os-browserify": "^0.3.0",
|
|
123
124
|
"path-browserify": "^1.0.1",
|
|
@@ -131,5 +132,5 @@
|
|
|
131
132
|
"whatwg-url": "^13.0.0",
|
|
132
133
|
"ws": "^8.16.0"
|
|
133
134
|
},
|
|
134
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "b240534d2d86077263da163a4eab50bf766d540c"
|
|
135
136
|
}
|