@nsshunt/stsoauth2plugin 1.0.4 → 1.0.6
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 +1525 -0
- package/dist/stsoauth2plugin.mjs.map +1 -0
- package/dist/stsoauth2plugin.umd.js +2 -0
- package/dist/stsoauth2plugin.umd.js.map +1 -0
- package/package.json +24 -23
- package/types/Utils/CryptoUtils.d.ts +1 -1
- package/types/Utils/CryptoUtils.d.ts.map +1 -1
- package/types/Utils/QueryParams.d.ts +5 -4
- package/types/Utils/QueryParams.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/stores/stsoauth2store.d.ts +1 -1
- package/types/stores/stsoauth2store.d.ts.map +1 -1
- package/types/stsoauth2manager.d.ts.map +1 -1
- package/types/stsoauth2types.d.ts +1 -1
- package/types/stsoauth2types.d.ts.map +1 -1
- package/types/stsoauth2worker.d.ts.map +1 -1
- package/dist/Utils/CryptoUtils.js +0 -58
- package/dist/Utils/CryptoUtils.js.map +0 -1
- package/dist/Utils/QueryParams.js +0 -49
- package/dist/Utils/QueryParams.js.map +0 -1
- package/dist/index.js +0 -44
- package/dist/index.js.map +0 -1
- package/dist/index.test.js +0 -8
- package/dist/index.test.js.map +0 -1
- package/dist/stores/stsoauth2store.js +0 -57
- package/dist/stores/stsoauth2store.js.map +0 -1
- package/dist/stores/testStore.js +0 -32
- package/dist/stores/testStore.js.map +0 -1
- package/dist/stsPluginKeys.js +0 -6
- package/dist/stsPluginKeys.js.map +0 -1
- package/dist/stsoauth2launcher.js +0 -10
- package/dist/stsoauth2launcher.js.map +0 -1
- package/dist/stsoauth2manager.js +0 -455
- package/dist/stsoauth2manager.js.map +0 -1
- package/dist/stsoauth2types.js +0 -38
- package/dist/stsoauth2types.js.map +0 -1
- package/dist/stsoauth2worker.js +0 -611
- package/dist/stsoauth2worker.js.map +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CryptoUtils = void 0;
|
|
7
|
-
const sha256_1 = __importDefault(require("crypto-js/sha256"));
|
|
8
|
-
const enc_base64_1 = __importDefault(require("crypto-js/enc-base64"));
|
|
9
|
-
class CryptoUtils {
|
|
10
|
-
#crypto = null;
|
|
11
|
-
constructor() {
|
|
12
|
-
try {
|
|
13
|
-
this.#crypto = crypto;
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
this.#crypto = require('crypto');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
DigestMessage = async function (message) {
|
|
20
|
-
const hashDigest = (0, sha256_1.default)(message);
|
|
21
|
-
return enc_base64_1.default.stringify(hashDigest);
|
|
22
|
-
};
|
|
23
|
-
CreateRandomString = (size = 43) => {
|
|
24
|
-
//const randomValues: any = Array.from(window.crypto.getRandomValues(new Uint8Array(size)))
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
const randomValues = Array.from(this.#crypto.getRandomValues(new Uint8Array(size)));
|
|
27
|
-
//let b64 = window.btoa(String.fromCharCode(...randomValues));
|
|
28
|
-
const b64 = btoa(String.fromCharCode(...randomValues));
|
|
29
|
-
return b64;
|
|
30
|
-
//return randomValues.toString('base64');
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
exports.CryptoUtils = CryptoUtils;
|
|
34
|
-
/*
|
|
35
|
-
export class CryptoUtils {
|
|
36
|
-
DigestMessage = async function (message) {
|
|
37
|
-
const encoder = new TextEncoder();
|
|
38
|
-
const data = encoder.encode(message);
|
|
39
|
-
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
|
|
40
|
-
const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array
|
|
41
|
-
//let b64 = window.btoa(String.fromCharCode(...hashArray));
|
|
42
|
-
const b64 = btoa(String.fromCharCode(...hashArray));// Use below if a HEX string is required
|
|
43
|
-
// const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); // convert bytes to hex string
|
|
44
|
-
return b64;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
CreateRandomString = (size = 43) => {
|
|
48
|
-
//const randomValues: any = Array.from(window.crypto.getRandomValues(new Uint8Array(size)))
|
|
49
|
-
const randomValues: any = Array.from(crypto.getRandomValues(new Uint8Array(size)))
|
|
50
|
-
//let b64 = window.btoa(String.fromCharCode(...randomValues));
|
|
51
|
-
const b64 = btoa(String.fromCharCode(...randomValues));
|
|
52
|
-
return b64;
|
|
53
|
-
//return randomValues.toString('base64');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
*/
|
|
57
|
-
exports.default = CryptoUtils;
|
|
58
|
-
//# sourceMappingURL=CryptoUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoUtils.js","sourceRoot":"","sources":["../../src/Utils/CryptoUtils.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,sEAA0C;AAE1C,MAAa,WAAW;IACpB,OAAO,GAAG,IAAI,CAAC;IAEf;QACI,IAAI;YACA,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;SACzB;QAAC,MAAM;YACJ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;SACnC;IACL,CAAC;IAED,aAAa,GAAG,KAAK,WAAW,OAAO;QACnC,MAAM,UAAU,GAAG,IAAA,gBAAM,EAAC,OAAO,CAAC,CAAC;QACnC,OAAO,oBAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC,CAAA;IAED,kBAAkB,GAAG,CAAC,IAAI,GAAG,EAAE,EAAE,EAAE;QAC/B,2FAA2F;QAC3F,+DAA+D;QAC/D,MAAM,YAAY,GAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACxF,8DAA8D;QAC9D,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC;QACvD,OAAO,GAAG,CAAC;QACX,yCAAyC;IAC7C,CAAC,CAAA;CACJ;AAzBD,kCAyBC;AAED;;;;;;;;;;;;;;;;;;;;;;EAsBE;AAEF,kBAAe,WAAW,CAAA"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// https://github.com/auth0/auth0-spa-js/blob/1de6427f81a8c5b005e9b6d10b9efb1e73542528/static/index.html
|
|
4
|
-
// https://stackoverflow.com/questions/12446317/change-url-without-redirecting-using-javascript
|
|
5
|
-
class QueryParams {
|
|
6
|
-
DecodeQueryParams = (params) => {
|
|
7
|
-
const retObj = {};
|
|
8
|
-
Object.keys(params)
|
|
9
|
-
.filter(k => typeof params[k] !== 'undefined')
|
|
10
|
-
.map(k => {
|
|
11
|
-
retObj[decodeURIComponent(k)] = decodeURIComponent(params[k]);
|
|
12
|
-
});
|
|
13
|
-
return retObj;
|
|
14
|
-
};
|
|
15
|
-
CreateQueryParams = (params) => {
|
|
16
|
-
return Object.keys(params)
|
|
17
|
-
.filter(k => typeof params[k] !== 'undefined')
|
|
18
|
-
.map(k => {
|
|
19
|
-
if (Array.isArray(params[k])) {
|
|
20
|
-
return encodeURIComponent(k) + '=' + encodeURIComponent(params[k].join(' '));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return encodeURIComponent(k) + '=' + encodeURIComponent(params[k]);
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
.join('&');
|
|
27
|
-
};
|
|
28
|
-
_GetQueryParams = (param) => {
|
|
29
|
-
let retVal = {};
|
|
30
|
-
const uri = param.split("?");
|
|
31
|
-
if (uri.length == 2) {
|
|
32
|
-
const vars = uri[1].split("&");
|
|
33
|
-
const getVars = {};
|
|
34
|
-
let tmp = "";
|
|
35
|
-
vars.forEach(function (v) {
|
|
36
|
-
tmp = v.split("=");
|
|
37
|
-
if (tmp.length == 2)
|
|
38
|
-
getVars[tmp[0]] = tmp[1];
|
|
39
|
-
});
|
|
40
|
-
retVal = this.DecodeQueryParams(getVars);
|
|
41
|
-
}
|
|
42
|
-
return retVal;
|
|
43
|
-
};
|
|
44
|
-
GetQueryParams = () => {
|
|
45
|
-
return this._GetQueryParams(window.location.href);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.default = QueryParams;
|
|
49
|
-
//# sourceMappingURL=QueryParams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParams.js","sourceRoot":"","sources":["../../src/Utils/QueryParams.ts"],"names":[],"mappings":";;AAAA,wGAAwG;AACxG,+FAA+F;AAC/F,MAAM,WAAW;IACb,iBAAiB,GAAG,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,EAAG,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aACd,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC;aAC7C,GAAG,CAAC,CAAC,CAAC,EAAE;YACL,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;QACP,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;IAED,iBAAiB,GAAG,CAAC,MAAM,EAAE,EAAE;QAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aACrB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC;aAC7C,GAAG,CAAC,CAAC,CAAC,EAAE;YACL,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC1B,OAAO,kBAAkB,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;aAC/E;iBAAM;gBACH,OAAO,kBAAkB,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;aACrE;QACL,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC,CAAA;IAED,eAAe,GAAG,CAAC,KAAK,EAAE,EAAE;QACxB,IAAI,MAAM,GAAG,EAAG,CAAC;QACjB,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;YACjB,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC/B,MAAM,OAAO,GAAG,EAAE,CAAC;YACnB,IAAI,GAAG,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;gBACpB,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnB,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC;oBAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SAC5C;QACD,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;IAED,cAAc,GAAG,GAAG,EAAE;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC,CAAA;CACJ;AAED,kBAAe,WAAW,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.STSOAuth2ManagerPlugin = exports.useSTSOAuth2ManagerPlugin = void 0;
|
|
18
|
-
const vue_1 = require("vue");
|
|
19
|
-
const stsPluginKeys_1 = require("./stsPluginKeys");
|
|
20
|
-
const stsoauth2manager_1 = require("./stsoauth2manager");
|
|
21
|
-
__exportStar(require("./stsoauth2types"), exports);
|
|
22
|
-
__exportStar(require("./stsoauth2manager"), exports);
|
|
23
|
-
__exportStar(require("./stsoauth2worker"), exports);
|
|
24
|
-
__exportStar(require("./stores/testStore"), exports);
|
|
25
|
-
__exportStar(require("./stores/stsoauth2store"), exports);
|
|
26
|
-
__exportStar(require("./stsPluginKeys"), exports);
|
|
27
|
-
// Create our use composable. This pattern is also used by vue router library with the useRoute and useRouter composables.
|
|
28
|
-
// https://skirtles-code.github.io/vue-examples/patterns/global-properties.html#application-level-provide-inject
|
|
29
|
-
const useSTSOAuth2ManagerPlugin = () => (0, vue_1.inject)(stsPluginKeys_1.STSOAuth2ManagerPluginKey);
|
|
30
|
-
exports.useSTSOAuth2ManagerPlugin = useSTSOAuth2ManagerPlugin;
|
|
31
|
-
exports.STSOAuth2ManagerPlugin = {
|
|
32
|
-
install: (app, options) => {
|
|
33
|
-
const om = new stsoauth2manager_1.STSOAuth2Manager(app, options);
|
|
34
|
-
// Assign plugin instance to global $sts object (legacy method - see below)
|
|
35
|
-
if (!app.config.globalProperties.$sts) {
|
|
36
|
-
app.config.globalProperties.$sts = {};
|
|
37
|
-
}
|
|
38
|
-
app.config.globalProperties.$sts[stsPluginKeys_1.STSOAuth2ManagerPluginKey] = om;
|
|
39
|
-
// Assign App level provide for this STS plugin using symbol keys
|
|
40
|
-
// https://vuejs.org/guide/components/provide-inject.html#working-with-symbol-keys
|
|
41
|
-
app.provide(stsPluginKeys_1.STSOAuth2ManagerPluginKey, om);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6BAA4B;AAE5B,mDAA2D;AAE3D,yDAAqD;AAGrD,mDAAgC;AAChC,qDAAkC;AAClC,oDAAiC;AAEjC,qDAAkC;AAClC,0DAAuC;AAEvC,kDAA+B;AAE/B,0HAA0H;AAC1H,gHAAgH;AACzG,MAAM,yBAAyB,GAAG,GAAqB,EAAE,CAAC,IAAA,YAAM,EAAC,yCAAyB,CAAqB,CAAA;AAAzG,QAAA,yBAAyB,6BAAgF;AAEzG,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAiC,EAAE,EAAE;QAChD,MAAM,EAAE,GAAG,IAAI,mCAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAE9C,2EAA2E;QAC3E,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;YACnC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,GAAG,EAAG,CAAC;SAC1C;QACD,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,yCAAyB,CAAC,GAAG,EAAE,CAAC;QAEjE,iEAAiE;QACjE,kFAAkF;QAClF,GAAG,CAAC,OAAO,CAAC,yCAAyB,EAAE,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA"}
|
package/dist/index.test.js
DELETED
package/dist/index.test.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":";AACA,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IAErC,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;QAE9B,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrB,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//import { createPinia, defineStore } from 'pinia'
|
|
3
|
-
//import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
4
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.STSOauth2Store = void 0;
|
|
9
|
-
const pinia_1 = require("pinia");
|
|
10
|
-
const jwt_decode_1 = __importDefault(require("jwt-decode"));
|
|
11
|
-
// Replace with pinia
|
|
12
|
-
// https://pinia.vuejs.org/
|
|
13
|
-
// https://seb-l.github.io/pinia-plugin-persist/
|
|
14
|
-
exports.STSOauth2Store = (0, pinia_1.defineStore)('__sts__STSOauth2Store', {
|
|
15
|
-
state: () => {
|
|
16
|
-
return {
|
|
17
|
-
id_token: null,
|
|
18
|
-
error: null
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
actions: {
|
|
22
|
-
UpdateIdToken(id_token) {
|
|
23
|
-
this.id_token = id_token;
|
|
24
|
-
},
|
|
25
|
-
UpdateError(error) {
|
|
26
|
-
this.error.message = error;
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
getters: {
|
|
30
|
-
LoggedIn: (state) => {
|
|
31
|
-
if (typeof state.id_token === 'undefined') {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
if (state.id_token === null) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
return true;
|
|
38
|
-
},
|
|
39
|
-
UserDetails: (state) => {
|
|
40
|
-
//if (state.sessionData && state.sessionData.id_token) {
|
|
41
|
-
if (state.id_token) {
|
|
42
|
-
const id_token = state.id_token;
|
|
43
|
-
const decodedIdToken = (0, jwt_decode_1.default)(id_token);
|
|
44
|
-
return decodedIdToken;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
/*
|
|
52
|
-
persist: {
|
|
53
|
-
storage: globalThis.sessionStorage
|
|
54
|
-
}
|
|
55
|
-
*/
|
|
56
|
-
});
|
|
57
|
-
//# sourceMappingURL=stsoauth2store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stsoauth2store.js","sourceRoot":"","sources":["../../src/stores/stsoauth2store.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,qEAAqE;;;;;;AAErE,iCAAmC;AAEnC,4DAAoC;AAUpC,qBAAqB;AACrB,2BAA2B;AAC3B,gDAAgD;AACnC,QAAA,cAAc,GAAG,IAAA,mBAAW,EAAC,uBAAuB,EAAE;IAC/D,KAAK,EAAE,GAAoB,EAAE;QACzB,OAAO;YACH,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;SACd,CAAA;IACL,CAAC;IACD,OAAO,EAAE;QACL,aAAa,CAAC,QAAQ;YAClB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC7B,CAAC;QACD,WAAW,CAAC,KAAiB;YACzB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAC/B,CAAC;KACJ;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAsB,EAAW,EAAE;YAC1C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,WAAW,EAAE;gBACvC,OAAO,KAAK,CAAC;aAChB;YACD,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,EAAE;gBACzB,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,WAAW,EAAE,CAAC,KAAsB,EAAqB,EAAE;YACvD,wDAAwD;YACxD,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAChB,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAChC,MAAM,cAAc,GAAG,IAAA,oBAAU,EAAC,QAAQ,CAAC,CAAC;gBAC5C,OAAO,cAAc,CAAC;aACzB;iBAAM;gBACH,OAAO,IAAI,CAAC;aACf;QACL,CAAC;KACJ;IACD;;;;MAID;CACF,CAAC,CAAC"}
|
package/dist/stores/testStore.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//import { createPinia, defineStore } from 'pinia'
|
|
3
|
-
//import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TestStore = void 0;
|
|
6
|
-
const pinia_1 = require("pinia");
|
|
7
|
-
// Replace with pinia
|
|
8
|
-
// https://pinia.vuejs.org/
|
|
9
|
-
// https://seb-l.github.io/pinia-plugin-persist/
|
|
10
|
-
exports.TestStore = (0, pinia_1.defineStore)('__sts__TestStore', {
|
|
11
|
-
state: () => {
|
|
12
|
-
return {
|
|
13
|
-
count: 0
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
actions: {
|
|
17
|
-
UpdateCount() {
|
|
18
|
-
this.count++;
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
getters: {
|
|
22
|
-
CountXX: (state) => {
|
|
23
|
-
return state.count * 2;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/*
|
|
27
|
-
persist: {
|
|
28
|
-
storage: globalThis.sessionStorage
|
|
29
|
-
}
|
|
30
|
-
*/
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=testStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testStore.js","sourceRoot":"","sources":["../../src/stores/testStore.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,qEAAqE;;;AAErE,iCAAmC;AAEnC,qBAAqB;AACrB,2BAA2B;AAC3B,gDAAgD;AACnC,QAAA,SAAS,GAAG,IAAA,mBAAW,EAAC,kBAAkB,EAAE;IACrD,KAAK,EAAE,GAAG,EAAE;QACR,OAAO;YACH,KAAK,EAAE,CAAC;SACX,CAAA;IACL,CAAC;IACD,OAAO,EAAE;QACL,WAAW;YACP,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;KACJ;IACD,OAAO,EAAE;QACL,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QAC3B,CAAC;KACJ;IACD;;;;MAID;CACF,CAAC,CAAC"}
|
package/dist/stsPluginKeys.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STSOAuth2ManagerPluginKey = void 0;
|
|
4
|
-
// Individual STS plugin keys for provide/inject logic
|
|
5
|
-
exports.STSOAuth2ManagerPluginKey = Symbol();
|
|
6
|
-
//# sourceMappingURL=stsPluginKeys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stsPluginKeys.js","sourceRoot":"","sources":["../src/stsPluginKeys.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACzC,QAAA,yBAAyB,GAAG,MAAM,EAAE,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const stsoauth2worker_1 = require("./stsoauth2worker");
|
|
4
|
-
onmessage = async function (data) {
|
|
5
|
-
const workerMessage = data.data;
|
|
6
|
-
const workerPort = workerMessage.workerPort;
|
|
7
|
-
const options = workerMessage.options;
|
|
8
|
-
new stsoauth2worker_1.STSOAuth2Worker(workerPort, options);
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=stsoauth2launcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stsoauth2launcher.js","sourceRoot":"","sources":["../src/stsoauth2launcher.ts"],"names":[],"mappings":";;AACA,uDAAmD;AAEnD,SAAS,GAAG,KAAK,WAAU,IAAkB;IAEzC,MAAM,aAAa,GAA4B,IAAI,CAAC,IAA+B,CAAC;IAEpF,MAAM,UAAU,GAAG,aAAa,CAAC,UAAyB,CAAC;IAC3D,MAAM,OAAO,GAA4B,aAAa,CAAC,OAAkC,CAAC;IAC1F,IAAI,iCAAe,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC,CAAA"}
|