@floegence/floe-webapp-protocol 0.40.17 → 0.40.19

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.
Files changed (2) hide show
  1. package/dist/index3.js +22 -22
  2. package/package.json +2 -2
package/dist/index3.js CHANGED
@@ -12,43 +12,43 @@ class p extends Error {
12
12
  }
13
13
  }
14
14
  function y(c) {
15
- const o = async (r, e) => {
15
+ const o = async (t, e) => {
16
16
  const n = c.rpcTransport();
17
17
  if (!n) throw new d();
18
- let t;
18
+ let r;
19
19
  try {
20
- t = await n.call(r, e, (s) => s);
20
+ r = await n.call(t, e, (s) => s);
21
21
  } catch (s) {
22
- throw new p({ typeId: r, code: -1, message: "RPC transport error", cause: s });
22
+ throw new p({ typeId: t, code: -1, message: "RPC transport error", cause: s });
23
23
  }
24
- if (!t.ok)
24
+ if (!r.ok)
25
25
  throw new p({
26
- typeId: r,
27
- code: t.error.code,
28
- message: t.error.message ?? `RPC error: ${t.error.code}`,
29
- cause: t.error
26
+ typeId: t,
27
+ code: r.error.code,
28
+ message: r.error.message ?? `RPC error: ${r.error.code}`,
29
+ cause: r.error
30
30
  });
31
- return t.payload;
32
- }, a = async (r, e, n) => {
33
- const t = c.rpcTransport();
34
- if (!t) {
31
+ return r.payload;
32
+ }, a = async (t, e, n) => {
33
+ const r = c.rpcTransport();
34
+ if (!r) {
35
35
  if (n.detached === "ignore") return;
36
36
  throw new d();
37
37
  }
38
38
  try {
39
- await t.notify(r, e);
39
+ await r.notify(t, e);
40
40
  } catch (s) {
41
- throw new p({ typeId: r, code: -1, message: "RPC notify transport error", cause: s });
41
+ throw new p({ typeId: t, code: -1, message: "RPC notify transport error", cause: s });
42
42
  }
43
43
  };
44
- return { call: o, notify: async (r, e) => {
45
- await a(r, e, { detached: "throw" });
46
- }, notifyBestEffort: async (r, e) => {
47
- await a(r, e, { detached: "ignore" });
48
- }, onNotify: (r, e) => {
44
+ return { call: o, notify: async (t, e) => {
45
+ await a(t, e, { detached: "throw" });
46
+ }, notifyBestEffort: async (t, e) => {
47
+ await a(t, e, { detached: "ignore" });
48
+ }, onNotify: (t, e) => {
49
49
  const n = c.rpcTransport();
50
- return n ? n.onNotify(r, (t) => {
51
- e(t);
50
+ return n ? n.onNotify(t, (r) => r, (r) => {
51
+ e(r);
52
52
  }) : () => {
53
53
  };
54
54
  } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-protocol",
3
- "version": "0.40.17",
3
+ "version": "0.40.19",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "solid-js": "^1.8.0"
34
34
  },
35
35
  "dependencies": {
36
- "@floegence/flowersec-core": "2.3.9"
36
+ "@floegence/flowersec-core": "2.4.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "solid-js": "^1.9.11",