gd-sprest 9.0.6 → 9.0.7

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.
@@ -789,7 +789,8 @@ var _ContextInfo = /** @class */ (function () {
789
789
  var dtToken = new Date(digestValue.split(',')[1]);
790
790
  var timeout = this.formDigestTimeoutSeconds || 0;
791
791
  // Return true if it's still valid
792
- return Date.now() < dtToken.getTime() + timeout * 1000;
792
+ // Time the token was granted + Timeout in seconds - 1 min (60000)
793
+ return Date.now() < dtToken.getTime() + timeout * 1000 - 60000;
793
794
  };
794
795
  var _a;
795
796
  _a = _ContextInfo;
package/build/rest.js CHANGED
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 9.06,
12
+ __ver: 9.07,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,