fix(core): update
This commit is contained in:
parent
8c3aad69a0
commit
b0efc48b96
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
name: '@api.global/typedserver',
|
||||||
version: '3.0.14',
|
version: '3.0.15',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ import * as plugins from './typedserver.plugins.js';
|
|||||||
import * as paths from './typedserver.paths.js';
|
import * as paths from './typedserver.paths.js';
|
||||||
import * as interfaces from './interfaces/index.js';
|
import * as interfaces from './interfaces/index.js';
|
||||||
import * as servertools from './servertools/index.js';
|
import * as servertools from './servertools/index.js';
|
||||||
|
import { type TCompressionMethod } from './servertools/classes.compressor.js';
|
||||||
|
|
||||||
export interface IServerOptions {
|
export interface IServerOptions {
|
||||||
/**
|
/**
|
||||||
@ -14,6 +15,16 @@ export interface IServerOptions {
|
|||||||
*/
|
*/
|
||||||
injectReload?: boolean;
|
injectReload?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* enable compression
|
||||||
|
*/
|
||||||
|
enableCompression?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* choose a preferred compression method
|
||||||
|
*/
|
||||||
|
preferredCompressionMethod?: TCompressionMethod;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* watch the serve directory?
|
* watch the serve directory?
|
||||||
*/
|
*/
|
||||||
@ -157,6 +168,8 @@ export class TypedServer {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
serveIndexHtmlDefault: true,
|
serveIndexHtmlDefault: true,
|
||||||
|
enableCompression: this.options.enableCompression,
|
||||||
|
preferredCompressionMethod: this.options.preferredCompressionMethod,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else if (this.options.injectReload) {
|
} else if (this.options.injectReload) {
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
name: '@api.global/typedserver',
|
||||||
version: '3.0.14',
|
version: '3.0.15',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "NodeNext",
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true,
|
||||||
}
|
"verbatimModuleSyntax": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"dist_*/**/*.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user