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.
@@ -8,7 +8,7 @@ import {
8
8
  evaluate,
9
9
  generateDecisionProof,
10
10
  resolveRule
11
- } from "./chunk-ANG3SJGI.js";
11
+ } from "./chunk-TIK4HPDU.js";
12
12
  import {
13
13
  __export
14
14
  } from "./chunk-R5U7XKVJ.js";
@@ -2,7 +2,7 @@ import {
2
2
  evaluate,
3
3
  generateDecisionProof,
4
4
  resolveRule
5
- } from "./chunk-ANG3SJGI.js";
5
+ } from "./chunk-TIK4HPDU.js";
6
6
  import {
7
7
  __export
8
8
  } from "./chunk-R5U7XKVJ.js";
@@ -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
- let wasmForEngine;
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-GB3FSF7K.js";
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-ANG3SJGI.js";
7
+ import "../../chunk-TIK4HPDU.js";
8
8
  import "../../chunk-5ZEKI5Y2.js";
9
9
  import "../../chunk-R5U7XKVJ.js";
10
10
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPayID
3
- } from "../../chunk-YUAYDVGX.js";
4
- import "../../chunk-ANG3SJGI.js";
3
+ } from "../../chunk-K2FSXHVA.js";
4
+ import "../../chunk-TIK4HPDU.js";
5
5
  import "../../chunk-5ZEKI5Y2.js";
6
6
  import "../../chunk-R5U7XKVJ.js";
7
7
  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-GB3FSF7K.js";
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-YUAYDVGX.js";
25
+ } from "./chunk-K2FSXHVA.js";
26
26
  import {
27
27
  evaluate,
28
28
  generateDecisionProof,
29
29
  resolveRule
30
- } from "./chunk-ANG3SJGI.js";
30
+ } from "./chunk-TIK4HPDU.js";
31
31
  import "./chunk-5ZEKI5Y2.js";
32
32
  import {
33
33
  __export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payid",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",