Skip to content

Commit

Permalink
🚀 core framework updated 💯 🌹
Browse files Browse the repository at this point in the history
  • Loading branch information
rajibchy committed Jan 13, 2023
1 parent c977cc4 commit fb2bd72
Show file tree
Hide file tree
Showing 39 changed files with 182 additions and 150 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Linux Build][travis-image]][travis-url]
[![npm version][npm-version-image]][npm-version-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Language grade: JavaScript][language-garde-image]][language-garde-url]
[![Coverage Status][coveralls-image]][coveralls-url]

## cwserver ##
Expand Down
6 changes: 3 additions & 3 deletions dist/lib/app-controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/app-controller.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/app-global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IController } from './app-controller';
import { ISowServer } from './server';
import { IMimeType } from './http-mime-types';
import { SandBox } from './app-template';
declare type IViewRegister = (app: IApplication, controller: IController, server: ISowServer) => void;
type IViewRegister = (app: IApplication, controller: IController, server: ISowServer) => void;
interface ISowGlobalServer {
/**
* Register new `view` module
Expand Down
12 changes: 6 additions & 6 deletions dist/lib/app-global.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/app-global.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/lib/app-router.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export declare type IRouteMatcher = {
export type IRouteMatcher = {
readonly test: (val: string) => boolean;
readonly replace: (val: string) => string;
readonly exec: (val: string) => RegExpMatchArray | null;
};
export declare type IRequestParam = {
export type IRequestParam = {
query: {
[x: string]: string;
};
match: string[];
};
export declare type ILayerInfo<T> = {
export type ILayerInfo<T> = {
route: string;
handler: T;
routeMatcher: IRouteMatcher | undefined;
method: "GET" | "POST" | "ANY";
pathArray: string[];
};
export declare type IRouteInfo<T> = {
export type IRouteInfo<T> = {
layer: ILayerInfo<T>;
requestParam?: IRequestParam;
};
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/app-static.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface IResInfo {
isInternalErrorCode: boolean;
description: string;
}
export declare type ErrorHandler = (err: NodeJS.ErrnoException | Error | null | undefined, next: () => void) => void;
export type ErrorHandler = (err: NodeJS.ErrnoException | Error | null | undefined, next: () => void) => void;
export interface IDispose {
dispose(): void;
}
Expand Down
10 changes: 5 additions & 5 deletions dist/lib/app-static.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/app-static.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/lib/app-template.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/// <reference types="node" />
import { IResInfo } from './app-static';
import { IContext } from './server';
declare type SandBoxNext = (ctx: IContext, body: string, isCompressed?: boolean) => void;
export declare type SandBox = (ctx: IContext, next: SandBoxNext, isCompressed?: boolean) => void;
export declare type CompilerResult = {
type SandBoxNext = (ctx: IContext, body: string, isCompressed?: boolean) => void;
export type SandBox = (ctx: IContext, next: SandBoxNext, isCompressed?: boolean) => void;
export type CompilerResult = {
str: string;
isScript?: boolean;
isTemplate?: boolean;
sandBox?: SandBox;
err?: NodeJS.ErrnoException | Error | null;
};
declare type TemplateNextFunc = (params: CompilerResult) => void;
type TemplateNextFunc = (params: CompilerResult) => void;
export declare function templateNext(ctx: IContext, next: SandBoxNext, isCompressed?: boolean): void;
export declare class TemplateCore {
static compile(str: string | undefined, next: TemplateNextFunc): void;
Expand Down
18 changes: 9 additions & 9 deletions dist/lib/app-template.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/app-template.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/body-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/// <reference types="node" />
import { IRequest } from './server-core';
import { IDispose, ErrorHandler } from './app-static';
export declare type UploadFileInfo = {
export type UploadFileInfo = {
contentType: string;
name: string;
fileName: string;
contentDisposition: string;
tempPath: string | undefined;
};
export declare type FileInfo = {
export type FileInfo = {
contentDisposition: string;
name: string;
fileName: string;
Expand Down
22 changes: 11 additions & 11 deletions dist/lib/body-parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/body-parser.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/db-type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export interface QueryResultBase {
export interface QueryResult<R extends QueryResultRow = any> extends QueryResultBase {
rows: R[];
}
export declare type IoResult = {
export type IoResult = {
ret_val: number;
ret_msg: string;
ret_data_table?: any;
};
export declare type QResult<R extends QueryResultRow> = {
export type QResult<R extends QueryResultRow> = {
isError: boolean;
err?: Error;
res?: QueryResult<R>;
Expand Down
2 changes: 2 additions & 0 deletions dist/lib/file-info.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ export declare class FileDescription implements IFileDescription {
constructor(exists: boolean, url: string, stats?: _fs.Stats);
}
export interface IFileInfoCacheHandler {
rmove(path: string): boolean;
stat(path: string, next: (desc: IFileDescription) => void, force?: boolean): void;
exists(path: string, next: (exists: boolean, url: string) => void, force?: boolean): void;
}
export declare class FileInfoCacheHandler implements IFileInfoCacheHandler {
private _pathCache;
constructor();
rmove(path: string): boolean;
stat(path: string, next: (desc: IFileDescription) => void, force?: boolean): void;
exists(path: string, next: (exists: boolean, url: string) => void, force?: boolean): void;
}

0 comments on commit fb2bd72

Please sign in to comment.