Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05194609fe | |||
| eb0ec04199 | |||
| ffd5eb2e52 | |||
| c432079a70 |
880
package-lock.json
generated
880
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@apiglobal/test-sdk",
|
"name": "@apiglobal/test-sdk",
|
||||||
"version": "1.0.21",
|
"version": "1.0.23",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an sdk for testing ag handlers",
|
"description": "an sdk for testing ag handlers",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
"@apiglobal/sdk": "^1.0.13",
|
"@apiglobal/sdk": "^1.0.13",
|
||||||
"@apiglobal/typedrequest": "^1.0.43",
|
"@apiglobal/typedrequest": "^1.0.43",
|
||||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||||
|
"@pushrocks/qenv": "^4.0.10",
|
||||||
"@pushrocks/smartexpress": "^3.0.76",
|
"@pushrocks/smartexpress": "^3.0.76",
|
||||||
"@pushrocks/smartobject": "^1.0.4"
|
"@pushrocks/smartobject": "^1.0.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ export {
|
|||||||
let testServer: AgTestServer;
|
let testServer: AgTestServer;
|
||||||
export const createTestServer = async (handlerArg: { new(envHandler: plugins.agSdk.AgEnvironment): plugins.agSdk.AAgHandler<any> }) => {
|
export const createTestServer = async (handlerArg: { new(envHandler: plugins.agSdk.AgEnvironment): plugins.agSdk.AAgHandler<any> }) => {
|
||||||
class AgEnvironement extends plugins.agSdk.AgEnvironment {
|
class AgEnvironement extends plugins.agSdk.AgEnvironment {
|
||||||
|
public qenv = new plugins.qenv.Qenv('./', './.nogit');
|
||||||
public async getEnvVar(nameArg: string) {
|
public async getEnvVar(nameArg: string) {
|
||||||
return '';
|
return this.qenv.getEnvVarOnDemand(nameArg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
testServer = new AgTestServer(new handlerArg(new AgEnvironement()));
|
testServer = new AgTestServer(new handlerArg(new AgEnvironement()));
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
|
|||||||
export { agSdk, typedrequest, typedrequestInterfaces };
|
export { agSdk, typedrequest, typedrequestInterfaces };
|
||||||
|
|
||||||
// pushrocks scope
|
// pushrocks scope
|
||||||
|
import * as qenv from '@pushrocks/qenv';
|
||||||
import * as smartexpress from '@pushrocks/smartexpress';
|
import * as smartexpress from '@pushrocks/smartexpress';
|
||||||
import * as smartobject from '@pushrocks/smartobject';
|
import * as smartobject from '@pushrocks/smartobject';
|
||||||
|
|
||||||
export { smartexpress, smartobject };
|
export { qenv, smartexpress, smartobject };
|
||||||
|
|||||||
Reference in New Issue
Block a user