commit 85929fa5e9093631b61fd7f7405cd701ea9d922d
parent b0c95ee1c700e5c33e496609ea72ad9ad63eb86b
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 1 Oct 2023 18:30:02 +0200
Update ts defintions
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.d.ts b/index.d.ts
@@ -116,4 +116,5 @@ export class YaraScanner {
* @returns The results of yara scan_mem.
*/
scanProcess(pid: number): Array<YaraRuleResult>
+ defineVariable(identifier: string, stringValue?: string | undefined | null, integerValue?: number | undefined | null, floatValue?: number | undefined | null, boolValue?: boolean | undefined | null): void
}
diff --git a/index.js b/index.js
@@ -116,7 +116,7 @@ switch (platform) {
nativeBinding = require('@node_yara_rs/node-yara-rs-darwin-universal')
}
break
- } catch { }
+ } catch {}
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'node-yara-rs.darwin-x64.node'))