@nsshunt/stsoauth2plugin 1.0.118 → 1.0.119

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.
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("node:worker_threads"), require("@nsshunt/stsutils"), require("@nsshunt/stsvueutils"), require("pinia"), require("@nsshunt/stsobservability"), require("axios"), require("node:http"), require("node:https")) : typeof define === "function" && define.amd ? define(["exports", "vue", "node:worker_threads", "@nsshunt/stsutils", "@nsshunt/stsvueutils", "pinia", "@nsshunt/stsobservability", "axios", "node:http", "node:https"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["@nsshunt/stsoauth2plugin"] = {}, global2.vue, global2.worker_threads, global2.stsutils, global2.stsvueutils, global2.pinia, global2.stsobservability, global2.axios, global2.http, global2.https));
3
- })(this, function(exports2, vue, wt, stsutils, stsvueutils, pinia, stsobservability, axios, http, https) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("node:worker_threads"), require("@nsshunt/stsutils"), require("@nsshunt/stsvueutils"), require("pinia"), require("@nsshunt/stsobservability"), require("axios"), require("node:fs"), require("crypto"), require("node:http"), require("node:https")) : typeof define === "function" && define.amd ? define(["exports", "vue", "node:worker_threads", "@nsshunt/stsutils", "@nsshunt/stsvueutils", "pinia", "@nsshunt/stsobservability", "axios", "node:fs", "crypto", "node:http", "node:https"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["@nsshunt/stsoauth2plugin"] = {}, global2.vue, global2.worker_threads, global2.stsutils, global2.stsvueutils, global2.pinia, global2.stsobservability, global2.axios, global2.fs, global2.crypto, global2.http, global2.https));
3
+ })(this, function(exports2, vue, wt, stsutils, stsvueutils, pinia, stsobservability, axios, fs$1, require$$3, http, https) {
4
4
  "use strict";var __defProp = Object.defineProperty;
5
5
  var __typeError = (msg) => {
6
6
  throw TypeError(msg);
@@ -39,6 +39,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
39
39
  return Object.freeze(n);
40
40
  }
41
41
  const wt__namespace = /* @__PURE__ */ _interopNamespaceDefault(wt);
42
+ const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs$1);
42
43
  const STSOAuth2ManagerPluginKey = Symbol();
43
44
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
44
45
  function getDefaultExportFromCjs(x) {
@@ -2008,12 +2009,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2008
2009
  throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2009
2010
  }
2010
2011
  var core = { exports: {} };
2011
- const __viteBrowserExternal = {};
2012
- const fs$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2013
- __proto__: null,
2014
- default: __viteBrowserExternal
2015
- }, Symbol.toStringTag, { value: "Module" }));
2016
- const require$$3 = /* @__PURE__ */ getAugmentedNamespace(fs$1);
2017
2012
  var hasRequiredCore;
2018
2013
  function requireCore() {
2019
2014
  if (hasRequiredCore) return core.exports;
@@ -2043,7 +2038,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2043
2038
  }
2044
2039
  if (!crypto2 && typeof commonjsRequire === "function") {
2045
2040
  try {
2046
- crypto2 = require$$3;
2041
+ crypto2 = require("crypto");
2047
2042
  } catch (err) {
2048
2043
  }
2049
2044
  }
@@ -2853,7 +2848,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2853
2848
  try {
2854
2849
  __privateSet(this, _crypto, crypto);
2855
2850
  } catch {
2856
- __privateSet(this, _crypto, require("crypto"));
2851
+ __privateSet(this, _crypto, require("node:crypto"));
2857
2852
  }
2858
2853
  }
2859
2854
  }
@@ -2958,6 +2953,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2958
2953
  StatusCodes2[StatusCodes2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
2959
2954
  })(StatusCodes || (StatusCodes = {}));
2960
2955
  var main$1 = { exports: {} };
2956
+ const __viteBrowserExternal = {};
2957
+ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2958
+ __proto__: null,
2959
+ default: __viteBrowserExternal
2960
+ }, Symbol.toStringTag, { value: "Module" }));
2961
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
2961
2962
  const name = "dotenv";
2962
2963
  const version$1 = "16.4.5";
2963
2964
  const description = "Loads environment variables from .env file";
@@ -3038,9 +3039,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3038
3039
  engines,
3039
3040
  browser: browser$1
3040
3041
  };
3041
- const fs = require$$3;
3042
- const path = require$$3;
3043
- const os = require$$3;
3042
+ const fs = require$$2;
3043
+ const path = require$$2;
3044
+ const os = require$$2;
3044
3045
  const crypto$1 = require$$3;
3045
3046
  const packageJson = require$$4;
3046
3047
  const version = packageJson.version;
@@ -4585,7 +4586,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4585
4586
  if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
4586
4587
  throw new Error("The `level` option should be an integer from 0 to 3");
4587
4588
  }
4588
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
4589
+ const colorLevel = 0;
4589
4590
  object.level = options.level === void 0 ? colorLevel : options.level;
4590
4591
  };
4591
4592
  class ChalkClass {
@@ -4735,9 +4736,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4735
4736
  Object.defineProperties(Chalk.prototype, styles);
4736
4737
  const chalk = Chalk();
4737
4738
  chalk.supportsColor = stdoutColor;
4738
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4739
+ chalk.stderr = Chalk({ level: 0 });
4739
4740
  chalk.stderr.supportsColor = stderrColor;
4740
- const { accessSync, constants, readFileSync } = fs$1;
4741
+ const { accessSync, constants, readFileSync } = fs__namespace;
4741
4742
  const envOptions = {};
4742
4743
  function SetupConfig(envOptions2, logger) {
4743
4744
  const envfile = process.env.STSENVFILE === void 0 ? "/.env" : process.env.STSENVFILE;