fix(core): update
This commit is contained in:
parent
a7ddb6b6a8
commit
ca3b8a4580
@ -46,6 +46,7 @@
|
|||||||
"@push.rocks/smartenv": "^5.0.12",
|
"@push.rocks/smartenv": "^5.0.12",
|
||||||
"@push.rocks/smartfeed": "^1.0.11",
|
"@push.rocks/smartfeed": "^1.0.11",
|
||||||
"@push.rocks/smartfile": "^11.0.4",
|
"@push.rocks/smartfile": "^11.0.4",
|
||||||
|
"@push.rocks/smartjson": "^5.0.10",
|
||||||
"@push.rocks/smartlog": "^3.0.3",
|
"@push.rocks/smartlog": "^3.0.3",
|
||||||
"@push.rocks/smartlog-destination-devtools": "^1.0.10",
|
"@push.rocks/smartlog-destination-devtools": "^1.0.10",
|
||||||
"@push.rocks/smartmanifest": "^2.0.2",
|
"@push.rocks/smartmanifest": "^2.0.2",
|
||||||
|
@ -32,6 +32,9 @@ dependencies:
|
|||||||
'@push.rocks/smartfile':
|
'@push.rocks/smartfile':
|
||||||
specifier: ^11.0.4
|
specifier: ^11.0.4
|
||||||
version: 11.0.4
|
version: 11.0.4
|
||||||
|
'@push.rocks/smartjson':
|
||||||
|
specifier: ^5.0.10
|
||||||
|
version: 5.0.10
|
||||||
'@push.rocks/smartlog':
|
'@push.rocks/smartlog':
|
||||||
specifier: ^3.0.3
|
specifier: ^3.0.3
|
||||||
version: 3.0.3
|
version: 3.0.3
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
name: '@api.global/typedserver',
|
||||||
version: '3.0.20',
|
version: '3.0.21',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './typedserver.plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
|
|
||||||
import * as servertools from './servertools/index.js';
|
import * as servertools from './servertools/index.js';
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ import * as smartchok from '@push.rocks/smartchok';
|
|||||||
import * as smartdelay from '@push.rocks/smartdelay';
|
import * as smartdelay from '@push.rocks/smartdelay';
|
||||||
import * as smartfeed from '@push.rocks/smartfeed';
|
import * as smartfeed from '@push.rocks/smartfeed';
|
||||||
import * as smartfile from '@push.rocks/smartfile';
|
import * as smartfile from '@push.rocks/smartfile';
|
||||||
|
import * as smartjson from '@push.rocks/smartjson';
|
||||||
import * as smartmanifest from '@push.rocks/smartmanifest';
|
import * as smartmanifest from '@push.rocks/smartmanifest';
|
||||||
import * as smartmime from '@push.rocks/smartmime';
|
import * as smartmime from '@push.rocks/smartmime';
|
||||||
import * as smartopen from '@push.rocks/smartopen';
|
import * as smartopen from '@push.rocks/smartopen';
|
||||||
@ -43,6 +44,7 @@ export {
|
|||||||
smartdelay,
|
smartdelay,
|
||||||
smartfeed,
|
smartfeed,
|
||||||
smartfile,
|
smartfile,
|
||||||
|
smartjson,
|
||||||
smartmanifest,
|
smartmanifest,
|
||||||
smartmime,
|
smartmime,
|
||||||
smartopen,
|
smartopen,
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
export type TCompressionMethod = 'gzip' | 'deflate' | 'br' | 'none';
|
export type TCompressionMethod = 'gzip' | 'deflate' | 'br' | 'none';
|
||||||
export interface ICompressionResult {
|
export interface ICompressionResult {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
import { Server } from './classes.server.js';
|
import { Server } from './classes.server.js';
|
||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
export class Feed {
|
export class Feed {
|
||||||
public smartexpressRef: Server;
|
public smartexpressRef: Server;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { type Request, type Response } from 'express';
|
import { type Request, type Response } from 'express';
|
||||||
|
|
||||||
export interface IHandlerFunction {
|
export interface IHandlerFunction {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
|
||||||
import * as interfaces from '../interfaces/index.js';
|
import * as interfaces from '../interfaces/index.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import * as interfaces from '../interfaces/index.js';
|
import * as interfaces from '../interfaces/index.js';
|
||||||
|
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
|
||||||
import * as interfaces from '../interfaces/index.js';
|
import * as interfaces from '../interfaces/index.js';
|
||||||
@ -11,7 +11,7 @@ export class HandlerTypedRouter extends Handler {
|
|||||||
constructor(typedrouter: plugins.typedrequest.TypedRouter) {
|
constructor(typedrouter: plugins.typedrequest.TypedRouter) {
|
||||||
super('POST', async (req, res) => {
|
super('POST', async (req, res) => {
|
||||||
const response = await typedrouter.routeAndAddResponse(req.body);
|
const response = await typedrouter.routeAndAddResponse(req.body);
|
||||||
res.json(response);
|
res.json(plugins.smartjson.stringify(response));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
import { Server } from './classes.server.js';
|
import { Server } from './classes.server.js';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
import { Route } from './classes.route.js';
|
import { Route } from './classes.route.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Server } from './classes.server.js';
|
import { Server } from './classes.server.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { type IUrlInfo } from '@push.rocks/smartsitemap';
|
import { type IUrlInfo } from '@push.rocks/smartsitemap';
|
||||||
|
|
||||||
export class Sitemap {
|
export class Sitemap {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
export const setupManifest = async (
|
export const setupManifest = async (
|
||||||
expressInstanceArg: plugins.express.Application,
|
expressInstanceArg: plugins.express.Application,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { Server } from './classes.server.js';
|
import { Server } from './classes.server.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../typedserver.plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
import { Server } from './classes.server.js';
|
import { Server } from './classes.server.js';
|
||||||
import { Handler } from './classes.handler.js';
|
import { Handler } from './classes.handler.js';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './typedserver.plugins.js';
|
import * as plugins from './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';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './typedserver.plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
|
|
||||||
export const packageDir = plugins.path.join(
|
export const packageDir = plugins.path.join(
|
||||||
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
|
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedserver',
|
name: '@api.global/typedserver',
|
||||||
version: '3.0.20',
|
version: '3.0.21',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user