@rabbitholegg/questdk
Advanced tools
Comparing version 1.0.1-alpha.9 to 1.0.1-alpha.10
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '1.0.1-alpha.8'; | ||
exports.version = '1.0.1-alpha.10'; | ||
//# sourceMappingURL=version.js.map |
@@ -114,9 +114,14 @@ "use strict"; | ||
const operator = operators[key]; | ||
if (!operator(context, filters[key])) | ||
if (!operator(context, filters[key])) { | ||
return false; | ||
} | ||
continue; | ||
} | ||
if (typeof filters[key] === 'object') { | ||
if (!apply(context[key], filters[key])) | ||
if (!(key in context)) { | ||
return false; | ||
} | ||
if (!apply(context[key], filters[key])) { | ||
return false; | ||
} | ||
} | ||
@@ -132,3 +137,4 @@ else if ((0, viem_1.isAddress)(context[key])) { | ||
typeof context[key] === 'number') { | ||
if (BigInt(context[key]) !== BigInt(filters[key])) { | ||
if (context[key] === undefined || | ||
BigInt(context[key]) !== BigInt(filters[key])) { | ||
return false; | ||
@@ -135,0 +141,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export const version = '1.0.1-alpha.8'; | ||
export const version = '1.0.1-alpha.10'; | ||
//# sourceMappingURL=version.js.map |
@@ -180,9 +180,14 @@ import { decodeAbiParameters, decodeFunctionData, getAbiItem, isAddress, parseAbiParameters, slice, } from 'viem'; | ||
const operator = operators[key]; | ||
if (!operator(context, filters[key])) | ||
if (!operator(context, filters[key])) { | ||
return false; | ||
} | ||
continue; | ||
} | ||
if (typeof filters[key] === 'object') { | ||
if (!apply(context[key], filters[key])) | ||
if (!(key in context)) { | ||
return false; | ||
} | ||
if (!apply(context[key], filters[key])) { | ||
return false; | ||
} | ||
} | ||
@@ -198,3 +203,4 @@ else if (isAddress(context[key])) { | ||
typeof context[key] === 'number') { | ||
if (BigInt(context[key]) !== BigInt(filters[key])) { | ||
if (context[key] === undefined || | ||
BigInt(context[key]) !== BigInt(filters[key])) { | ||
return false; | ||
@@ -201,0 +207,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.0.1-alpha.8"; | ||
export declare const version = "1.0.1-alpha.10"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "1.0.1-alpha.9", | ||
"version": "1.0.1-alpha.10", | ||
"files": [ | ||
@@ -20,0 +20,0 @@ "dist", |
@@ -1,1 +0,1 @@ | ||
export const version = '1.0.1-alpha.8' | ||
export const version = '1.0.1-alpha.10' |
@@ -240,3 +240,5 @@ import { | ||
const operator = operators[key as OperatorKey] | ||
if (!operator(context, filters[key])) return false | ||
if (!operator(context, filters[key])) { | ||
return false | ||
} | ||
continue | ||
@@ -246,3 +248,8 @@ } | ||
if (typeof filters[key] === 'object') { | ||
if (!apply(context[key], filters[key])) return false | ||
if (!(key in context)) { | ||
return false | ||
} | ||
if (!apply(context[key], filters[key])) { | ||
return false | ||
} | ||
} else if (isAddress(context[key])) { | ||
@@ -258,3 +265,6 @@ if (context[key].toLowerCase() !== filters[key].toLowerCase()) { | ||
) { | ||
if (BigInt(context[key]) !== BigInt(filters[key])) { | ||
if ( | ||
context[key] === undefined || | ||
BigInt(context[key]) !== BigInt(filters[key]) | ||
) { | ||
return false | ||
@@ -266,4 +276,3 @@ } | ||
} | ||
return true | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
375477
9977