@lightspeed/online-payments-sdk 1.0.1 → 1.0.3

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.
@@ -12,6 +12,8 @@ var Logger = /** @class */ (function () {
12
12
  site: site,
13
13
  service: 'lsp-online-payments-sdk',
14
14
  env: env,
15
+ forwardErrorsToLogs: false,
16
+ forwardConsoleLogs: [],
15
17
  };
16
18
  var initConfig = browser_logs_1.datadogLogs.getInitConfiguration();
17
19
  if (!initConfig) {
@@ -58,7 +58,8 @@ function mountPaymentWidget(session, config) {
58
58
  logger_2 = (0, logger_1.getLogger)(decodedSession.logging);
59
59
  logger_2.setSessionMetadata(decodedSession.metadata);
60
60
  eventBroadcaster.registerMiddleware(function (event) {
61
- logger_2.log('info', event.status, event);
61
+ // don't log the event directly because the event.status overwrites the datadog status code
62
+ logger_2.log('info', event.status, { event: event });
62
63
  return event;
63
64
  });
64
65
  logger_2.log('info', 'Mount');
@@ -9,6 +9,8 @@ var Logger = /** @class */ (function () {
9
9
  site: site,
10
10
  service: 'lsp-online-payments-sdk',
11
11
  env: env,
12
+ forwardErrorsToLogs: false,
13
+ forwardConsoleLogs: [],
12
14
  };
13
15
  var initConfig = datadogLogs.getInitConfiguration();
14
16
  if (!initConfig) {
package/dist/v1/widget.js CHANGED
@@ -55,7 +55,8 @@ export function mountPaymentWidget(session, config) {
55
55
  logger_1 = getLogger(decodedSession.logging);
56
56
  logger_1.setSessionMetadata(decodedSession.metadata);
57
57
  eventBroadcaster.registerMiddleware(function (event) {
58
- logger_1.log('info', event.status, event);
58
+ // don't log the event directly because the event.status overwrites the datadog status code
59
+ logger_1.log('info', event.status, { event: event });
59
60
  return event;
60
61
  });
61
62
  logger_1.log('info', 'Mount');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightspeed/online-payments-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Process online-payments with Lightspeed Payments",
5
5
  "author": "Lightspeed Commerce Inc.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",