fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-23 23:30:54 +00:00
parent 4cc149069e
commit aaaa8b3ee4
3 changed files with 1670 additions and 1268 deletions

2915
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,18 +12,18 @@
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tstest": "^1.0.43",
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^3.2.9",
"@types/node": "^14.0.26",
"tslint": "^6.1.2",
"@types/node": "^14.11.2",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@apiglobal/sdk": "^1.0.9",
"@apiglobal/typedrequest": "^1.0.40",
"@apiglobal/sdk": "^1.0.13",
"@apiglobal/typedrequest": "^1.0.43",
"@apiglobal/typedrequest-interfaces": "^1.0.15",
"@pushrocks/smartexpress": "^3.0.73",
"@pushrocks/smartexpress": "^3.0.76",
"@pushrocks/smartobject": "^1.0.4"
},
"files": [

View File

@ -6,8 +6,13 @@ export {
};
let testServer: AgTestServer;
export const createTestServer = async (handlerArg: plugins.agSdk.AAgHandler<any>) => {
testServer = new AgTestServer(handlerArg);
export const createTestServer = async (handlerArg: { new(envHandler: plugins.agSdk.AgEnvironment): plugins.agSdk.AAgHandler<any> }) => {
class AgEnvironement extends plugins.agSdk.AgEnvironment {
public async getEnvVar(nameArg: string) {
return '';
}
}
testServer = new AgTestServer(new handlerArg(new AgEnvironement()));
await testServer.start();
return testServer;
};