@openwallet-foundation/askar-react-native 0.3.2-alpha-20250306091539 → 0.3.2-alpha-20250318162328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cpp/askar.cpp +8 -6
- package/package.json +2 -2
package/cpp/askar.cpp
CHANGED
|
@@ -302,7 +302,7 @@ jsi::Value sessionClose(jsi::Runtime &rt, jsi::Object options) {
|
|
|
302
302
|
|
|
303
303
|
jsi::Value sessionCount(jsi::Runtime &rt, jsi::Object options) {
|
|
304
304
|
auto sessionHandle = jsiToValue<int64_t>(rt, options, "sessionHandle");
|
|
305
|
-
auto category = jsiToValue<std::string>(rt, options, "category");
|
|
305
|
+
auto category = jsiToValue<std::string>(rt, options, "category", true);
|
|
306
306
|
auto tagFilter = jsiToValue<std::string>(rt, options, "tagFilter", true);
|
|
307
307
|
|
|
308
308
|
jsi::Function cb = options.getPropertyAsFunction(rt, "cb");
|
|
@@ -310,7 +310,8 @@ jsi::Value sessionCount(jsi::Runtime &rt, jsi::Object options) {
|
|
|
310
310
|
state->rt = &rt;
|
|
311
311
|
|
|
312
312
|
ErrorCode code =
|
|
313
|
-
askar_session_count(sessionHandle,
|
|
313
|
+
askar_session_count(sessionHandle,
|
|
314
|
+
category.length() ? category.c_str() : nullptr,
|
|
314
315
|
tagFilter.length() ? tagFilter.c_str() : nullptr,
|
|
315
316
|
callbackWithResponse, CallbackId(state));
|
|
316
317
|
|
|
@@ -336,7 +337,7 @@ jsi::Value sessionFetch(jsi::Runtime &rt, jsi::Object options) {
|
|
|
336
337
|
|
|
337
338
|
jsi::Value sessionFetchAll(jsi::Runtime &rt, jsi::Object options) {
|
|
338
339
|
auto sessionHandle = jsiToValue<int64_t>(rt, options, "sessionHandle");
|
|
339
|
-
auto category = jsiToValue<std::string>(rt, options, "category");
|
|
340
|
+
auto category = jsiToValue<std::string>(rt, options, "category", true);
|
|
340
341
|
auto forUpdate = jsiToValue<int8_t>(rt, options, "forUpdate");
|
|
341
342
|
|
|
342
343
|
auto tagFilter = jsiToValue<std::string>(rt, options, "tagFilter", true);
|
|
@@ -351,7 +352,7 @@ jsi::Value sessionFetchAll(jsi::Runtime &rt, jsi::Object options) {
|
|
|
351
352
|
|
|
352
353
|
ErrorCode code = askar_session_fetch_all(
|
|
353
354
|
sessionHandle,
|
|
354
|
-
category.c_str(),
|
|
355
|
+
category.length() ? category.c_str() : nullptr,
|
|
355
356
|
tagFilter.length() ? tagFilter.c_str() : nullptr,
|
|
356
357
|
limit,
|
|
357
358
|
orderBy.length() ? orderBy.c_str() : nullptr,
|
|
@@ -426,7 +427,7 @@ jsi::Value sessionInsertKey(jsi::Runtime &rt, jsi::Object options) {
|
|
|
426
427
|
|
|
427
428
|
jsi::Value sessionRemoveAll(jsi::Runtime &rt, jsi::Object options) {
|
|
428
429
|
auto sessionHandle = jsiToValue<int64_t>(rt, options, "sessionHandle");
|
|
429
|
-
auto category = jsiToValue<std::string>(rt, options, "category");
|
|
430
|
+
auto category = jsiToValue<std::string>(rt, options, "category", true);
|
|
430
431
|
|
|
431
432
|
auto tagFilter = jsiToValue<std::string>(rt, options, "tagFilter", true);
|
|
432
433
|
|
|
@@ -435,7 +436,8 @@ jsi::Value sessionRemoveAll(jsi::Runtime &rt, jsi::Object options) {
|
|
|
435
436
|
state->rt = &rt;
|
|
436
437
|
|
|
437
438
|
ErrorCode code =
|
|
438
|
-
askar_session_remove_all(sessionHandle,
|
|
439
|
+
askar_session_remove_all(sessionHandle,
|
|
440
|
+
category.length() ? category.c_str() : nullptr,
|
|
439
441
|
tagFilter.length() ? tagFilter.c_str() : nullptr,
|
|
440
442
|
callbackWithResponse, CallbackId(state));
|
|
441
443
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openwallet-foundation/askar-react-native",
|
|
3
|
-
"version": "0.3.2-alpha-
|
|
3
|
+
"version": "0.3.2-alpha-20250318162328",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "React Native wrapper for Askar",
|
|
6
6
|
"main": "build/index",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@mapbox/node-pre-gyp": "^1.0.11",
|
|
33
|
-
"@openwallet-foundation/askar-shared": "0.3.2-alpha-
|
|
33
|
+
"@openwallet-foundation/askar-shared": "0.3.2-alpha-20250318162328"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"react": "18.2.0",
|