fix(core): update
This commit is contained in:
		
							
								
								
									
										5427
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										5427
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							@@ -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": [
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user