@beam3_dev/api_module 0.0.203 → 0.0.205

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/wb3Api.js CHANGED
@@ -101,37 +101,38 @@ async function Se(e, t = V) {
101
101
  })();
102
102
  }
103
103
  function X(e, t, s) {
104
- const { myArray: n, chunk: i, fn_to_call: r } = e, o = [];
105
- for (let a = 0; a < n.length; a += i) {
106
- const c = n.slice(a, a + i);
107
- o.push(c);
104
+ const { credentials: n, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
105
+ for (let c = 0; c < i.length; c += r) {
106
+ const d = i.slice(c, c + r);
107
+ a.push(d);
108
108
  }
109
109
  W(
110
- { chunks: o, initLoop: 0, fn: r },
111
- (a) => {
112
- t && t(a);
110
+ { credentials: n, chunks: a, initLoop: 0, fn: o },
111
+ (c) => {
112
+ t && t(c);
113
113
  },
114
- (a) => {
115
- s && s(a);
114
+ (c) => {
115
+ s && s(c);
116
116
  }
117
117
  );
118
118
  }
119
119
  function W(e, t, s) {
120
- const { chunks: n, initLoop: i, fn: r } = e, o = (a) => {
121
- r(
122
- n[a],
120
+ const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
+ o(
122
+ n,
123
+ i[c],
123
124
  () => {
124
- a++, a < n.length && o(a);
125
+ c++, c < i.length && a(c);
125
126
  },
126
- (c) => {
127
- t && t(c);
127
+ (d) => {
128
+ t && t(d);
128
129
  },
129
- (c) => {
130
- s && s(c);
130
+ (d) => {
131
+ s && s(d);
131
132
  }
132
133
  );
133
134
  };
134
- o(i);
135
+ a(r);
135
136
  }
136
137
  async function _e(e, t, s = !0) {
137
138
  const n = e.events.findIndex((i) => i.uuid === t.uuid);
@@ -904,6 +905,7 @@ async function J(e, t = void 0, s = void 0) {
904
905
  }
905
906
  async function te(e, t, s = void 0, n = void 0) {
906
907
  typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
908
+ credentials: e,
907
909
  myArray: t,
908
910
  chunk: 80,
909
911
  fn_to_call: ne