Skip to content

Commit

Permalink
Refactor oafp.source.js.hbs to pass additional parameters to oafplib
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Mar 12, 2024
1 parent 0d59ccc commit 525ffe5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/oafp.source.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ if (isArray(params.libs)) {
try {
var _req = require("oafp_" + lib + ".js")
if (isDef(_req.oafplib)) {
var res = _req.oafplib(clone(params), _$o, $o, this)
var res = _req.oafplib(clone(params), _$o, $o, {
_runCmd2Bytes: _runCmd2Bytes,
_fromJSSLON: _fromJSSLON,
_msg: _msg,
_showTmpMsg: _showTmpMsg,
_clearTmpMsg: _clearTmpMsg,
_exit: _exit
})
if (isMap(res)) {
if (isArray(res.fileExtensions)) res.fileExtensions.forEach(r => _addSrcFileExtensions(r.ext, r.type))
if (isArray(res.fileExtensionsNoMem)) res.fileExtensionsNoMem.forEach(r => _addSrcFileExtensionsNoMem(r.ext))
Expand Down

0 comments on commit 525ffe5

Please sign in to comment.