payid 0.4.6 → 0.4.7
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/dist/{chunk-GB3FSF7K.js → chunk-6WJP7PTQ.js} +1 -1
- package/dist/{chunk-YUAYDVGX.js → chunk-K2FSXHVA.js} +1 -1
- package/dist/{chunk-ANG3SJGI.js → chunk-TIK4HPDU.js} +2 -18
- package/dist/core/client/index.js +2 -2
- package/dist/core/server/index.js +2 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -146,25 +146,9 @@ async function evaluate(context, ruleConfig, options, wasmBinary) {
|
|
|
146
146
|
}
|
|
147
147
|
let result;
|
|
148
148
|
try {
|
|
149
|
-
const preparedContext = options?.trustedIssuers ? preprocessContextV2(
|
|
150
|
-
context,
|
|
151
|
-
ruleConfig,
|
|
152
|
-
options.trustedIssuers
|
|
153
|
-
) : context;
|
|
149
|
+
const preparedContext = options?.trustedIssuers ? preprocessContextV2(context, ruleConfig, options.trustedIssuers) : context;
|
|
154
150
|
const normalized = normalizeContext(preparedContext);
|
|
155
|
-
|
|
156
|
-
if (wasmBinary == null) {
|
|
157
|
-
wasmForEngine = void 0;
|
|
158
|
-
} else if (typeof Buffer !== "undefined") {
|
|
159
|
-
wasmForEngine = Buffer.isBuffer(wasmBinary) ? wasmBinary : Buffer.from(wasmBinary);
|
|
160
|
-
} else {
|
|
161
|
-
wasmForEngine = wasmBinary;
|
|
162
|
-
}
|
|
163
|
-
result = await executeRule(
|
|
164
|
-
normalized,
|
|
165
|
-
ruleConfig,
|
|
166
|
-
wasmForEngine
|
|
167
|
-
);
|
|
151
|
+
result = await executeRule(normalized, ruleConfig, wasmBinary);
|
|
168
152
|
} catch (err) {
|
|
169
153
|
return {
|
|
170
154
|
decision: "REJECT",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPayID
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6WJP7PTQ.js";
|
|
4
4
|
import "../../chunk-GG34PNTF.js";
|
|
5
5
|
import "../../chunk-MXKZJKXE.js";
|
|
6
6
|
import "../../chunk-6VPSJFO4.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-TIK4HPDU.js";
|
|
8
8
|
import "../../chunk-5ZEKI5Y2.js";
|
|
9
9
|
import "../../chunk-R5U7XKVJ.js";
|
|
10
10
|
export {
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-Y75PSD7U.js";
|
|
14
14
|
import {
|
|
15
15
|
client_exports
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6WJP7PTQ.js";
|
|
17
17
|
import "./chunk-GG34PNTF.js";
|
|
18
18
|
import "./chunk-MXKZJKXE.js";
|
|
19
19
|
import "./chunk-6VPSJFO4.js";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
buildPayETHCallData,
|
|
23
23
|
buildUserOperation,
|
|
24
24
|
server_exports
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K2FSXHVA.js";
|
|
26
26
|
import {
|
|
27
27
|
evaluate,
|
|
28
28
|
generateDecisionProof,
|
|
29
29
|
resolveRule
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TIK4HPDU.js";
|
|
31
31
|
import "./chunk-5ZEKI5Y2.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|