fix(core): update

This commit is contained in:
Philipp Kunz 2024-05-14 02:18:42 +02:00
parent 23e88030be
commit 1db472ab01
9 changed files with 24 additions and 23 deletions

View File

@ -6,13 +6,14 @@
"exports": {
".": "./dist_ts/index.js",
"./ts": "./dist_ts/index.js",
"./ts_edgeworker": "./dist_ts_edgeworker",
"./ts_web_inject": "./dist_ts_web_inject/index.js",
"./ts_web_serviceworker": "./dist_web_serviceworker",
"./ts_web_serviceworker_client": "./dist_web_serviceworker_client"
"./ts_web_serviceworker": "./dist_ts_web_serviceworker",
"./ts_web_serviceworker_client": "./dist_ts_web_serviceworker_client"
},
"scripts": {
"test": "npm run build && tstest test/",
"build": "tsbuild tsfolders --web --allowimplicitany --skiplibcheck && tsbundle --from ./ts_web/index.ts --to ./dist_ts_web/bundle.js",
"build": "tsbuild tsfolders --web --allowimplicitany --skiplibcheck && tsbundle --from ./ts_web_inject/index.ts --to ./dist_ts_web_inject/bundle.js",
"interfaces": "tsbuild interfaces --web --allowimplicitany --skiplibcheck",
"docs": "tsdoc aidoc"
},
@ -58,7 +59,7 @@
"@api.global/typedrequest": "^3.0.23",
"@api.global/typedrequest-interfaces": "^3.0.19",
"@api.global/typedsocket": "^3.0.1",
"@cloudflare/workers-types": "^4.20240502.0",
"@cloudflare/workers-types": "^4.20240512.0",
"@design.estate/dees-comms": "^1.0.24",
"@push.rocks/lik": "^6.0.15",
"@push.rocks/smartchok": "^1.0.34",
@ -93,7 +94,7 @@
"lit": "^3.1.3"
},
"devDependencies": {
"@git.zone/tsbuild": "^2.1.75",
"@git.zone/tsbuild": "^2.1.76",
"@git.zone/tsbundle": "^2.0.15",
"@git.zone/tsrun": "^1.2.44",
"@git.zone/tstest": "^1.0.90",

16
pnpm-lock.yaml generated
View File

@ -15,8 +15,8 @@ dependencies:
specifier: ^3.0.1
version: 3.0.1
'@cloudflare/workers-types':
specifier: ^4.20240502.0
version: 4.20240502.0
specifier: ^4.20240512.0
version: 4.20240512.0
'@design.estate/dees-comms':
specifier: ^1.0.24
version: 1.0.24
@ -116,8 +116,8 @@ dependencies:
devDependencies:
'@git.zone/tsbuild':
specifier: ^2.1.75
version: 2.1.75
specifier: ^2.1.76
version: 2.1.76
'@git.zone/tsbundle':
specifier: ^2.0.15
version: 2.0.15
@ -241,8 +241,8 @@ packages:
regenerator-runtime: 0.14.1
dev: false
/@cloudflare/workers-types@4.20240502.0:
resolution: {integrity: sha512-OB1jIyPOzyOcuZFHWhsQnkRLN6u8+jmU9X3T4KZlGgn3Ivw8pBiswhLOp+yFeChR3Y4/5+V0hPFRko5SReordg==}
/@cloudflare/workers-types@4.20240512.0:
resolution: {integrity: sha512-o2yTEWg+YK/I1t/Me+dA0oarO0aCbjibp6wSeaw52DSE9tDyKJ7S+Qdyw/XsMrKn4t8kF6f/YOba+9O4MJfW9w==}
dev: false
/@cspotcode/source-map-support@0.8.1:
@ -474,8 +474,8 @@ packages:
'@types/chai': 4.3.16
dev: true
/@git.zone/tsbuild@2.1.75:
resolution: {integrity: sha512-UiJ0LrZ+kYR/lHUMcziQXri5nNHLXDJeSgFy2Xxdw0shzBT1/pqwyQGpAQbvfde1HrTgslU+ZG/hmW2/8XUO0Q==}
/@git.zone/tsbuild@2.1.76:
resolution: {integrity: sha512-NmADGzasHm7p7lfCG/PGhfc2u7o/aWMhvlAIY7N/hNLD3ROkEjAzj78IUW8I0QANj13v/o11v18/IOGfSqVVRg==}
hasBin: true
dependencies:
'@push.rocks/early': 4.0.4

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.32',
version: '3.0.33',
description: 'A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.'
}

View File

@ -1,5 +1,5 @@
import * as plugins from './typedserver_web.plugins.js';
import * as interfaces from '../ts_interfaces/index.js';
import * as interfaces from '../dist_ts_interfaces/index.js';
import { logger } from './typedserver_web.logger.js';
logger.log('info', `TypedServer-Devtools initialized!`);

View File

@ -1,5 +1,5 @@
// types
import type * as interfaces from './interfaces/index.js';
import type * as interfaces from '../dist_ts_interfaces/index.js';
export type {
interfaces
}

View File

@ -1,5 +1,5 @@
import * as plugins from './lele-serviceworker.plugins.js';
import * as interfaces from './interfaces/index.js';
import * as interfaces from '../dist_ts_interfaces/index.js';
import { logger } from './serviceworker.logging.js';
/**
@ -12,7 +12,7 @@ export class ActionManager {
constructor() {
// lets define handlers on the client/tab side
this.deesComms.createTypedHandler<interfaces.IMessage_Serviceworker_Client_UpdateInfo>('serviceworker_newVersion', async req => {
this.deesComms.createTypedHandler<interfaces.serviceworker.IMessage_Serviceworker_Client_UpdateInfo>('serviceworker_newVersion', async req => {
setTimeout(() => {
window.location.reload();
}, 200);
@ -22,7 +22,7 @@ export class ActionManager {
public async waitForServiceWorkerConnection () {
console.log('waiting for service worker connection...')
const tr = this.deesComms.createTypedRequest<interfaces.IRequest_Client_Serviceworker_ConnectionPolling>('broadcastConnectionPolling');
const tr = this.deesComms.createTypedRequest<interfaces.serviceworker.IRequest_Client_Serviceworker_ConnectionPolling>('broadcastConnectionPolling');
let connected = false;
while (!connected) {
tr.fire({
@ -45,13 +45,13 @@ export class ActionManager {
}
public async purgeServiceWorkerCache () {
const tr = this.deesComms.createTypedRequest<interfaces.IRequest_PurgeServiceWorkerCache>('purgeServiceWorkerCache');
const tr = this.deesComms.createTypedRequest<interfaces.serviceworker.IRequest_PurgeServiceWorkerCache>('purgeServiceWorkerCache');
const response = await tr.fire({});
return response;
}
public async getVersionInfo () {
const tr = this.deesComms.createTypedRequest<interfaces.IRequest_Serviceworker_Backend_VersionInfo>('serviceworker_versionInfo');
const tr = this.deesComms.createTypedRequest<interfaces.serviceworker.IRequest_Serviceworker_Backend_VersionInfo>('serviceworker_versionInfo');
const response = await tr.fire({});
return response;
}

View File

@ -1,5 +1,5 @@
import * as plugins from './lele-serviceworker.plugins.js';
import * as interfaces from './interfaces/index.js';
import * as interfaces from '../dist_ts_interfaces/index.js';
import { logger } from "./serviceworker.logging.js";
export class NotificationManager {

View File

@ -1,5 +1,5 @@
import * as plugins from './lele-serviceworker.plugins.js';
import * as interfaces from './interfaces/index.js';
import * as interfaces from '../dist_ts_interfaces/index.js';
import { logger } from "./serviceworker.logging.js";
import { NotificationManager } from './lele-serviceworker.classes.notificationmanager.js';
import { ActionManager } from './lele-serviceworker.classes.actionmanager.js';