@workleap/logrocket 2.0.2 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @workleap/logrocket
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101](https://github.com/workleap/wl-telemetry/pull/101) [`107d7ef`](https://github.com/workleap/wl-telemetry/commit/107d7efecd77470c8d13ee2ca055cf27405b31a8) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Added "noop" clients for LogRocket, Honeycomb and Mixpanel.
8
+
3
9
  ## 2.0.2
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,4 @@
1
+ import type { LogRocketInstrumentationPartialClient } from "@workleap-telemetry/core";
2
+ export declare class NoopLogRocketInstrumentationClient implements LogRocketInstrumentationPartialClient {
3
+ registerGetSessionUrlListener(): void;
4
+ }
@@ -0,0 +1,9 @@
1
+
2
+ ;// CONCATENATED MODULE: ./src/js/NoopLogRocketInstrumentationClient.ts
3
+ class NoopLogRocketInstrumentationClient {
4
+ registerGetSessionUrlListener() {}
5
+ }
6
+
7
+ export { NoopLogRocketInstrumentationClient };
8
+
9
+ //# sourceMappingURL=NoopLogRocketInstrumentationClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/NoopLogRocketInstrumentationClient.js","sources":["webpack://@workleap/logrocket/./src/js/NoopLogRocketInstrumentationClient.ts"],"sourcesContent":["import type { LogRocketInstrumentationPartialClient } from \"@workleap-telemetry/core\";\n\nexport class NoopLogRocketInstrumentationClient implements LogRocketInstrumentationPartialClient {\n registerGetSessionUrlListener() {}\n}\n"],"names":["NoopLogRocketInstrumentationClient"],"mappings":";;AAEO,MAAMA;IACT,gCAAgC,CAAC;AACrC"}
@@ -3,4 +3,5 @@ export type { LogRocketSdkOptionsTransformer } from "./applyTransformers.ts";
3
3
  export { LogRocketInstrumentationClient, type GetLogRocketSessionUrlListener, type LogRocketWorkleapPlatformIdentification, type LogRocketWorkleapPlatformUserTraits } from "./LogRocketInstrumentationClient.ts";
4
4
  export { LogRocketLogger, LogRocketLoggerScope } from "./LogRocketLogger.ts";
5
5
  export type * from "./logRocketTypes.ts";
6
+ export { NoopLogRocketInstrumentationClient } from "./NoopLogRocketInstrumentationClient.ts";
6
7
  export { registerLogRocketInstrumentation, type RegisterLogRocketInstrumentationOptions } from "./registerLogRocketInstrumentation.ts";
package/dist/js/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createTelemetryContext } from "@workleap-telemetry/core";
2
2
  import { LogRocketInstrumentationClient } from "./LogRocketInstrumentationClient.js";
3
3
  import { LogRocketLogger, LogRocketLoggerScope } from "./LogRocketLogger.js";
4
+ import { NoopLogRocketInstrumentationClient } from "./NoopLogRocketInstrumentationClient.js";
4
5
  import { registerLogRocketInstrumentation } from "./registerLogRocketInstrumentation.js";
5
6
 
6
7
  ;// CONCATENATED MODULE: external "@workleap-telemetry/core"
@@ -9,6 +10,8 @@ import { registerLogRocketInstrumentation } from "./registerLogRocketInstrumenta
9
10
 
10
11
  ;// CONCATENATED MODULE: external "./LogRocketLogger.js"
11
12
 
13
+ ;// CONCATENATED MODULE: external "./NoopLogRocketInstrumentationClient.js"
14
+
12
15
  ;// CONCATENATED MODULE: external "./registerLogRocketInstrumentation.js"
13
16
 
14
17
  ;// CONCATENATED MODULE: ./src/js/index.ts
@@ -17,6 +20,7 @@ import { registerLogRocketInstrumentation } from "./registerLogRocketInstrumenta
17
20
 
18
21
 
19
22
 
20
- export { LogRocketInstrumentationClient, LogRocketLogger, LogRocketLoggerScope, createTelemetryContext, registerLogRocketInstrumentation };
23
+
24
+ export { LogRocketInstrumentationClient, LogRocketLogger, LogRocketLoggerScope, NoopLogRocketInstrumentationClient, createTelemetryContext, registerLogRocketInstrumentation };
21
25
 
22
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/index.js","sources":["webpack://@workleap/logrocket/./src/js/index.ts"],"sourcesContent":["export { createTelemetryContext, type CreateTelemetryContextOptions, type TelemetryContext } from \"@workleap-telemetry/core\";\nexport type { LogRocketSdkOptionsTransformer } from \"./applyTransformers.ts\";\nexport { LogRocketInstrumentationClient, type GetLogRocketSessionUrlListener, type LogRocketWorkleapPlatformIdentification, type LogRocketWorkleapPlatformUserTraits } from \"./LogRocketInstrumentationClient.ts\";\nexport { LogRocketLogger, LogRocketLoggerScope } from \"./LogRocketLogger.ts\";\nexport type * from \"./logRocketTypes.ts\";\nexport { registerLogRocketInstrumentation, type RegisterLogRocketInstrumentationOptions } from \"./registerLogRocketInstrumentation.ts\";\n\n\n"],"names":["createTelemetryContext","LogRocketInstrumentationClient","LogRocketLogger","LogRocketLoggerScope","registerLogRocketInstrumentation"],"mappings":";;;;;;;;;;;;;;AAA6H;AAEqF;AACrI;AAE0D"}
1
+ {"version":3,"file":"js/index.js","sources":["webpack://@workleap/logrocket/./src/js/index.ts"],"sourcesContent":["export { createTelemetryContext, type CreateTelemetryContextOptions, type TelemetryContext } from \"@workleap-telemetry/core\";\nexport type { LogRocketSdkOptionsTransformer } from \"./applyTransformers.ts\";\nexport { LogRocketInstrumentationClient, type GetLogRocketSessionUrlListener, type LogRocketWorkleapPlatformIdentification, type LogRocketWorkleapPlatformUserTraits } from \"./LogRocketInstrumentationClient.ts\";\nexport { LogRocketLogger, LogRocketLoggerScope } from \"./LogRocketLogger.ts\";\nexport type * from \"./logRocketTypes.ts\";\nexport { NoopLogRocketInstrumentationClient } from \"./NoopLogRocketInstrumentationClient.ts\";\nexport { registerLogRocketInstrumentation, type RegisterLogRocketInstrumentationOptions } from \"./registerLogRocketInstrumentation.ts\";\n\n\n"],"names":["createTelemetryContext","LogRocketInstrumentationClient","LogRocketLogger","LogRocketLoggerScope","NoopLogRocketInstrumentationClient","registerLogRocketInstrumentation"],"mappings":";;;;;;;;;;;;;;;;;AAA6H;AAEqF;AACrI;AAEgB;AAC0C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workleap/logrocket",
3
3
  "author": "Workleap",
4
- "version": "2.0.2",
4
+ "version": "2.1.0",
5
5
  "description": "A package containing utilities for LogRocket.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -0,0 +1,5 @@
1
+ import type { LogRocketInstrumentationPartialClient } from "@workleap-telemetry/core";
2
+
3
+ export class NoopLogRocketInstrumentationClient implements LogRocketInstrumentationPartialClient {
4
+ registerGetSessionUrlListener() {}
5
+ }
package/src/js/index.ts CHANGED
@@ -3,6 +3,7 @@ export type { LogRocketSdkOptionsTransformer } from "./applyTransformers.ts";
3
3
  export { LogRocketInstrumentationClient, type GetLogRocketSessionUrlListener, type LogRocketWorkleapPlatformIdentification, type LogRocketWorkleapPlatformUserTraits } from "./LogRocketInstrumentationClient.ts";
4
4
  export { LogRocketLogger, LogRocketLoggerScope } from "./LogRocketLogger.ts";
5
5
  export type * from "./logRocketTypes.ts";
6
+ export { NoopLogRocketInstrumentationClient } from "./NoopLogRocketInstrumentationClient.ts";
6
7
  export { registerLogRocketInstrumentation, type RegisterLogRocketInstrumentationOptions } from "./registerLogRocketInstrumentation.ts";
7
8
 
8
9