Releases: AppXpress/axus
Releases · AppXpress/axus
0.1.8
v0.1.7
Support for RunAsScope methods:
- getTargetAsLoaded()
- getStateAsLoaded()
Initialize runAsScope when defining your context definition (examples):
let myRunAsScope =
{
'stateAsLoaded': 'Pending',
'targetAsLoaded': require('./resources/myTargetAsLoaded.json')
}
let ctx1 = axus
.requireLocal('../../../myScriptDir', undefined, {}, '3.1.0', null, myRunAsScope)
.seed(require('./resources/mySeededResources.json'));
Alternatively:
let ctx2 = axus
.require('../../../myScriptDir')
.setRunAsScope(myRunAsScope)
.useLocal(require('./resources/mySeededResources.json'));
Calls to Providers.getPersistenceProvider().getTargetAsLoaded() or .getStateAsLoaded() will return these properties respectively.