@startier/ohrid-local-driver
v1.1.0
Published
A driver for @startier/ohrid that executes methods locally
Readme
@startier/ohrid-local-driver
A driver for @startier/ohrid that executes methods locally.
[!WARNING]
This driver doesn't have any RPC or transport protocols associated with it. It should only be used for testing.
Usage
Install the package using npm (or anything compatible):
npm install @startier/ohrid-local-driverAdd the driver to services.json.
Global
{
"driver": "@startier/ohrid-local-driver"
}Service-specific
{
"services": {
"example": {
"driver": "@startier/ohrid-local-driver",
"settings": {}
}
}
}Settings
{
executeRemoteCalls?: boolean
}executeRemoteCalls
When set to true remote calls are executed as if they were local instead of throwing an exception.
