@zama-fhe/relayer-sdk 0.4.1 → 0.4.3
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/LICENSE +21 -21
- package/bundle/relayer-sdk-js.js +8 -5
- package/bundle/relayer-sdk-js.umd.cjs +2 -2
- package/lib/internal.js +12 -4
- package/lib/node.cjs +12 -4
- package/lib/node.d.ts +5 -1
- package/lib/node.js +12 -4
- package/lib/web.d.ts +5 -1
- package/lib/web.js +12 -4
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
BSD 3-Clause License
|
|
1
|
+
BSD 3-Clause Clear License
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © 2025 ZAMA.
|
|
4
|
+
All rights reserved.
|
|
4
5
|
|
|
5
|
-
Redistribution and use in source and binary forms, with or without
|
|
6
|
-
|
|
6
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
7
|
+
are permitted provided that the following conditions are met:
|
|
7
8
|
|
|
8
9
|
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
-
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
10
11
|
|
|
11
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this
|
|
13
|
+
list of conditions and the following disclaimer in the documentation and/or other
|
|
14
|
+
materials provided with the distribution.
|
|
14
15
|
|
|
15
|
-
3. Neither the name of
|
|
16
|
-
|
|
17
|
-
this software without specific prior written permission.
|
|
16
|
+
3. Neither the name of ZAMA nor the names of its contributors may be used to endorse
|
|
17
|
+
or promote products derived from this software without specific prior written permission.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
IMPLIED WARRANTIES
|
|
22
|
-
|
|
23
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
24
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
25
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE ZAMA AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
|
21
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
22
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
23
|
+
ZAMA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
24
|
+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
25
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
26
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
27
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
28
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/bundle/relayer-sdk-js.js
CHANGED
|
@@ -35461,7 +35461,7 @@ async function Z1(i) {
|
|
|
35461
35461
|
const { instance: e, module: r } = await um(await i, t);
|
|
35462
35462
|
return wm(e, r);
|
|
35463
35463
|
}
|
|
35464
|
-
const eo = "0.4.
|
|
35464
|
+
const eo = "0.4.2", Vo = "@zama-fhe/relayer-sdk";
|
|
35465
35465
|
class st extends Error {
|
|
35466
35466
|
name = "RelayerErrorBase";
|
|
35467
35467
|
_details;
|
|
@@ -39322,7 +39322,7 @@ class Sp extends LA {
|
|
|
39322
39322
|
}
|
|
39323
39323
|
}
|
|
39324
39324
|
function HA(i, t) {
|
|
39325
|
-
if (L(i, "label", t), !(i.label === "malformed_json" || i.label === "request_error" || i.label === "not_ready_for_decryption"))
|
|
39325
|
+
if (L(i, "label", t), !(i.label === "malformed_json" || i.label === "request_error" || i.label === "not_ready_for_decryption" || i.label === "not_allowed_on_host_acl"))
|
|
39326
39326
|
throw new ct({
|
|
39327
39327
|
objName: t,
|
|
39328
39328
|
property: "label",
|
|
@@ -39330,7 +39330,8 @@ function HA(i, t) {
|
|
|
39330
39330
|
expectedValue: [
|
|
39331
39331
|
"malformed_json",
|
|
39332
39332
|
"request_error",
|
|
39333
|
-
"not_ready_for_decryption"
|
|
39333
|
+
"not_ready_for_decryption",
|
|
39334
|
+
"not_allowed_on_host_acl"
|
|
39334
39335
|
],
|
|
39335
39336
|
type: typeof i.label,
|
|
39336
39337
|
// === "string"
|
|
@@ -39384,7 +39385,7 @@ function ca(i, t) {
|
|
|
39384
39385
|
L(i, "status", t, "failed"), ti(i, "error", t), $R(i.error, `${t}.error`);
|
|
39385
39386
|
}
|
|
39386
39387
|
function $R(i, t) {
|
|
39387
|
-
if (L(i, "label", t), i.label === "malformed_json" || i.label === "request_error" || i.label === "not_ready_for_decryption")
|
|
39388
|
+
if (L(i, "label", t), i.label === "malformed_json" || i.label === "request_error" || i.label === "not_ready_for_decryption" || i.label === "not_allowed_on_host_acl")
|
|
39388
39389
|
HA(i, t);
|
|
39389
39390
|
else if (i.label === "missing_fields" || i.label === "validation_failed")
|
|
39390
39391
|
JA(i, t);
|
|
@@ -39405,6 +39406,7 @@ function $R(i, t) {
|
|
|
39405
39406
|
"malformed_json",
|
|
39406
39407
|
"request_error",
|
|
39407
39408
|
"not_ready_for_decryption",
|
|
39409
|
+
"not_allowed_on_host_acl",
|
|
39408
39410
|
"missing_fields",
|
|
39409
39411
|
"validation_failed",
|
|
39410
39412
|
"rate_limited",
|
|
@@ -39422,7 +39424,7 @@ function $R(i, t) {
|
|
|
39422
39424
|
});
|
|
39423
39425
|
}
|
|
39424
39426
|
function Dw(i, t) {
|
|
39425
|
-
if (ca(i, t), i.error.label === "malformed_json" || i.error.label === "request_error" || i.error.label === "not_ready_for_decryption")
|
|
39427
|
+
if (ca(i, t), i.error.label === "malformed_json" || i.error.label === "request_error" || i.error.label === "not_ready_for_decryption" || i.error.label === "not_allowed_on_host_acl")
|
|
39426
39428
|
HA(i.error, `${t}.error`);
|
|
39427
39429
|
else if (i.error.label === "missing_fields" || i.error.label === "validation_failed")
|
|
39428
39430
|
JA(i.error, `${t}.error`);
|
|
@@ -39435,6 +39437,7 @@ function Dw(i, t) {
|
|
|
39435
39437
|
"malformed_json",
|
|
39436
39438
|
"request_error",
|
|
39437
39439
|
"not_ready_for_decryption",
|
|
39440
|
+
"not_allowed_on_host_acl",
|
|
39438
39441
|
"missing_fields",
|
|
39439
39442
|
"validation_failed"
|
|
39440
39443
|
],
|