Skip to content

Commit

Permalink
Update executable format handling in injectBuffer and bump version to…
Browse files Browse the repository at this point in the history
… 2.1.3
  • Loading branch information
xicilion committed Jan 18, 2025
1 parent 2a2d89c commit e6c8443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function injectBuffer(executable, resourceName, resourceData, options) {
throw new TypeError("resourceData must be a buffer");
}

const executableFormat = inject.get_executable_format(executable);
const executableFormat = options?.format || inject.get_executable_format(executable);

if (executableFormat === inject.ExecutableFormat.kUnknown) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fib-inject",
"version": "2.1.2",
"version": "2.1.3",
"description": "fibjs binding for inject representation and classification.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e6c8443

Please sign in to comment.