From 617cfd9bf6b6b19ba417a1c1212cf2ffd7f17fd6 Mon Sep 17 00:00:00 2001 From: ehsan shariati <ehsan6sha@gmail.com> Date: Thu, 4 Apr 2024 20:00:21 -0400 Subject: [PATCH] Added findBestAndTargetInLogs --- ios/Fula.swift | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Fula.swift b/ios/Fula.swift index 37946e2..fcc2ccc 100644 --- a/ios/Fula.swift +++ b/ios/Fula.swift @@ -1523,7 +1523,7 @@ class FulaModule: NSObject { func findBestAndTargetInLogs(containerName: String, tailCount: String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) { do { // Since fetchContainerLogs expects a String for tailCount, pass it directly - let result = try self.fula!.findBestAndTargetInLogs(containerName, tailCount: tailCount) + let result = try self.fula!.findBestAndTarget(inLogs: containerName, tailCount: tailCount) guard let resultString = result.toUTF8String() else { // Handle the case where result.toUTF8String() returns nil let error = NSError(domain: "FULAErrorDomain", diff --git a/package.json b/package.json index 5022e07..6890753 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@functionland/react-native-fula", - "version": "1.54.16", + "version": "1.54.17", "description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs", "main": "lib/commonjs/index", "module": "lib/module/index",