Skip to content

Commit

Permalink
refactor: Update oafp.source.js.hbs to handle data param properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Jun 13, 2024
1 parent 50ccd91 commit bfc97e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/oafp.source.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ if (isUnDef(params.file) && isUnDef(params.cmd)) {
params.file = _found
}

// Verify the data param
if ("[object Object]" == Object.prototype.toString.call(params.data)) {
params.data = stringify(params.data, __, "")
}

// --- File extensions list
const _fileExtensions = new Map({{{srcFileExtensions}}})
// --- add extra _fileExtensions here ---
Expand Down

0 comments on commit bfc97e1

Please sign in to comment.