@nsshunt/stsoauth2plugin 1.0.61 → 1.0.62

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.
@@ -36,6 +36,7 @@ var __privateMethod = (obj, member, method) => {
36
36
  };
37
37
  var _crypto, _router, _cUtils, _qParams, _STORAGE_AUTHORIZE_OPTIONS_KEY, _STORAGE_SESSION_KEY, _aic, _options, _messages, _oauth2ManagerPort, _messageId, _messageHandlers, _messageTimeout, _worker, _transactionStore, _operationSemaphore, _maxSemaphoreRetries, _semaphoreRetrySleep, _ProcessMessageResponse, _PostMessage, _HandleLogEvent, _HandleUpdateInstrumentEvent, _GetStore, _HandleErrorEvent, _HandleAuthenticateEvent, _SetupRoute, _clientSessionStore, _cUtils2, _qParams2, _STORAGE_SESSION_KEY2, _oauthWorkerPort, _options2, _httpsAgent, _logger, _LogDebugMessage, LogDebugMessage_fn, _LogInfoMessage, LogInfoMessage_fn, _LogErrorMessage, LogErrorMessage_fn, _HandleAuthenticateEvent2, _HandleErrorEvent2, _LogMessage, _GetAccessToken, _GetCookies, _UpdateInstrument, _ProcessCommand, _RestoreSession, _Authorize, _HandleRedirect, _GetTokenFromBroker, _GetToken, _RefreshToken, _Logout;
38
38
  import { inject } from "vue";
39
+ import Debug from "debug";
39
40
  import * as wt from "node:worker_threads";
40
41
  import { OAuth2ParameterType, Sleep } from "@nsshunt/stsutils";
41
42
  import { ClientStorageFactory, ClientStorageType } from "@nsshunt/stsvueutils";
@@ -2535,9 +2536,12 @@ const STSOauth2Store = defineStore("__sts__STSOauth2Store", {
2535
2536
  }
2536
2537
  */
2537
2538
  });
2538
- const debug = (message) => {
2539
- console.log(message);
2540
- };
2539
+ let debug;
2540
+ if (isNode) {
2541
+ debug = Debug(`proc:${process.pid}:stsoauth2manager.ts`);
2542
+ } else {
2543
+ debug = Debug(`proc:0:stsoauth2manager.ts`);
2544
+ }
2541
2545
  class STSOAuth2Manager {
2542
2546
  // ms
2543
2547
  constructor(app, options) {