@mindline/sync 1.0.56 → 1.0.57
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/.vs/slnx.sqlite +0 -0
- package/.vs/sync/FileContentIndex/edac37e3-1727-4501-92b8-aab08cc1220c.vsidx +0 -0
- package/.vs/sync/v17/.wsuo +0 -0
- package/index.d.ts +1 -0
- package/index.ts +6 -4
- package/package.json +1 -1
- package/users.json +1 -1
- package/.vs/sync/FileContentIndex/41496172-9f1a-4c1e-8416-5afcea77e5af.vsidx +0 -0
package/.vs/slnx.sqlite
CHANGED
|
Binary file
|
package/.vs/sync/v17/.wsuo
CHANGED
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -223,6 +223,7 @@ declare module "@mindline/sync" {
|
|
|
223
223
|
pb_increment: number;
|
|
224
224
|
pb_idle: number;
|
|
225
225
|
pb_idleMax: number;
|
|
226
|
+
pb_total: number;
|
|
226
227
|
pb_timer: NodeJS.Timer;
|
|
227
228
|
milestoneArray: MilestoneArray;
|
|
228
229
|
constructor(config: Config|null, syncPortalGlobalState: InitInfo|null, bClearLocalStorage: boolean);
|
package/index.ts
CHANGED
|
@@ -774,6 +774,7 @@ export class BatchArray {
|
|
|
774
774
|
pb_increment: number;
|
|
775
775
|
pb_idle: number;
|
|
776
776
|
pb_idleMax: number;
|
|
777
|
+
pb_total: number;
|
|
777
778
|
pb_timer: NodeJS.Timer;
|
|
778
779
|
milestoneArray: MilestoneArray;
|
|
779
780
|
constructor(
|
|
@@ -789,6 +790,7 @@ export class BatchArray {
|
|
|
789
790
|
this.pb_timer = null;
|
|
790
791
|
this.pb_idle = 0;
|
|
791
792
|
this.pb_idleMax = 0;
|
|
793
|
+
this.pb_total = 0;
|
|
792
794
|
this.milestoneArray = new MilestoneArray(false);
|
|
793
795
|
}
|
|
794
796
|
// populate tenantNodes based on config tenants
|
|
@@ -878,7 +880,7 @@ export class BatchArray {
|
|
|
878
880
|
this.pb_increment = .25;
|
|
879
881
|
this.pb_idle = 0;
|
|
880
882
|
this.pb_idleMax = 0;
|
|
881
|
-
|
|
883
|
+
this.pb_total = 0;
|
|
882
884
|
this.pb_timer = setInterval(() => {
|
|
883
885
|
// if signalR has finished the sync, stop the timer
|
|
884
886
|
if (this.milestoneArray.milestones[0].Write != null) {
|
|
@@ -890,9 +892,10 @@ export class BatchArray {
|
|
|
890
892
|
}
|
|
891
893
|
else {
|
|
892
894
|
// if we've gone 60 seconds without a signalR message, finish the sync
|
|
895
|
+
this.pb_total = this.pb_total + 1;
|
|
893
896
|
this.pb_idle = this.pb_idle + 1;
|
|
894
897
|
this.pb_idleMax = Math.max(this.pb_idle, this.pb_idleMax);
|
|
895
|
-
setIdleText(
|
|
898
|
+
setIdleText(`${this.pb_total} seconds elapsed. Last update ${this.pb_idle} seconds ago. [max idle: ${this.pb_idleMax}/60]`);
|
|
896
899
|
if (this.pb_idle >= 60) {
|
|
897
900
|
clearInterval(this.pb_timer);
|
|
898
901
|
this.pb_timer = null;
|
|
@@ -1222,7 +1225,6 @@ export async function groupsGet(instance: IPublicClientApplication, user: User |
|
|
|
1222
1225
|
export async function signIn(user: User, tasks: TaskArray): Promise<boolean> {
|
|
1223
1226
|
// admin authority is blank at signIn, lookup authority real-time
|
|
1224
1227
|
if (user.authority == "") {
|
|
1225
|
-
debugger;
|
|
1226
1228
|
// lookup authority for this user (the lookup call does it based on domain, but TID works as well to find authority)
|
|
1227
1229
|
let tenant: Tenant = new Tenant();
|
|
1228
1230
|
tenant.domain = user.tid;
|
|
@@ -1239,7 +1241,7 @@ export async function signIn(user: User, tasks: TaskArray): Promise<boolean> {
|
|
|
1239
1241
|
}
|
|
1240
1242
|
switch (user.authority) {
|
|
1241
1243
|
case graphConfig.authorityWW:
|
|
1242
|
-
// SignIn by an admin consents the app, Challenge adds incremental permissions
|
|
1244
|
+
// SignIn by an admin consents the app, Challenge adds incremental permissions dynamically, but requires a consented app
|
|
1243
1245
|
let tenantURL: string = window.location.href;
|
|
1244
1246
|
tenantURL += "MicrosoftIdentity/Account/SignIn";
|
|
1245
1247
|
let url: URL = new URL(tenantURL);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindline/sync",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.57",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"exports": "./index.ts",
|
|
7
7
|
"description": "sync is a node.js package encapsulating javscript classes required for configuring Mindline sync service.",
|
package/users.json
CHANGED
|
Binary file
|