Compare commits

...

2 Commits

Author SHA1 Message Date
23dccae01b 2.0.52 2023-04-09 23:04:36 +02:00
d5f8d215a2 fix(core): update 2023-04-09 23:04:35 +02:00
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedserver",
"version": "2.0.51",
"version": "2.0.52",
"description": "easy serving of static files",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.51',
version: '2.0.52',
description: 'easy serving of static files'
}

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.51',
version: '2.0.52',
description: 'easy serving of static files'
}

View File

@ -61,7 +61,8 @@ export class ReloadChecker {
public async checkReload(lastServerChange: number) {
let reloadJustified = false;
(await this.store.get(this.storeKey)) !== lastServerChange ? (reloadJustified = true) : null;
let storedLastServerChange = await this.store.get(this.storeKey);
storedLastServerChange && storedLastServerChange !== lastServerChange ? (reloadJustified = true) : null;
if (reloadJustified) {
this.store.set(this.storeKey, lastServerChange);