@speckle/objectsender 2.25.9 → 2.26.1
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/objectsender.cjs +1 -1
- package/dist/objectsender.cjs.map +1 -1
- package/dist/objectsender.js +124 -125
- package/dist/objectsender.js.map +1 -1
- package/package.json +2 -2
package/dist/objectsender.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var yt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Y = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var gt = (t, e, r) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
-
var l = (t, e, r) => gt(t, typeof e != "symbol" ? e + "" : e, r), H = (t, e, r) => e.has(t) ||
|
|
7
|
-
var c = (t, e, r) => (H(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => e.has(t) ?
|
|
6
|
+
var l = (t, e, r) => gt(t, typeof e != "symbol" ? e + "" : e, r), H = (t, e, r) => e.has(t) || Y("Cannot " + r);
|
|
7
|
+
var c = (t, e, r) => (H(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => e.has(t) ? Y("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, n) => (H(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), h = (t, e, r) => (H(t, e, "access private method"), r);
|
|
8
8
|
import "reflect-metadata";
|
|
9
9
|
import { md5 as tt, TIME_MS as B, retry as _t, timeoutAt as bt } from "@speckle/shared";
|
|
10
10
|
var mt = typeof global == "object" && global && global.Object === Object && global, wt = typeof self == "object" && self && self.Object === Object && self, J = mt || wt || Function("return this")(), v = J.Symbol, st = Object.prototype, St = st.hasOwnProperty, Tt = st.toString, k = v ? v.toStringTag : void 0;
|
|
@@ -38,7 +38,7 @@ function Pt(t, e) {
|
|
|
38
38
|
a[r] = e(t[r], r, t);
|
|
39
39
|
return a;
|
|
40
40
|
}
|
|
41
|
-
var W = Array.isArray,
|
|
41
|
+
var W = Array.isArray, rt = v ? v.prototype : void 0, nt = rt ? rt.toString : void 0;
|
|
42
42
|
function ht(t) {
|
|
43
43
|
if (typeof t == "string")
|
|
44
44
|
return t;
|
|
@@ -47,18 +47,18 @@ function ht(t) {
|
|
|
47
47
|
if (V(t))
|
|
48
48
|
return nt ? nt.call(t) : "";
|
|
49
49
|
var e = t + "";
|
|
50
|
-
return e == "0" && 1 / t == -
|
|
50
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
51
51
|
}
|
|
52
52
|
function ut(t) {
|
|
53
53
|
var e = typeof t;
|
|
54
54
|
return t != null && (e == "object" || e == "function");
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var It = "[object AsyncFunction]", xt = "[object Function]", Et = "[object GeneratorFunction]", At = "[object Proxy]";
|
|
57
|
+
function Dt(t) {
|
|
58
58
|
if (!ut(t))
|
|
59
59
|
return !1;
|
|
60
60
|
var e = ot(t);
|
|
61
|
-
return e ==
|
|
61
|
+
return e == xt || e == Et || e == It || e == At;
|
|
62
62
|
}
|
|
63
63
|
var K = J["__core-js_shared__"], at = function() {
|
|
64
64
|
var t = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
@@ -67,11 +67,11 @@ var K = J["__core-js_shared__"], at = function() {
|
|
|
67
67
|
function Rt(t) {
|
|
68
68
|
return !!at && at in t;
|
|
69
69
|
}
|
|
70
|
-
var Mt = Function.prototype,
|
|
70
|
+
var Mt = Function.prototype, Ft = Mt.toString;
|
|
71
71
|
function Lt(t) {
|
|
72
72
|
if (t != null) {
|
|
73
73
|
try {
|
|
74
|
-
return
|
|
74
|
+
return Ft.call(t);
|
|
75
75
|
} catch {
|
|
76
76
|
}
|
|
77
77
|
try {
|
|
@@ -81,58 +81,58 @@ function Lt(t) {
|
|
|
81
81
|
}
|
|
82
82
|
return "";
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
"^" +
|
|
84
|
+
var Nt = /[\\^$.*+?()[\]{}|]/g, Ut = /^\[object .+?Constructor\]$/, Gt = Function.prototype, Ht = Object.prototype, Kt = Gt.toString, Bt = Ht.hasOwnProperty, qt = RegExp(
|
|
85
|
+
"^" + Kt.call(Bt).replace(Nt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
86
86
|
);
|
|
87
|
-
function
|
|
87
|
+
function Jt(t) {
|
|
88
88
|
if (!ut(t) || Rt(t))
|
|
89
89
|
return !1;
|
|
90
|
-
var e =
|
|
90
|
+
var e = Dt(t) ? qt : Ut;
|
|
91
91
|
return e.test(Lt(t));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Vt(t, e) {
|
|
94
94
|
return t == null ? void 0 : t[e];
|
|
95
95
|
}
|
|
96
96
|
function ft(t, e) {
|
|
97
|
-
var r =
|
|
98
|
-
return
|
|
97
|
+
var r = Vt(t, e);
|
|
98
|
+
return Jt(r) ? r : void 0;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Wt(t, e) {
|
|
101
101
|
return t === e || t !== t && e !== e;
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var Xt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Zt = /^\w*$/;
|
|
104
104
|
function Qt(t, e) {
|
|
105
105
|
if (W(t))
|
|
106
106
|
return !1;
|
|
107
107
|
var r = typeof t;
|
|
108
|
-
return r == "number" || r == "symbol" || r == "boolean" || t == null || V(t) ? !0 : Zt.test(t) || !
|
|
108
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || V(t) ? !0 : Zt.test(t) || !Xt.test(t) || e != null && t in Object(e);
|
|
109
109
|
}
|
|
110
110
|
var x = ft(Object, "create");
|
|
111
|
-
function
|
|
111
|
+
function Yt() {
|
|
112
112
|
this.__data__ = x ? x(null) : {}, this.size = 0;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function te(t) {
|
|
115
115
|
var e = this.has(t) && delete this.__data__[t];
|
|
116
116
|
return this.size -= e ? 1 : 0, e;
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
118
|
+
var ee = "__lodash_hash_undefined__", re = Object.prototype, ne = re.hasOwnProperty;
|
|
119
|
+
function ae(t) {
|
|
120
120
|
var e = this.__data__;
|
|
121
121
|
if (x) {
|
|
122
122
|
var r = e[t];
|
|
123
|
-
return r ===
|
|
123
|
+
return r === ee ? void 0 : r;
|
|
124
124
|
}
|
|
125
|
-
return
|
|
125
|
+
return ne.call(e, t) ? e[t] : void 0;
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
function
|
|
127
|
+
var ie = Object.prototype, se = ie.hasOwnProperty;
|
|
128
|
+
function oe(t) {
|
|
129
129
|
var e = this.__data__;
|
|
130
|
-
return x ? e[t] !== void 0 :
|
|
130
|
+
return x ? e[t] !== void 0 : se.call(e, t);
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var ce = "__lodash_hash_undefined__";
|
|
133
|
+
function he(t, e) {
|
|
134
134
|
var r = this.__data__;
|
|
135
|
-
return this.size += this.has(t) ? 0 : 1, r[t] = x && e === void 0 ?
|
|
135
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = x && e === void 0 ? ce : e, this;
|
|
136
136
|
}
|
|
137
137
|
function _(t) {
|
|
138
138
|
var e = -1, r = t == null ? 0 : t.length;
|
|
@@ -141,37 +141,37 @@ function _(t) {
|
|
|
141
141
|
this.set(n[0], n[1]);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
_.prototype.clear =
|
|
145
|
-
_.prototype.delete =
|
|
146
|
-
_.prototype.get =
|
|
147
|
-
_.prototype.has =
|
|
148
|
-
_.prototype.set =
|
|
149
|
-
function
|
|
144
|
+
_.prototype.clear = Yt;
|
|
145
|
+
_.prototype.delete = te;
|
|
146
|
+
_.prototype.get = ae;
|
|
147
|
+
_.prototype.has = oe;
|
|
148
|
+
_.prototype.set = he;
|
|
149
|
+
function ue() {
|
|
150
150
|
this.__data__ = [], this.size = 0;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function N(t, e) {
|
|
153
153
|
for (var r = t.length; r--; )
|
|
154
|
-
if (
|
|
154
|
+
if (Wt(t[r][0], e))
|
|
155
155
|
return r;
|
|
156
156
|
return -1;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
var e = this.__data__, r =
|
|
158
|
+
var fe = Array.prototype, le = fe.splice;
|
|
159
|
+
function de(t) {
|
|
160
|
+
var e = this.__data__, r = N(e, t);
|
|
161
161
|
if (r < 0)
|
|
162
162
|
return !1;
|
|
163
163
|
var n = e.length - 1;
|
|
164
|
-
return r == n ? e.pop() :
|
|
164
|
+
return r == n ? e.pop() : le.call(e, r, 1), --this.size, !0;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
var e = this.__data__, r =
|
|
166
|
+
function pe(t) {
|
|
167
|
+
var e = this.__data__, r = N(e, t);
|
|
168
168
|
return r < 0 ? void 0 : e[r][1];
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
170
|
+
function ye(t) {
|
|
171
|
+
return N(this.__data__, t) > -1;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
var r = this.__data__, n =
|
|
173
|
+
function ge(t, e) {
|
|
174
|
+
var r = this.__data__, n = N(r, t);
|
|
175
175
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
176
176
|
}
|
|
177
177
|
function C(t) {
|
|
@@ -181,38 +181,38 @@ function C(t) {
|
|
|
181
181
|
this.set(n[0], n[1]);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
C.prototype.clear =
|
|
185
|
-
C.prototype.delete =
|
|
186
|
-
C.prototype.get =
|
|
187
|
-
C.prototype.has =
|
|
188
|
-
C.prototype.set =
|
|
189
|
-
var
|
|
190
|
-
function
|
|
184
|
+
C.prototype.clear = ue;
|
|
185
|
+
C.prototype.delete = de;
|
|
186
|
+
C.prototype.get = pe;
|
|
187
|
+
C.prototype.has = ye;
|
|
188
|
+
C.prototype.set = ge;
|
|
189
|
+
var _e = ft(J, "Map");
|
|
190
|
+
function be() {
|
|
191
191
|
this.size = 0, this.__data__ = {
|
|
192
192
|
hash: new _(),
|
|
193
|
-
map: new (
|
|
193
|
+
map: new (_e || C)(),
|
|
194
194
|
string: new _()
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function me(t) {
|
|
198
198
|
var e = typeof t;
|
|
199
199
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
200
200
|
}
|
|
201
201
|
function U(t, e) {
|
|
202
202
|
var r = t.__data__;
|
|
203
|
-
return
|
|
203
|
+
return me(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function we(t) {
|
|
206
206
|
var e = U(this, t).delete(t);
|
|
207
207
|
return this.size -= e ? 1 : 0, e;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Se(t) {
|
|
210
210
|
return U(this, t).get(t);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Te(t) {
|
|
213
213
|
return U(this, t).has(t);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function je(t, e) {
|
|
216
216
|
var r = U(this, t), n = r.size;
|
|
217
217
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
218
218
|
}
|
|
@@ -223,15 +223,15 @@ function b(t) {
|
|
|
223
223
|
this.set(n[0], n[1]);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
b.prototype.clear =
|
|
227
|
-
b.prototype.delete =
|
|
228
|
-
b.prototype.get =
|
|
229
|
-
b.prototype.has =
|
|
230
|
-
b.prototype.set =
|
|
231
|
-
var
|
|
226
|
+
b.prototype.clear = be;
|
|
227
|
+
b.prototype.delete = we;
|
|
228
|
+
b.prototype.get = Se;
|
|
229
|
+
b.prototype.has = Te;
|
|
230
|
+
b.prototype.set = je;
|
|
231
|
+
var Oe = "Expected a function";
|
|
232
232
|
function X(t, e) {
|
|
233
233
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
234
|
-
throw new TypeError(
|
|
234
|
+
throw new TypeError(Oe);
|
|
235
235
|
var r = function() {
|
|
236
236
|
var n = arguments, a = e ? e.apply(this, n) : n[0], i = r.cache;
|
|
237
237
|
if (i.has(a))
|
|
@@ -242,61 +242,60 @@ function X(t, e) {
|
|
|
242
242
|
return r.cache = new (X.Cache || b)(), r;
|
|
243
243
|
}
|
|
244
244
|
X.Cache = b;
|
|
245
|
-
var
|
|
246
|
-
function
|
|
245
|
+
var ve = 500;
|
|
246
|
+
function Ce(t) {
|
|
247
247
|
var e = X(t, function(n) {
|
|
248
|
-
return r.size ===
|
|
248
|
+
return r.size === ve && r.clear(), n;
|
|
249
249
|
}), r = e.cache;
|
|
250
250
|
return e;
|
|
251
251
|
}
|
|
252
|
-
var
|
|
252
|
+
var ze = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $e = /\\(\\)?/g, ke = Ce(function(t) {
|
|
253
253
|
var e = [];
|
|
254
|
-
return t.charCodeAt(0) === 46 && e.push(""), t.replace(
|
|
255
|
-
e.push(a ? i.replace(
|
|
254
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(ze, function(r, n, a, i) {
|
|
255
|
+
e.push(a ? i.replace($e, "$1") : n || r);
|
|
256
256
|
}), e;
|
|
257
257
|
});
|
|
258
|
-
function
|
|
258
|
+
function Pe(t) {
|
|
259
259
|
return t == null ? "" : ht(t);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
return W(t) ? t : Qt(t, e) ? [t] : Pe(
|
|
261
|
+
function Ie(t, e) {
|
|
262
|
+
return W(t) ? t : Qt(t, e) ? [t] : ke(Pe(t));
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
function Ae(t) {
|
|
264
|
+
function xe(t) {
|
|
266
265
|
if (typeof t == "string" || V(t))
|
|
267
266
|
return t;
|
|
268
267
|
var e = t + "";
|
|
269
|
-
return e == "0" && 1 / t == -
|
|
268
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
270
269
|
}
|
|
271
|
-
function
|
|
272
|
-
e =
|
|
270
|
+
function Ee(t, e) {
|
|
271
|
+
e = Ie(e, t);
|
|
273
272
|
for (var r = 0, n = e.length; t != null && r < n; )
|
|
274
|
-
t = t[
|
|
273
|
+
t = t[xe(e[r++])];
|
|
275
274
|
return r && r == n ? t : void 0;
|
|
276
275
|
}
|
|
277
|
-
function
|
|
278
|
-
var n = t == null ? void 0 :
|
|
276
|
+
function Ae(t, e, r) {
|
|
277
|
+
var n = t == null ? void 0 : Ee(t, e);
|
|
279
278
|
return n === void 0 ? r : n;
|
|
280
279
|
}
|
|
281
|
-
const lt = Symbol("detach"),
|
|
282
|
-
function
|
|
280
|
+
const lt = Symbol("detach"), Z = Symbol("chunkable");
|
|
281
|
+
function Ke() {
|
|
283
282
|
return Reflect.metadata(lt, !0);
|
|
284
283
|
}
|
|
285
|
-
function
|
|
286
|
-
return Reflect.metadata(
|
|
284
|
+
function Be(t) {
|
|
285
|
+
return Reflect.metadata(Z, t);
|
|
287
286
|
}
|
|
288
|
-
function
|
|
287
|
+
function De(t, e) {
|
|
289
288
|
return !!Reflect.getMetadata(lt, t, e);
|
|
290
289
|
}
|
|
291
|
-
function
|
|
292
|
-
return !!Reflect.getMetadata(
|
|
290
|
+
function Re(t, e) {
|
|
291
|
+
return !!Reflect.getMetadata(Z, t, e);
|
|
293
292
|
}
|
|
294
|
-
function
|
|
295
|
-
return Reflect.getMetadata(
|
|
293
|
+
function Me(t, e) {
|
|
294
|
+
return Reflect.getMetadata(Z, t, e);
|
|
296
295
|
}
|
|
297
|
-
const
|
|
298
|
-
var s, P, I,
|
|
299
|
-
class
|
|
296
|
+
const Fe = (t) => ct(t) && !!Ae(t, "speckle_type");
|
|
297
|
+
var s, P, I, L, q, dt;
|
|
298
|
+
class Le {
|
|
300
299
|
constructor(e, r = 1e3, n = tt) {
|
|
301
300
|
p(this, s);
|
|
302
301
|
l(this, "chunkSize");
|
|
@@ -327,15 +326,15 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
327
326
|
a[o] = u;
|
|
328
327
|
continue;
|
|
329
328
|
}
|
|
330
|
-
const z = o.startsWith("@") ||
|
|
331
|
-
if (
|
|
329
|
+
const z = o.startsWith("@") || De(e, o), Q = Array.isArray(u), w = Q ? Re(e, o) || o.match(/^@\((\d*)\)/) : !1;
|
|
330
|
+
if (Q && w && u.length !== 0 && typeof u[0] != "object") {
|
|
332
331
|
let S = this.chunkSize;
|
|
333
|
-
typeof w == "boolean" ? S =
|
|
334
|
-
const
|
|
332
|
+
typeof w == "boolean" ? S = Me(e, o) : S = w[1] !== "" ? parseInt(w[1]) : this.chunkSize;
|
|
333
|
+
const F = [];
|
|
335
334
|
let $ = new it(), G = 0;
|
|
336
335
|
for (const pt of u)
|
|
337
|
-
G === S && (
|
|
338
|
-
$.data.length !== 0 &&
|
|
336
|
+
G === S && (F.push(await h(this, s, q).call(this, $)), $ = new it(), G = 0), $.data.push(pt), G++;
|
|
337
|
+
$.data.length !== 0 && F.push(await h(this, s, q).call(this, $)), typeof w == "boolean" ? a[o] = F : a[o.replace(w[0], "")] = F;
|
|
339
338
|
continue;
|
|
340
339
|
}
|
|
341
340
|
if (u.speckle_type) {
|
|
@@ -343,7 +342,7 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
343
342
|
value: u,
|
|
344
343
|
isDetached: z
|
|
345
344
|
});
|
|
346
|
-
a[o] = z ? h(this, s,
|
|
345
|
+
a[o] = z ? h(this, s, L).call(this, S.id) : S;
|
|
347
346
|
continue;
|
|
348
347
|
}
|
|
349
348
|
a[o] = await h(this, s, I).call(this, {
|
|
@@ -358,8 +357,8 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
358
357
|
o[u] = z - this.detachLineage.length;
|
|
359
358
|
}), a.totalChildrenCount = Object.keys(o).length, a.totalChildrenCount && (a.__closure = o);
|
|
360
359
|
}
|
|
361
|
-
const { hash: m, serializedObject:
|
|
362
|
-
return a.id = m, (i || r) && this.transport && await this.transport.write(
|
|
360
|
+
const { hash: m, serializedObject: R, size: M } = h(this, s, dt).call(this, a);
|
|
361
|
+
return a.id = m, (i || r) && this.transport && await this.transport.write(R, M, m), r && this.transport && await this.transport.flush(), { hash: m, traversed: a };
|
|
363
362
|
}, I = async function({
|
|
364
363
|
value: e,
|
|
365
364
|
isDetached: r = !1
|
|
@@ -375,10 +374,10 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
375
374
|
);
|
|
376
375
|
const a = [];
|
|
377
376
|
for (const i of e)
|
|
378
|
-
if (
|
|
377
|
+
if (Fe(i)) {
|
|
379
378
|
this.detachLineage.push(r);
|
|
380
379
|
const { hash: d } = await h(this, s, P).call(this, i, !1);
|
|
381
|
-
a.push(h(this, s,
|
|
380
|
+
a.push(h(this, s, L).call(this, d));
|
|
382
381
|
} else
|
|
383
382
|
a.push(await h(this, s, I).call(this, { value: i, isDetached: r }));
|
|
384
383
|
return a;
|
|
@@ -387,7 +386,7 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
387
386
|
if (e.speckle_type)
|
|
388
387
|
return this.detachLineage.push(r), (await h(this, s, P).call(this, e, !1)).traversed;
|
|
389
388
|
throw new Error(`Unsupported type '${typeof e}': ${e}.`);
|
|
390
|
-
},
|
|
389
|
+
}, L = function(e) {
|
|
391
390
|
return this.lineage.forEach((r) => {
|
|
392
391
|
this.familyTree[r] || (this.familyTree[r] = {}), (!this.familyTree[r][e] || this.familyTree[r][e] > this.detachLineage.length) && (this.familyTree[r][e] = this.detachLineage.length);
|
|
393
392
|
}), {
|
|
@@ -397,7 +396,7 @@ s = new WeakSet(), P = async function(e, r) {
|
|
|
397
396
|
}, q = async function(e) {
|
|
398
397
|
this.detachLineage.push(!0);
|
|
399
398
|
const { hash: r } = await h(this, s, P).call(this, e, !1);
|
|
400
|
-
return h(this, s,
|
|
399
|
+
return h(this, s, L).call(this, r);
|
|
401
400
|
}, dt = function(e) {
|
|
402
401
|
const r = JSON.stringify(e), n = this.hashingFunction(r), a = r.substring(0, 1) + `"id":"${n}",` + r.substring(1);
|
|
403
402
|
return {
|
|
@@ -415,7 +414,7 @@ class it {
|
|
|
415
414
|
}
|
|
416
415
|
}
|
|
417
416
|
var y, E, g, T, j, O, A, D;
|
|
418
|
-
class
|
|
417
|
+
class Ne {
|
|
419
418
|
constructor(e, r, n, a) {
|
|
420
419
|
p(this, y);
|
|
421
420
|
p(this, E);
|
|
@@ -475,14 +474,14 @@ class Ge {
|
|
|
475
474
|
}
|
|
476
475
|
}
|
|
477
476
|
y = new WeakMap(), E = new WeakMap(), g = new WeakMap(), T = new WeakMap(), j = new WeakMap(), O = new WeakMap(), A = new WeakMap(), D = new WeakMap();
|
|
478
|
-
class
|
|
477
|
+
class qe {
|
|
479
478
|
constructor(e) {
|
|
480
479
|
l(this, "speckle_type");
|
|
481
480
|
if (this.speckle_type = this.constructor.name, e)
|
|
482
481
|
for (const r in e) this[r] = e[r];
|
|
483
482
|
}
|
|
484
483
|
}
|
|
485
|
-
const
|
|
484
|
+
const Je = async (t, {
|
|
486
485
|
serverUrl: e = "https://app.speckle.systems",
|
|
487
486
|
projectId: r,
|
|
488
487
|
token: n,
|
|
@@ -491,24 +490,24 @@ const We = async (t, {
|
|
|
491
490
|
}) => {
|
|
492
491
|
const d = performance.now();
|
|
493
492
|
a == null || a.log("Starting to send");
|
|
494
|
-
const m = new
|
|
493
|
+
const m = new Ne(e, r, n, i == null ? void 0 : i.transport), R = new Le(
|
|
495
494
|
m,
|
|
496
495
|
i == null ? void 0 : i.chunkSize,
|
|
497
496
|
i == null ? void 0 : i.hashingFunction
|
|
498
497
|
);
|
|
499
|
-
let
|
|
498
|
+
let M;
|
|
500
499
|
try {
|
|
501
|
-
|
|
500
|
+
M = await R.write(t);
|
|
502
501
|
} finally {
|
|
503
|
-
m.dispose(),
|
|
502
|
+
m.dispose(), R.dispose();
|
|
504
503
|
}
|
|
505
504
|
const o = performance.now();
|
|
506
|
-
return a.log(`Finished sending in ${(o - d) / B.second}s.`),
|
|
505
|
+
return a.log(`Finished sending in ${(o - d) / B.second}s.`), M;
|
|
507
506
|
};
|
|
508
507
|
export {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
508
|
+
qe as Base,
|
|
509
|
+
Be as Chunkable,
|
|
510
|
+
Ke as Detach,
|
|
511
|
+
Je as send
|
|
513
512
|
};
|
|
514
513
|
//# sourceMappingURL=objectsender.js.map
|