mirror of https://gitee.com/bigwinds/arangodb
custom toJSON for FoxxContext
this fixes #1898 returns only documented values and hides internal values.
This commit is contained in:
parent
ecf6885286
commit
1eb49ee6a1
|
@ -142,4 +142,19 @@ module.exports = class FoxxContext {
|
|||
get dependencies() {
|
||||
return this.service.dependencies;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return {
|
||||
argv: this.argv,
|
||||
basePath: this.basePath,
|
||||
baseUrl: this.baseUrl,
|
||||
collectionPrefix: this.collectionPrefix,
|
||||
configuration: this.configuration,
|
||||
dependencies: this.dependencies,
|
||||
isDevelopment: this.isDevelopment,
|
||||
isProduction: this.isProduction,
|
||||
manifest: this.manifest,
|
||||
mount: this.mount
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue