fix(core): update
This commit is contained in:
parent
23e88030be
commit
1db472ab01
11
package.json
11
package.json
@ -6,13 +6,14 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist_ts/index.js",
|
".": "./dist_ts/index.js",
|
||||||
"./ts": "./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_inject": "./dist_ts_web_inject/index.js",
|
||||||
"./ts_web_serviceworker": "./dist_web_serviceworker",
|
"./ts_web_serviceworker": "./dist_ts_web_serviceworker",
|
||||||
"./ts_web_serviceworker_client": "./dist_web_serviceworker_client"
|
"./ts_web_serviceworker_client": "./dist_ts_web_serviceworker_client"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build && tstest test/",
|
"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",
|
"interfaces": "tsbuild interfaces --web --allowimplicitany --skiplibcheck",
|
||||||
"docs": "tsdoc aidoc"
|
"docs": "tsdoc aidoc"
|
||||||
},
|
},
|
||||||
@ -58,7 +59,7 @@
|
|||||||
"@api.global/typedrequest": "^3.0.23",
|
"@api.global/typedrequest": "^3.0.23",
|
||||||
"@api.global/typedrequest-interfaces": "^3.0.19",
|
"@api.global/typedrequest-interfaces": "^3.0.19",
|
||||||
"@api.global/typedsocket": "^3.0.1",
|
"@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",
|
"@design.estate/dees-comms": "^1.0.24",
|
||||||
"@push.rocks/lik": "^6.0.15",
|
"@push.rocks/lik": "^6.0.15",
|
||||||
"@push.rocks/smartchok": "^1.0.34",
|
"@push.rocks/smartchok": "^1.0.34",
|
||||||
@ -93,7 +94,7 @@
|
|||||||
"lit": "^3.1.3"
|
"lit": "^3.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.75",
|
"@git.zone/tsbuild": "^2.1.76",
|
||||||
"@git.zone/tsbundle": "^2.0.15",
|
"@git.zone/tsbundle": "^2.0.15",
|
||||||
"@git.zone/tsrun": "^1.2.44",
|
"@git.zone/tsrun": "^1.2.44",
|
||||||
"@git.zone/tstest": "^1.0.90",
|
"@git.zone/tstest": "^1.0.90",
|
||||||
|
@ -15,8 +15,8 @@ dependencies:
|
|||||||
specifier: ^3.0.1
|
specifier: ^3.0.1
|
||||||
version: 3.0.1
|
version: 3.0.1
|
||||||
'@cloudflare/workers-types':
|
'@cloudflare/workers-types':
|
||||||
specifier: ^4.20240502.0
|
specifier: ^4.20240512.0
|
||||||
version: 4.20240502.0
|
version: 4.20240512.0
|
||||||
'@design.estate/dees-comms':
|
'@design.estate/dees-comms':
|
||||||
specifier: ^1.0.24
|
specifier: ^1.0.24
|
||||||
version: 1.0.24
|
version: 1.0.24
|
||||||
@ -116,8 +116,8 @@ dependencies:
|
|||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@git.zone/tsbuild':
|
'@git.zone/tsbuild':
|
||||||
specifier: ^2.1.75
|
specifier: ^2.1.76
|
||||||
version: 2.1.75
|
version: 2.1.76
|
||||||
'@git.zone/tsbundle':
|
'@git.zone/tsbundle':
|
||||||
specifier: ^2.0.15
|
specifier: ^2.0.15
|
||||||
version: 2.0.15
|
version: 2.0.15
|
||||||
@ -241,8 +241,8 @@ packages:
|
|||||||
regenerator-runtime: 0.14.1
|
regenerator-runtime: 0.14.1
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@cloudflare/workers-types@4.20240502.0:
|
/@cloudflare/workers-types@4.20240512.0:
|
||||||
resolution: {integrity: sha512-OB1jIyPOzyOcuZFHWhsQnkRLN6u8+jmU9X3T4KZlGgn3Ivw8pBiswhLOp+yFeChR3Y4/5+V0hPFRko5SReordg==}
|
resolution: {integrity: sha512-o2yTEWg+YK/I1t/Me+dA0oarO0aCbjibp6wSeaw52DSE9tDyKJ7S+Qdyw/XsMrKn4t8kF6f/YOba+9O4MJfW9w==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@cspotcode/source-map-support@0.8.1:
|
/@cspotcode/source-map-support@0.8.1:
|
||||||
@ -474,8 +474,8 @@ packages:
|
|||||||
'@types/chai': 4.3.16
|
'@types/chai': 4.3.16
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@git.zone/tsbuild@2.1.75:
|
/@git.zone/tsbuild@2.1.76:
|
||||||
resolution: {integrity: sha512-UiJ0LrZ+kYR/lHUMcziQXri5nNHLXDJeSgFy2Xxdw0shzBT1/pqwyQGpAQbvfde1HrTgslU+ZG/hmW2/8XUO0Q==}
|
resolution: {integrity: sha512-NmADGzasHm7p7lfCG/PGhfc2u7o/aWMhvlAIY7N/hNLD3ROkEjAzj78IUW8I0QANj13v/o11v18/IOGfSqVVRg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@push.rocks/early': 4.0.4
|
'@push.rocks/early': 4.0.4
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
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.'
|
description: 'A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.'
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './typedserver_web.plugins.js';
|
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';
|
import { logger } from './typedserver_web.logger.js';
|
||||||
logger.log('info', `TypedServer-Devtools initialized!`);
|
logger.log('info', `TypedServer-Devtools initialized!`);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// types
|
// types
|
||||||
import type * as interfaces from './interfaces/index.js';
|
import type * as interfaces from '../dist_ts_interfaces/index.js';
|
||||||
export type {
|
export type {
|
||||||
interfaces
|
interfaces
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './lele-serviceworker.plugins.js';
|
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 { logger } from './serviceworker.logging.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ export class ActionManager {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
// lets define handlers on the client/tab side
|
// 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(() => {
|
setTimeout(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}, 200);
|
}, 200);
|
||||||
@ -22,7 +22,7 @@ export class ActionManager {
|
|||||||
|
|
||||||
public async waitForServiceWorkerConnection () {
|
public async waitForServiceWorkerConnection () {
|
||||||
console.log('waiting for service worker connection...')
|
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;
|
let connected = false;
|
||||||
while (!connected) {
|
while (!connected) {
|
||||||
tr.fire({
|
tr.fire({
|
||||||
@ -45,13 +45,13 @@ export class ActionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async purgeServiceWorkerCache () {
|
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({});
|
const response = await tr.fire({});
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getVersionInfo () {
|
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({});
|
const response = await tr.fire({});
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './lele-serviceworker.plugins.js';
|
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 { logger } from "./serviceworker.logging.js";
|
||||||
|
|
||||||
export class NotificationManager {
|
export class NotificationManager {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './lele-serviceworker.plugins.js';
|
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 { logger } from "./serviceworker.logging.js";
|
||||||
import { NotificationManager } from './lele-serviceworker.classes.notificationmanager.js';
|
import { NotificationManager } from './lele-serviceworker.classes.notificationmanager.js';
|
||||||
import { ActionManager } from './lele-serviceworker.classes.actionmanager.js';
|
import { ActionManager } from './lele-serviceworker.classes.actionmanager.js';
|
||||||
|
Loading…
Reference in New Issue
Block a user