@nsshunt/stsoauth2plugin 1.0.59 → 1.0.61

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,7 +36,6 @@ 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";
40
39
  import * as wt from "node:worker_threads";
41
40
  import { OAuth2ParameterType, Sleep } from "@nsshunt/stsutils";
42
41
  import { ClientStorageFactory, ClientStorageType } from "@nsshunt/stsvueutils";
@@ -2536,12 +2535,9 @@ const STSOauth2Store = defineStore("__sts__STSOauth2Store", {
2536
2535
  }
2537
2536
  */
2538
2537
  });
2539
- let debug;
2540
- if (isNode) {
2541
- debug = Debug(`proc:${process.pid}:stsoauth2manager.ts`);
2542
- } else {
2543
- debug = Debug(`proc:0:stsoauth2manager.ts`);
2544
- }
2538
+ const debug = (message) => {
2539
+ console.log(message);
2540
+ };
2545
2541
  class STSOAuth2Manager {
2546
2542
  // ms
2547
2543
  constructor(app, options) {