@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.
package/dist/stsoauth2plugin.mjs
CHANGED
|
@@ -25,6 +25,8 @@ import { ClientStorageFactory, ClientStorageType } from "@nsshunt/stsvueutils";
|
|
|
25
25
|
import { defineStore } from "pinia";
|
|
26
26
|
import { STSInstrumentControllerPluginKey, Gauge } from "@nsshunt/stsobservability";
|
|
27
27
|
import axios from "axios";
|
|
28
|
+
import * as fs$1 from "node:fs";
|
|
29
|
+
import require$$3 from "crypto";
|
|
28
30
|
import http from "node:http";
|
|
29
31
|
import https from "node:https";
|
|
30
32
|
const STSOAuth2ManagerPluginKey = Symbol();
|
|
@@ -1996,12 +1998,6 @@ function commonjsRequire(path2) {
|
|
|
1996
1998
|
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.');
|
|
1997
1999
|
}
|
|
1998
2000
|
var core = { exports: {} };
|
|
1999
|
-
const __viteBrowserExternal = {};
|
|
2000
|
-
const fs$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2001
|
-
__proto__: null,
|
|
2002
|
-
default: __viteBrowserExternal
|
|
2003
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2004
|
-
const require$$3 = /* @__PURE__ */ getAugmentedNamespace(fs$1);
|
|
2005
2001
|
var hasRequiredCore;
|
|
2006
2002
|
function requireCore() {
|
|
2007
2003
|
if (hasRequiredCore) return core.exports;
|
|
@@ -2031,7 +2027,7 @@ function requireCore() {
|
|
|
2031
2027
|
}
|
|
2032
2028
|
if (!crypto2 && typeof commonjsRequire === "function") {
|
|
2033
2029
|
try {
|
|
2034
|
-
crypto2 = require
|
|
2030
|
+
crypto2 = require("crypto");
|
|
2035
2031
|
} catch (err) {
|
|
2036
2032
|
}
|
|
2037
2033
|
}
|
|
@@ -2841,7 +2837,7 @@ class CryptoUtils {
|
|
|
2841
2837
|
try {
|
|
2842
2838
|
__privateSet(this, _crypto, crypto);
|
|
2843
2839
|
} catch {
|
|
2844
|
-
__privateSet(this, _crypto, require("crypto"));
|
|
2840
|
+
__privateSet(this, _crypto, require("node:crypto"));
|
|
2845
2841
|
}
|
|
2846
2842
|
}
|
|
2847
2843
|
}
|
|
@@ -2946,6 +2942,12 @@ var StatusCodes;
|
|
|
2946
2942
|
StatusCodes2[StatusCodes2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
2947
2943
|
})(StatusCodes || (StatusCodes = {}));
|
|
2948
2944
|
var main$1 = { exports: {} };
|
|
2945
|
+
const __viteBrowserExternal = {};
|
|
2946
|
+
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2947
|
+
__proto__: null,
|
|
2948
|
+
default: __viteBrowserExternal
|
|
2949
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2950
|
+
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
2949
2951
|
const name = "dotenv";
|
|
2950
2952
|
const version$1 = "16.4.5";
|
|
2951
2953
|
const description = "Loads environment variables from .env file";
|
|
@@ -3026,9 +3028,9 @@ const require$$4 = {
|
|
|
3026
3028
|
engines,
|
|
3027
3029
|
browser: browser$1
|
|
3028
3030
|
};
|
|
3029
|
-
const fs = require$$
|
|
3030
|
-
const path = require$$
|
|
3031
|
-
const os = require$$
|
|
3031
|
+
const fs = require$$2;
|
|
3032
|
+
const path = require$$2;
|
|
3033
|
+
const os = require$$2;
|
|
3032
3034
|
const crypto$1 = require$$3;
|
|
3033
3035
|
const packageJson = require$$4;
|
|
3034
3036
|
const version = packageJson.version;
|
|
@@ -4573,7 +4575,7 @@ const applyOptions = (object, options = {}) => {
|
|
|
4573
4575
|
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
4574
4576
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
4575
4577
|
}
|
|
4576
|
-
const colorLevel =
|
|
4578
|
+
const colorLevel = 0;
|
|
4577
4579
|
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
4578
4580
|
};
|
|
4579
4581
|
class ChalkClass2 {
|
|
@@ -4723,7 +4725,7 @@ const chalkTag = (chalk2, ...strings) => {
|
|
|
4723
4725
|
Object.defineProperties(Chalk.prototype, styles);
|
|
4724
4726
|
const chalk = Chalk();
|
|
4725
4727
|
chalk.supportsColor = stdoutColor;
|
|
4726
|
-
chalk.stderr = Chalk({ level:
|
|
4728
|
+
chalk.stderr = Chalk({ level: 0 });
|
|
4727
4729
|
chalk.stderr.supportsColor = stderrColor;
|
|
4728
4730
|
const { accessSync, constants, readFileSync } = fs$1;
|
|
4729
4731
|
const envOptions = {};
|