@ons/design-system 48.0.0 → 48.0.3

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/js/timeout.js CHANGED
@@ -30,7 +30,7 @@ export default class Timeout {
30
30
  }
31
31
 
32
32
  async initialise() {
33
- if (this.initialExpiryTime && this.sessionExpiryEndpoint) {
33
+ if (this.initialExpiryTime) {
34
34
  this.expiryTime = this.initialExpiryTime;
35
35
  } else {
36
36
  this.expiryTime = await this.setNewExpiryTime();
@@ -124,7 +124,7 @@ export default class Timeout {
124
124
  let newExpiryTime;
125
125
  if (!this.sessionExpiryEndpoint) {
126
126
  // For demo purposes
127
- const demoTime = new Date(this.initialExpiryTime ? this.initialExpiryTime : Date.now() + 60 * 1000);
127
+ const demoTime = new Date(Date.now() + 60 * 1000);
128
128
  newExpiryTime = new Date(demoTime).toISOString();
129
129
  } else {
130
130
  newExpiryTime = await this.fetchExpiryTime('PATCH');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "48.0.0",
4
+ "version": "48.0.3",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {