Skip to content

Commit 63ae22e

Browse files
Update to 2.2.0
1 parent 501a63e commit 63ae22e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

ProtoSSChe.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ declare namespace zetaret.node {
4949
setEnv(envobj: ServerEnvironment): void
5050
resetFSInterval(): void
5151
stopFSInterval(): void
52+
getNodeServer(requestListener: Function, envd?: ServerEnvironment, port?: number) : NodeServerData
5253
getModuleInstance(xmodule: string): ModuleInstance
5354
}
5455
}

ServerObjects.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ declare namespace zetaret.node {
102102
xprocls: ProtoSSCheCTOR;
103103
xmodule: string;
104104
}
105+
export interface NodeServerData {
106+
httpsop: object;
107+
htserv: XServer;
108+
}
105109
}

modules/Subserver.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare namespace zetaret.node.modules {
2424
removePathListener(path: string, callback: Function): zetaret.node.modules.Subserver
2525
pathListener(server: zetaret.node.modules.Subserver, robj: object, routeData: object, request: zetaret.node.Input, response: zetaret.node.Output): void
2626
addMethodPathListener(method: string, path: string, callback: Function): Function
27-
addParamsPathListener(path: string, callback: Function, method?: string, autoRoute?: boolean): Function
27+
addParamsPathListener(path: string, callback: Function | Function[], method?: string, autoRoute?: boolean): Function
2828
addRegPathListener(path: string, callback: Function): Function
2929
setRouteRegExp(path: string): RegExp
3030
routeCallback(routeData: object, body: string, request: zetaret.node.Input, response: zetaret.node.Output): void

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protoss-nodejs-basic-types",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"author": "Zeta Ret",
55
"license": "MIT"
66
}

0 commit comments

Comments
 (0)