magpie-base
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Changelog | ||
## 3.1.1 | ||
### Fixed | ||
- Socket: Do not warn when checking for socket existence | ||
- Socket: Implement heartbeat to avoid session timeout | ||
## 3.1.0 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "magpie-base", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Provides base components for magpie frontend projects", | ||
@@ -5,0 +5,0 @@ "author": "magpie project", |
@@ -137,2 +137,4 @@ import EventEmitter from 'events'; | ||
this.socketUrl = options.socketUrl; | ||
/** | ||
@@ -289,3 +291,3 @@ * @instance | ||
this.currentVarsData = {}; | ||
if (this.socket) { | ||
if (this.socketUrl) { | ||
this.socket.setCurrentScreen(this.currentScreenIndex); | ||
@@ -406,3 +408,3 @@ } | ||
async submitResults(submissionURL, data, intermediate) { | ||
if (this.socket) { | ||
if (this.socketUrl) { | ||
try { | ||
@@ -409,0 +411,0 @@ const submissionType = intermediate |
@@ -197,2 +197,7 @@ import { Socket as PhoenixSocket } from 'phoenix'; | ||
.receive('timeout', this.errorHandler); | ||
// Send heartbeat every 30s | ||
setInterval(() => { | ||
this.participantChannel.push('report_heartbeat'); | ||
}, 30000); | ||
} | ||
@@ -199,0 +204,0 @@ |
const path = require('path'); | ||
const { version } = require('./package.json') | ||
module.exports = { | ||
// set your styleguidist configuration here | ||
title: 'Magpie reference', | ||
title: 'Magpie reference ('+version+')', | ||
require: [path.join(__dirname, 'styleguidist/global.requires.js')], | ||
@@ -7,0 +8,0 @@ // components: 'src/components/**/[A-Z]*.vue', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2442986
1732