fix(core): update
This commit is contained in:
parent
8fe5b6985c
commit
1d5af30e78
10
package.json
10
package.json
@ -5,11 +5,11 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist_ts/index.js",
|
".": "./dist_ts/index.js",
|
||||||
"./ts": "./dist_ts/index.js",
|
"./backend": "./dist_ts/index.js",
|
||||||
"./ts_edgeworker": "./dist_ts_edgeworker/index.js",
|
"./edgeworker": "./dist_ts_edgeworker/index.js",
|
||||||
"./ts_web_inject": "./dist_ts_web_inject/index.js",
|
"./web_inject": "./dist_ts_web_inject/index.js",
|
||||||
"./ts_web_serviceworker": "./dist_ts_web_serviceworker/index.js",
|
"./web_serviceworker": "./dist_ts_web_serviceworker/index.js",
|
||||||
"./ts_web_serviceworker_client": "./dist_ts_web_serviceworker_client/index.js"
|
"./web_serviceworker_client": "./dist_ts_web_serviceworker_client/index.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build && tstest test/",
|
"test": "npm run build && tstest test/",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
name: '@api.global/typedserver',
|
||||||
version: '3.0.42',
|
version: '3.0.43',
|
||||||
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,7 +1,7 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import * as interfaces from './env.js';
|
import * as interfaces from './env.js';
|
||||||
import { logger } from './serviceworker.logging.js';
|
import { logger } from './logging.js';
|
||||||
import { ServiceWorker } from './serviceworker.classes.serviceworker.js';
|
import { ServiceWorker } from './classes.serviceworker.js';
|
||||||
|
|
||||||
export class CacheManager {
|
export class CacheManager {
|
||||||
public losslessServiceWorkerRef: ServiceWorker;
|
public losslessServiceWorkerRef: ServiceWorker;
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import { ServiceWorker } from './serviceworker.classes.serviceworker.js';
|
import { ServiceWorker } from './classes.serviceworker.js';
|
||||||
|
|
||||||
export class NetworkManager {
|
export class NetworkManager {
|
||||||
public serviceWorkerRef: ServiceWorker;
|
public serviceWorkerRef: ServiceWorker;
|
@ -2,15 +2,15 @@ import * as plugins from './plugins.js';
|
|||||||
import * as interfaces from './env.js';
|
import * as interfaces from './env.js';
|
||||||
|
|
||||||
// imports
|
// imports
|
||||||
import { CacheManager } from './serviceworker.classes.cachemanager.js';
|
import { CacheManager } from './classes.cachemanager.js';
|
||||||
import { Deferred } from '@push.rocks/smartpromise';
|
import { Deferred } from '@push.rocks/smartpromise';
|
||||||
|
|
||||||
import { logger } from './serviceworker.logging.js';
|
import { logger } from './logging.js';
|
||||||
|
|
||||||
// imported classes
|
// imported classes
|
||||||
import { UpdateManager } from './serviceworker.classes.updatemanager.js';
|
import { UpdateManager } from './classes.updatemanager.js';
|
||||||
import { NetworkManager } from './serviceworker.classes.networkmanager.js';
|
import { NetworkManager } from './classes.networkmanager.js';
|
||||||
import { TaskManager } from './serviceworker.classes.taskmanager.js';
|
import { TaskManager } from './classes.taskmanager.js';
|
||||||
import { ServiceworkerBackend } from './classes.backend.js';
|
import { ServiceworkerBackend } from './classes.backend.js';
|
||||||
|
|
||||||
export class ServiceWorker {
|
export class ServiceWorker {
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import { ServiceWorker } from './serviceworker.classes.serviceworker.js';
|
import { ServiceWorker } from './classes.serviceworker.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Taskmanager
|
* Taskmanager
|
@ -1,8 +1,8 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import * as interfaces from '../dist_ts_interfaces/index.js';
|
import * as interfaces from '../dist_ts_interfaces/index.js';
|
||||||
import { ServiceWorker } from './serviceworker.classes.serviceworker.js';
|
import { ServiceWorker } from './classes.serviceworker.js';
|
||||||
import { logger } from './serviceworker.logging.js';
|
import { logger } from './logging.js';
|
||||||
import { CacheManager } from './serviceworker.classes.cachemanager.js';
|
import { CacheManager } from './classes.cachemanager.js';
|
||||||
|
|
||||||
export class UpdateManager {
|
export class UpdateManager {
|
||||||
public lastUpdateCheck: number = 0;
|
public lastUpdateCheck: number = 0;
|
@ -2,10 +2,6 @@
|
|||||||
import * as env from './env.js';
|
import * as env from './env.js';
|
||||||
declare var self: env.ServiceWindow;
|
declare var self: env.ServiceWindow;
|
||||||
|
|
||||||
import { ServiceWorker } from './serviceworker.classes.serviceworker.js';
|
import { ServiceWorker } from './classes.serviceworker.js';
|
||||||
|
|
||||||
export const getServiceWorkerInstance = async () => {
|
|
||||||
const sw = new ServiceWorker(self);
|
const sw = new ServiceWorker(self);
|
||||||
return sw;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user