@nsshunt/stsoauth2plugin 0.1.96 → 0.1.99

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,32 +1,34 @@
1
- export class CryptoUtils {
2
- constructor() {
3
- this.DigestMessage = async function (message) {
4
- const encoder = new TextEncoder();
5
- const data = encoder.encode(message);
6
- const hashBuffer = await crypto.subtle.digest('SHA-256', data);
7
- const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array
8
- //let b64 = window.btoa(String.fromCharCode(...hashArray));
9
- const b64 = btoa(String.fromCharCode(...hashArray)); // Use below if a HEX string is required
10
- // const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); // convert bytes to hex string
11
- return b64;
12
- };
13
- this.CreateRandomString = (size = 43) => {
14
- //const randomValues = Array.from(window.crypto.getRandomValues(new Uint8Array(size)))
15
- const randomValues = Array.from(crypto.getRandomValues(new Uint8Array(size)));
16
- //let b64 = window.btoa(String.fromCharCode(...randomValues));
17
- const b64 = btoa(String.fromCharCode(...randomValues));
18
- return b64;
19
- //return randomValues.toString('base64');
20
- };
21
- this.CreateRandomStringEx = () => {
22
- const charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.';
23
- let random = '';
24
- //const randomValues = Array.from(window.crypto.getRandomValues(new Uint8Array(43)));
25
- const randomValues = Array.from(crypto.getRandomValues(new Uint8Array(43)));
26
- randomValues.forEach(v => (random += charset[v % charset.length]));
27
- return random;
28
- };
29
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoUtils = void 0;
4
+ class CryptoUtils {
5
+ DigestMessage = async function (message) {
6
+ const encoder = new TextEncoder();
7
+ const data = encoder.encode(message);
8
+ const hashBuffer = await crypto.subtle.digest('SHA-256', data);
9
+ const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array
10
+ //let b64 = window.btoa(String.fromCharCode(...hashArray));
11
+ const b64 = btoa(String.fromCharCode(...hashArray)); // Use below if a HEX string is required
12
+ // const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); // convert bytes to hex string
13
+ return b64;
14
+ };
15
+ CreateRandomString = (size = 43) => {
16
+ //const randomValues = Array.from(window.crypto.getRandomValues(new Uint8Array(size)))
17
+ const randomValues = Array.from(crypto.getRandomValues(new Uint8Array(size)));
18
+ //let b64 = window.btoa(String.fromCharCode(...randomValues));
19
+ const b64 = btoa(String.fromCharCode(...randomValues));
20
+ return b64;
21
+ //return randomValues.toString('base64');
22
+ };
23
+ CreateRandomStringEx = () => {
24
+ const charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.';
25
+ let random = '';
26
+ //const randomValues = Array.from(window.crypto.getRandomValues(new Uint8Array(43)));
27
+ const randomValues = Array.from(crypto.getRandomValues(new Uint8Array(43)));
28
+ randomValues.forEach(v => (random += charset[v % charset.length]));
29
+ return random;
30
+ };
30
31
  }
31
- export default CryptoUtils;
32
+ exports.CryptoUtils = CryptoUtils;
33
+ exports.default = CryptoUtils;
32
34
  //# sourceMappingURL=CryptoUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CryptoUtils.js","sourceRoot":"","sources":["../../src/Utils/CryptoUtils.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IAAxB;QACC,kBAAa,GAAG,KAAK,WAAW,OAAO;YACtC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;YAClC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACrC,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC/D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,+BAA+B;YACzF,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@@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  // https://github.com/auth0/auth0-spa-js/blob/1de6427f81a8c5b005e9b6d10b9efb1e73542528/static/index.html
2
4
  // https://stackoverflow.com/questions/12446317/change-url-without-redirecting-using-javascript
3
5
  class QueryParams {
4
- constructor() {
5
- this.DecodeQueryParams = (params) => {
6
- const retObj = {};
7
- const arr = Object.keys(params)
8
- .filter(k => typeof params[k] !== 'undefined')
9
- .map(k => {
10
- retObj[decodeURIComponent(k)] = decodeURIComponent(params[k]);
11
- });
12
- return retObj;
13
- };
14
- this.CreateQueryParams = (params) => {
15
- return Object.keys(params)
16
- .filter(k => typeof params[k] !== 'undefined')
17
- .map(k => {
18
- if (Array.isArray(params[k])) {
19
- return encodeURIComponent(k) + '=' + encodeURIComponent(params[k].join(' '));
20
- }
21
- else {
22
- return encodeURIComponent(k) + '=' + encodeURIComponent(params[k]);
23
- }
24
- })
25
- .join('&');
26
- };
27
- this._GetQueryParams = (param) => {
28
- let retVal = {};
29
- const uri = param.split("?");
30
- if (uri.length == 2) {
31
- const vars = uri[1].split("&");
32
- const getVars = {};
33
- let tmp = "";
34
- vars.forEach(function (v) {
35
- tmp = v.split("=");
36
- if (tmp.length == 2)
37
- getVars[tmp[0]] = tmp[1];
38
- });
39
- retVal = this.DecodeQueryParams(getVars);
6
+ DecodeQueryParams = (params) => {
7
+ const retObj = {};
8
+ const arr = 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]);
40
24
  }
41
- return retVal;
42
- };
43
- this.GetQueryParams = () => {
44
- return this._GetQueryParams(window.location.href);
45
- };
46
- }
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
47
  }
48
- export default QueryParams;
48
+ exports.default = QueryParams;
49
49
  //# sourceMappingURL=QueryParams.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParams.js","sourceRoot":"","sources":["../../src/Utils/QueryParams.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,+FAA+F;AAC/F,MAAM,WAAW;IAAjB;QACC,sBAAiB,GAAG,CAAC,MAAM,EAAE,EAAE;YAC9B,MAAM,MAAM,GAAG,EAAG,CAAC;YACnB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;iBAC7B,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC;iBAC7C,GAAG,CAAC,CAAC,CAAC,EAAE;gBACR,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/D,CAAC,CAAC,CAAC;YACJ,OAAO,MAAM,CAAC;QACf,CAAC,CAAA;QAED,sBAAiB,GAAG,CAAC,MAAM,EAAE,EAAE;YAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;iBACxB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO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,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;aAClE;QACF,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,CAAC,CAAA;IAED,eAAe,GAAG,CAAC,KAAK,EAAE,EAAE;QAC3B,IAAI,MAAM,GAAG,EAAG,CAAC;QACjB,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;YACpB,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;gBACvB,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;YAC/C,CAAC,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SACzC;QACD,OAAO,MAAM,CAAC;IACf,CAAC,CAAA;IAED,cAAc,GAAG,GAAG,EAAE;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC,CAAA;CACD;AAED,kBAAe,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -1,14 +1,30 @@
1
- export * from './stsoauth2types';
2
- export * from './stsoauth2manager';
3
- export * from './stsoauth2worker';
4
- export * from './stores/testStore';
5
- export * from './stores/stsoauth2store';
6
- /*
7
- export const STSOAuth2ManagerPlugin = {
8
- install: (app, options: ISTSOAuth2ManagerOptions) => {
9
- const om = new STSOAuth2Manager(app, options);
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 = void 0;
18
+ const stsoauth2manager_1 = require("./stsoauth2manager");
19
+ __exportStar(require("./stsoauth2types"), exports);
20
+ __exportStar(require("./stsoauth2manager"), exports);
21
+ __exportStar(require("./stsoauth2worker"), exports);
22
+ __exportStar(require("./stores/testStore"), exports);
23
+ __exportStar(require("./stores/stsoauth2store"), exports);
24
+ exports.STSOAuth2ManagerPlugin = {
25
+ install: (app, options) => {
26
+ const om = new stsoauth2manager_1.STSOAuth2Manager(app, options);
10
27
  app.config.globalProperties.$sts.om = om;
11
28
  }
12
- }
13
- */
29
+ };
14
30
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AAEvC;;;;;;;EAOE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAqD;AAGrD,mDAAgC;AAChC,qDAAkC;AAClC,oDAAiC;AAEjC,qDAAkC;AAClC,0DAAuC;AAE1B,QAAA,sBAAsB,GAAG;IACrC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAiC,EAAE,EAAE;QACnD,MAAM,EAAE,GAAG,IAAI,mCAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC9C,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAC1C,CAAC;CACD,CAAA"}
@@ -1,9 +1,15 @@
1
- import { defineStore } from 'pinia';
2
- import jwt_decode from "jwt-decode";
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.STSOauth2Store = void 0;
7
+ const pinia_1 = require("pinia");
8
+ const jwt_decode_1 = __importDefault(require("jwt-decode"));
3
9
  // Replace with pinia
4
10
  // https://pinia.vuejs.org/
5
11
  // https://seb-l.github.io/pinia-plugin-persist/
6
- export const STSOauth2Store = defineStore('__sts__STSOauth2Store', {
12
+ exports.STSOauth2Store = (0, pinia_1.defineStore)('__sts__STSOauth2Store', {
7
13
  state: () => {
8
14
  return {
9
15
  id_token: null,
@@ -32,7 +38,7 @@ export const STSOauth2Store = defineStore('__sts__STSOauth2Store', {
32
38
  //if (state.sessionData && state.sessionData.id_token) {
33
39
  if (state.id_token) {
34
40
  const id_token = state.id_token;
35
- const decodedIdToken = jwt_decode(id_token);
41
+ const decodedIdToken = (0, jwt_decode_1.default)(id_token);
36
42
  return decodedIdToken;
37
43
  }
38
44
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"stsoauth2store.js","sourceRoot":"","sources":["../../src/stores/stsoauth2store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,OAAO,CAAA;AAGhD,OAAO,UAAU,MAAM,YAAY,CAAC;AAUpC,q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QAC5B,OAAO;YACN,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;SACX,CAAA;IACF,CAAC;IACD,OAAO,EAAE;QACR,aAAa,CAAC,QAAQ;YACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC1B,CAAC;QACD,WAAW,CAAC,KAAiB;YAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,CAAC;KACD;IACD,OAAO,EAAE;QACR,QAAQ,EAAE,CAAC,KAAsB,EAAW,EAAE;YAC7C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,WAAW,EAAE;gBAC1C,OAAO,KAAK,CAAC;aACb;YACD,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC5B,OAAO,KAAK,CAAC;aACb;YACD,OAAO,IAAI,CAAC;QACb,CAAC;QACD,WAAW,EAAE,CAAC,KAAsB,EAAqB,EAAE;YAC1D,wDAAwD;YACxD,IAAI,KAAK,CAAC,QAAQ,EAAE;gBACnB,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAChC,MAAM,cAAc,GAAG,IAAA,oBAAU,EAAC,QAAQ,CAAC,CAAC;gBAC5C,OAAO,cAAc,CAAC;aACtB;iBAAM;gBACN,OAAO,IAAI,CAAC;aACZ;QACF,CAAC;KACD;IACD;;;;MAIE;CACF,CAAC,CAAC"}
@@ -1,8 +1,11 @@
1
- import { defineStore } from 'pinia';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestStore = void 0;
4
+ const pinia_1 = require("pinia");
2
5
  // Replace with pinia
3
6
  // https://pinia.vuejs.org/
4
7
  // https://seb-l.github.io/pinia-plugin-persist/
5
- export const TestStore = defineStore('__sts__TestStore', {
8
+ exports.TestStore = (0, pinia_1.defineStore)('__sts__TestStore', {
6
9
  state: () => {
7
10
  return {
8
11
  count: 0
@@ -1 +1 @@
1
- {"version":3,"file":"testStore.js","sourceRoot":"","sources":["../../src/stores/testStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,OAAO,CAAA;AAGhD,qBAAqB;AACrB,2BAA2B;AAC3B,gDAAgD;AAChD,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC,kBAAkB,EAAE;IACxD,KAAK,EAAE,GAAG,EAAE;QACX,OAAO;YACN,KAAK,EAAE,CAAC;SACR,CAAA;IACF,CAAC;IACD,OAAO,EAAE;QACR,WAAW;YACV,IAAI,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QACxB,CAAC;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE,UAAU,CAAC,cAAc;KAClC;CACD,CAAC,CAAC"}
1
+ {"version":3,"file":"testStore.js","sourceRoot":"","sources":["../../src/stores/testStore.ts"],"names":[],"mappings":";;;AAAA,iCAAgD;AAGhD,qBAAqB;AACrB,2BAA2B;AAC3B,gDAAgD;AACnC,QAAA,SAAS,GAAG,IAAA,mBAAW,EAAC,kBAAkB,EAAE;IACxD,KAAK,EAAE,GAAG,EAAE;QACX,OAAO;YACN,KAAK,EAAE,CAAC;SACR,CAAA;IACF,CAAC;IACD,OAAO,EAAE;QACR,WAAW;YACV,IAAI,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QACxB,CAAC;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE,UAAU,CAAC,cAAc;KAClC;CACD,CAAC,CAAC"}
@@ -1,143 +1,151 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
5
24
  };
6
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
- if (kind === "m") throw new TypeError("Private method is not writable");
8
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
27
  };
12
- var _MemoryStorage_store, _ClientStorageFactory_storage;
13
- import Debug from "debug";
14
- const debug = Debug(`proc:${process.pid}:storage.ts`);
15
- import * as Cookies from 'es-cookie';
16
- export var ClientStorageType;
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientStorageFactory = exports.ClientStorageOptions = exports.ClientStorageType = void 0;
30
+ const debug_1 = __importDefault(require("debug"));
31
+ const debug = (0, debug_1.default)(`proc:${process.pid}:storage.ts`);
32
+ const Cookies = __importStar(require("es-cookie"));
33
+ var ClientStorageType;
17
34
  (function (ClientStorageType) {
18
35
  ClientStorageType["LOCAL_STORAGE"] = "LocalStorage";
19
36
  ClientStorageType["SESSION_STORAGE"] = "SessionStorage";
20
37
  ClientStorageType["COOKIE_STORAGE"] = "CookieStorage";
21
38
  ClientStorageType["MEMORY_STORAGE"] = "MemoryStorage"; //@@ todo
22
- })(ClientStorageType || (ClientStorageType = {}));
39
+ })(ClientStorageType = exports.ClientStorageType || (exports.ClientStorageType = {}));
23
40
  class CookieStorage {
24
- constructor() {
25
- this.get = (key) => {
26
- const raw = Cookies.get(key);
27
- if (raw) {
28
- return JSON.parse(raw);
29
- }
30
- else {
31
- return null;
32
- }
33
- };
34
- this.set = (key, value, options = {}) => {
35
- let cookieAttributes = {};
36
- if ('https:' === window.location.protocol) {
37
- cookieAttributes = {
38
- secure: true,
39
- sameSite: 'none'
40
- };
41
- }
42
- if (options && options.daysUntilExpire) {
43
- cookieAttributes.expires = options.daysUntilExpire;
44
- }
45
- else {
46
- cookieAttributes.expires = 1;
47
- }
48
- debug(`CookieStorage.set: key: ${key}, value: [${value}]`);
49
- Cookies.set(key, JSON.stringify(value), cookieAttributes);
50
- };
51
- this.remove = (key) => {
52
- Cookies.remove(key);
53
- };
54
- }
41
+ get = (key) => {
42
+ const raw = Cookies.get(key);
43
+ if (raw) {
44
+ return JSON.parse(raw);
45
+ }
46
+ else {
47
+ return null;
48
+ }
49
+ };
50
+ set = (key, value, options = {}) => {
51
+ let cookieAttributes = {};
52
+ if ('https:' === window.location.protocol) {
53
+ cookieAttributes = {
54
+ secure: true,
55
+ sameSite: 'none'
56
+ };
57
+ }
58
+ if (options && options.daysUntilExpire) {
59
+ cookieAttributes.expires = options.daysUntilExpire;
60
+ }
61
+ else {
62
+ cookieAttributes.expires = 1;
63
+ }
64
+ debug(`CookieStorage.set: key: ${key}, value: [${value}]`);
65
+ Cookies.set(key, JSON.stringify(value), cookieAttributes);
66
+ };
67
+ remove = (key) => {
68
+ Cookies.remove(key);
69
+ };
55
70
  }
56
71
  class SessionStorage {
57
- constructor() {
58
- this.get = (key) => {
59
- const value = sessionStorage.getItem(key);
60
- if (typeof value === 'undefined') {
61
- return null;
62
- }
63
- if (value === null) {
64
- return null;
65
- }
66
- return JSON.parse(value);
67
- };
68
- this.set = (key, value) => {
69
- debug(`SessionStorage.set: key: ${key}, value: [${value}]`);
70
- sessionStorage.setItem(key, JSON.stringify(value));
71
- };
72
- this.remove = (key) => {
73
- sessionStorage.removeItem(key);
74
- };
75
- }
72
+ get = (key) => {
73
+ const value = sessionStorage.getItem(key);
74
+ if (typeof value === 'undefined') {
75
+ return null;
76
+ }
77
+ if (value === null) {
78
+ return null;
79
+ }
80
+ return JSON.parse(value);
81
+ };
82
+ set = (key, value) => {
83
+ debug(`SessionStorage.set: key: ${key}, value: [${value}]`);
84
+ sessionStorage.setItem(key, JSON.stringify(value));
85
+ };
86
+ remove = (key) => {
87
+ sessionStorage.removeItem(key);
88
+ };
76
89
  }
77
90
  class LocalStorage {
78
- constructor() {
79
- this.get = (key) => {
80
- const value = localStorage.getItem(key);
81
- if (typeof value === 'undefined') {
82
- return null;
83
- }
84
- if (value === null) {
85
- return null;
86
- }
87
- return JSON.parse(value);
88
- };
89
- this.set = (key, value) => {
90
- debug(`LocalStorage.set: key: ${key}, value: [${value}]`);
91
- localStorage.setItem(key, JSON.stringify(value));
92
- };
93
- this.remove = (key) => {
94
- localStorage.removeItem(key);
95
- };
96
- }
91
+ get = (key) => {
92
+ const value = localStorage.getItem(key);
93
+ if (typeof value === 'undefined') {
94
+ return null;
95
+ }
96
+ if (value === null) {
97
+ return null;
98
+ }
99
+ return JSON.parse(value);
100
+ };
101
+ set = (key, value) => {
102
+ debug(`LocalStorage.set: key: ${key}, value: [${value}]`);
103
+ localStorage.setItem(key, JSON.stringify(value));
104
+ };
105
+ remove = (key) => {
106
+ localStorage.removeItem(key);
107
+ };
97
108
  }
98
109
  class MemoryStorage {
99
- constructor() {
100
- _MemoryStorage_store.set(this, {});
101
- this.get = (key) => {
102
- const value = __classPrivateFieldGet(this, _MemoryStorage_store, "f")[key];
103
- if (typeof value === 'undefined') {
104
- return null;
105
- }
106
- if (value === null) {
107
- return null;
108
- }
109
- return value;
110
- };
111
- this.set = (key, value) => {
112
- debug(`MemoryStorage.set: key: ${key}, value: [${value}]`);
113
- __classPrivateFieldGet(this, _MemoryStorage_store, "f")[key] = value;
114
- };
115
- this.remove = (key) => {
116
- delete __classPrivateFieldGet(this, _MemoryStorage_store, "f")[key];
117
- };
118
- }
110
+ #store = {};
111
+ get = (key) => {
112
+ const value = this.#store[key];
113
+ if (typeof value === 'undefined') {
114
+ return null;
115
+ }
116
+ if (value === null) {
117
+ return null;
118
+ }
119
+ return value;
120
+ };
121
+ set = (key, value) => {
122
+ debug(`MemoryStorage.set: key: ${key}, value: [${value}]`);
123
+ this.#store[key] = value;
124
+ };
125
+ remove = (key) => {
126
+ delete this.#store[key];
127
+ };
119
128
  }
120
- _MemoryStorage_store = new WeakMap();
121
- export class ClientStorageOptions {
122
- constructor() {
123
- this.clientStorageType = ClientStorageType.MEMORY_STORAGE;
124
- }
129
+ class ClientStorageOptions {
130
+ clientStorageType = ClientStorageType.MEMORY_STORAGE;
131
+ storageOptions;
125
132
  }
126
- export class ClientStorageFactory {
133
+ exports.ClientStorageOptions = ClientStorageOptions;
134
+ class ClientStorageFactory {
135
+ #storage = null;
127
136
  constructor(options) {
128
- _ClientStorageFactory_storage.set(this, null);
129
137
  switch (options.clientStorageType) {
130
138
  case ClientStorageType.SESSION_STORAGE:
131
- __classPrivateFieldSet(this, _ClientStorageFactory_storage, new SessionStorage(), "f");
139
+ this.#storage = new SessionStorage();
132
140
  break;
133
141
  case ClientStorageType.LOCAL_STORAGE:
134
- __classPrivateFieldSet(this, _ClientStorageFactory_storage, new LocalStorage(), "f");
142
+ this.#storage = new LocalStorage();
135
143
  break;
136
144
  case ClientStorageType.COOKIE_STORAGE:
137
- __classPrivateFieldSet(this, _ClientStorageFactory_storage, new CookieStorage(), "f");
145
+ this.#storage = new CookieStorage();
138
146
  break;
139
147
  case ClientStorageType.MEMORY_STORAGE:
140
- __classPrivateFieldSet(this, _ClientStorageFactory_storage, new MemoryStorage(), "f");
148
+ this.#storage = new MemoryStorage();
141
149
  break;
142
150
  default:
143
151
  throw new Error(`Unknown [${options.clientStorageType}] storage type.`);
@@ -145,8 +153,8 @@ export class ClientStorageFactory {
145
153
  return;
146
154
  }
147
155
  GetStorage() {
148
- return __classPrivateFieldGet(this, _ClientStorageFactory_storage, "f");
156
+ return this.#storage;
149
157
  }
150
158
  }
151
- _ClientStorageFactory_storage = new WeakMap();
159
+ exports.ClientStorageFactory = ClientStorageFactory;
152
160
  //# sourceMappingURL=stsStorage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stsStorage.js","sourceRoot":"","sources":["../src/stsStorage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,OAAO,CAAC,GAAG,aAAa,CAAC,CAAC;AAEtD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AASrC,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC5B,mDAA8B,CAAA;IAC9B,uDAAkC,CAAA;IAClC,qDAAgC,CAAA;IAChC,qDAAgC,CAAA,CAAC,SAAS;AAC3C,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AAED,MAAM,aAAa;IAAnB;QAEC,QAAG,GAAG,CAAC,GAAW,EAAK,EAAE;YACxB,MAAM,GAAG,GAAG,OAAO,CAAC,GAA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6B;QACxC,QAAQ,OAAO,CAAC,iBAAiB,EAAE;YACnC,KAAK,iBAAiB,CAAC,eAAe;gBACrC,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,EAAK,CAAC;gBACxC,MAAM;YACP,KAAK,iBAAiB,CAAC,aAAa;gBACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAK,CAAC;gBACtC,MAAM;YACP,KAAK,iBAAiB,CAAC,cAAc;gBACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,EAAK,CAAC;gBACvC,MAAM;YACP,KAAK,iBAAiB,CAAC,cAAc;gBACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,EAAK,CAAC;gBACvC,MAAM;YACP;gBACC,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,CAAC,iBAAiB,iBAAiB,CAAC,CAAC;SACxE;QACD,OAAO;IACR,CAAC;IAED,UAAU;QAET,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD;AA5BD,oDA4BC"}
@@ -1,9 +1,11 @@
1
- import { STSOAuth2Worker } from './stsoauth2worker';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const stsoauth2worker_1 = require("./stsoauth2worker");
2
4
  let oAuth2Worker = null;
3
5
  onmessage = async function (data) {
4
6
  const workerMessage = data.data;
5
7
  const workerPort = workerMessage.workerPort;
6
8
  const options = workerMessage.options;
7
- oAuth2Worker = new STSOAuth2Worker(workerPort, options);
9
+ oAuth2Worker = new stsoauth2worker_1.STSOAuth2Worker(workerPort, options);
8
10
  };
9
11
  //# sourceMappingURL=stsoauth2launcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stsoauth2launcher.js","sourceRoot":"","sources":["../src/stsoauth2launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,IAAI,YAAY,GAAoB,IAAI,CAAC;AAEzC,SAAS,GAAG,KAAK,WAAU,IAAkB;IAE5C,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,YAAY,GAAG,IAAI,eAAe,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC,CAAA"}
1
+ {"version":3,"file":"stsoauth2launcher.js","sourceRoot":"","sources":["../src/stsoauth2launcher.ts"],"names":[],"mappings":";;AACA,uDAAmD;AAEnD,IAAI,YAAY,GAAoB,IAAI,CAAC;AAEzC,SAAS,GAAG,KAAK,WAAU,IAAkB;IAE5C,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,YAAY,GAAG,IAAI,iCAAe,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC,CAAA"}