@etsoo/appscript 1.1.77 → 1.1.78

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.
@@ -746,7 +746,7 @@ class CoreApp {
746
746
  return url;
747
747
  // From relative root, like home:/react/, url: /about => /react/about
748
748
  if (url.startsWith('/'))
749
- return home + url.substr(1);
749
+ return home + url.substring(1);
750
750
  const pathname = window.location.pathname;
751
751
  // Relative
752
752
  const pos = pathname.indexOf(home);
@@ -36,4 +36,8 @@ export interface IUser extends IUserData, IState {
36
36
  * Authorized or not
37
37
  */
38
38
  authorized: boolean;
39
+ /**
40
+ * Last update changed fields
41
+ */
42
+ lastChangedFields?: string[];
39
43
  }
@@ -743,7 +743,7 @@ export class CoreApp {
743
743
  return url;
744
744
  // From relative root, like home:/react/, url: /about => /react/about
745
745
  if (url.startsWith('/'))
746
- return home + url.substr(1);
746
+ return home + url.substring(1);
747
747
  const pathname = window.location.pathname;
748
748
  // Relative
749
749
  const pos = pathname.indexOf(home);
@@ -36,4 +36,8 @@ export interface IUser extends IUserData, IState {
36
36
  * Authorized or not
37
37
  */
38
38
  authorized: boolean;
39
+ /**
40
+ * Last update changed fields
41
+ */
42
+ lastChangedFields?: string[];
39
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -1375,7 +1375,7 @@ export abstract class CoreApp<
1375
1375
  if (home === '') return url;
1376
1376
 
1377
1377
  // From relative root, like home:/react/, url: /about => /react/about
1378
- if (url.startsWith('/')) return home + url.substr(1);
1378
+ if (url.startsWith('/')) return home + url.substring(1);
1379
1379
 
1380
1380
  const pathname = window.location.pathname;
1381
1381
 
package/src/state/User.ts CHANGED
@@ -43,4 +43,9 @@ export interface IUser extends IUserData, IState {
43
43
  * Authorized or not
44
44
  */
45
45
  authorized: boolean;
46
+
47
+ /**
48
+ * Last update changed fields
49
+ */
50
+ lastChangedFields?: string[];
46
51
  }