@nsshunt/stsoauth2plugin 0.1.45 → 0.1.48
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.
|
@@ -470,8 +470,8 @@ var common = setup;
|
|
|
470
470
|
r2 = exports.storage.getItem("debug");
|
|
471
471
|
} catch (error2) {
|
|
472
472
|
}
|
|
473
|
-
if (!r2 && typeof
|
|
474
|
-
r2 = {
|
|
473
|
+
if (!r2 && typeof {} !== "undefined" && "env" in {}) {
|
|
474
|
+
r2 = {}.env.DEBUG;
|
|
475
475
|
}
|
|
476
476
|
return r2;
|
|
477
477
|
}
|
|
@@ -3557,7 +3557,7 @@ var uri_all = { exports: {} };
|
|
|
3557
3557
|
var regexNonASCII = /[^\0-\x7E]/;
|
|
3558
3558
|
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
|
|
3559
3559
|
var errors2 = {
|
|
3560
|
-
"overflow": "Overflow: input needs wider integers to
|
|
3560
|
+
"overflow": "Overflow: input needs wider integers to {}",
|
|
3561
3561
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3562
3562
|
"invalid-input": "Invalid input"
|
|
3563
3563
|
};
|
|
@@ -4506,7 +4506,7 @@ uri$1.default = uri;
|
|
|
4506
4506
|
jsonPointers: "Deprecated jsPropertySyntax can be used instead.",
|
|
4507
4507
|
extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.",
|
|
4508
4508
|
missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.",
|
|
4509
|
-
processCode: "Use option `code: {
|
|
4509
|
+
processCode: "Use option `code: {{}: (code, schemaEnv: object) => string}`",
|
|
4510
4510
|
sourceCode: "Use option `code: {source: true}`",
|
|
4511
4511
|
strictDefaults: "It is default now, see option `strict`.",
|
|
4512
4512
|
strictKeywords: "It is default now, see option `strict`.",
|
|
@@ -7036,7 +7036,7 @@ function remove(name, attributes) {
|
|
|
7036
7036
|
set(name, "", __assign(__assign({}, attributes), { expires: -1 }));
|
|
7037
7037
|
}
|
|
7038
7038
|
var remove_1 = remove;
|
|
7039
|
-
const debug$2 = Debug(`proc:${
|
|
7039
|
+
const debug$2 = Debug(`proc:${{}.pid}:storage.ts`);
|
|
7040
7040
|
var ClientStorageType = /* @__PURE__ */ ((ClientStorageType2) => {
|
|
7041
7041
|
ClientStorageType2["LOCAL_STORAGE"] = "LocalStorage";
|
|
7042
7042
|
ClientStorageType2["SESSION_STORAGE"] = "SessionStorage";
|
|
@@ -7218,7 +7218,12 @@ function o(e2, r2) {
|
|
|
7218
7218
|
}
|
|
7219
7219
|
}
|
|
7220
7220
|
n.prototype = new Error(), n.prototype.name = "InvalidTokenError";
|
|
7221
|
-
const debug$1 = Debug(`proc:${
|
|
7221
|
+
const debug$1 = Debug(`proc:${{}.pid}:stsoauth2manager.ts`);
|
|
7222
|
+
const StsOauth2LauncherFactor = () => {
|
|
7223
|
+
return new Worker("/assets/stsoauth2launcher.d4f1da70.js", {
|
|
7224
|
+
type: "module"
|
|
7225
|
+
});
|
|
7226
|
+
};
|
|
7222
7227
|
class STSOAuth2Manager {
|
|
7223
7228
|
constructor(app, options) {
|
|
7224
7229
|
__privateAdd(this, _storageManager, void 0);
|
|
@@ -7483,7 +7488,7 @@ class STSOAuth2Manager {
|
|
|
7483
7488
|
__privateSet(this, _aic, app.config.globalProperties.$sts.aic.PrimaryPublishInstrumentController);
|
|
7484
7489
|
__privateSet(this, _router, app.config.globalProperties.$router);
|
|
7485
7490
|
__privateSet(this, _transactionStore, new ClientStorageFactory({ clientStorageType: ClientStorageType.SESSION_STORAGE }).GetStorage());
|
|
7486
|
-
__privateSet(this, _worker,
|
|
7491
|
+
__privateSet(this, _worker, StsOauth2LauncherFactor());
|
|
7487
7492
|
__privateGet(this, _worker).onmessage = (data2) => {
|
|
7488
7493
|
console.log(`this.#worker.onmessage = [${data2}]`);
|
|
7489
7494
|
};
|
|
@@ -8254,7 +8259,7 @@ function getDefaultAdapter() {
|
|
|
8254
8259
|
var adapter;
|
|
8255
8260
|
if (typeof XMLHttpRequest !== "undefined") {
|
|
8256
8261
|
adapter = xhr;
|
|
8257
|
-
} else if (typeof
|
|
8262
|
+
} else if (typeof {} !== "undefined" && Object.prototype.toString.call({}) === "[object {}]") {
|
|
8258
8263
|
adapter = xhr;
|
|
8259
8264
|
}
|
|
8260
8265
|
return adapter;
|
|
@@ -11947,7 +11952,7 @@ instrumentUtils.StopInstruments = StopInstruments;
|
|
|
11947
11952
|
__exportStar(instrumentGauge, exports);
|
|
11948
11953
|
__exportStar(instrumentObject, exports);
|
|
11949
11954
|
})(dist);
|
|
11950
|
-
const debug = Debug(`proc:${
|
|
11955
|
+
const debug = Debug(`proc:${{}.pid}:stsoauth2worker.ts`);
|
|
11951
11956
|
class STSOAuth2Worker {
|
|
11952
11957
|
constructor(workerPort, options) {
|
|
11953
11958
|
__privateAdd(this, _clientSessionStore, void 0);
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stsoauth2launcher.d.ts","sourceRoot":"","sources":["../src/stsoauth2launcher.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stsoauth2manager.d.ts","sourceRoot":"","sources":["../src/stsoauth2manager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAuB,MAAM,mBAAmB,CAAC;AAKpE,OAAO,EACN,wBAAwB,
|
|
1
|
+
{"version":3,"file":"stsoauth2manager.d.ts","sourceRoot":"","sources":["../src/stsoauth2manager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAuB,MAAM,mBAAmB,CAAC;AAKpE,OAAO,EACN,wBAAwB,EACiD,MAAM,kBAAkB,CAAA;AAmBlG,qBAAa,gBAAgB;;gBAkBhB,GAAG,KAAA,EAAE,OAAO,EAAE,wBAAwB;IA+RlD,cAAc,QAAY,QAAQ,OAAO,CAAC,CAQzC;IAED,SAAS,QAAa,QAAQ,IAAI,CAAC,CASlC;IAED,cAAc,cAAqB,UAAU,KAAG,QAAQ,OAAO,CAAC,CAoB/D;IAED,MAAM,QAAa,QAAQ,OAAO,CAAC,CAQlC;CACD"}
|