@docknetwork/wallet-sdk-relay-service 1.7.0 → 1.7.6
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/lib/_rollupPluginBabelHelpers-1e38fde4.js +256 -0
- package/lib/_rollupPluginBabelHelpers-85237803.js +250 -0
- package/lib/didcomm.js +162 -195
- package/lib/didcomm.mjs +162 -195
- package/lib/index.js +211 -242
- package/lib/index.mjs +211 -242
- package/lib/payloads.js +34 -40
- package/lib/payloads.mjs +34 -40
- package/package.json +3 -3
- package/rollup.config.mjs +4 -2
- package/src/index.js +0 -2
- package/tests/didcomm.test.js +2 -2
- package/lib/_rollupPluginBabelHelpers-8b1a4a26.js +0 -417
- package/lib/_rollupPluginBabelHelpers-ea876378.js +0 -411
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _arrayLikeToArray(r, a) {
|
|
4
|
-
(null == a || a > r.length) && (a = r.length);
|
|
5
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6
|
-
return n;
|
|
7
|
-
}
|
|
8
|
-
function _arrayWithoutHoles(r) {
|
|
9
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
10
|
-
}
|
|
11
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
12
|
-
try {
|
|
13
|
-
var i = n[a](c),
|
|
14
|
-
u = i.value;
|
|
15
|
-
} catch (n) {
|
|
16
|
-
return void e(n);
|
|
17
|
-
}
|
|
18
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
19
|
-
}
|
|
20
|
-
function _asyncToGenerator(n) {
|
|
21
|
-
return function () {
|
|
22
|
-
var t = this,
|
|
23
|
-
e = arguments;
|
|
24
|
-
return new Promise(function (r, o) {
|
|
25
|
-
var a = n.apply(t, e);
|
|
26
|
-
function _next(n) {
|
|
27
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
28
|
-
}
|
|
29
|
-
function _throw(n) {
|
|
30
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
31
|
-
}
|
|
32
|
-
_next(void 0);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function _createForOfIteratorHelper(r, e) {
|
|
37
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
38
|
-
if (!t) {
|
|
39
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
40
|
-
t && (r = t);
|
|
41
|
-
var n = 0,
|
|
42
|
-
F = function () {};
|
|
43
|
-
return {
|
|
44
|
-
s: F,
|
|
45
|
-
n: function () {
|
|
46
|
-
return n >= r.length ? {
|
|
47
|
-
done: !0
|
|
48
|
-
} : {
|
|
49
|
-
done: !1,
|
|
50
|
-
value: r[n++]
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
e: function (r) {
|
|
54
|
-
throw r;
|
|
55
|
-
},
|
|
56
|
-
f: F
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60
|
-
}
|
|
61
|
-
var o,
|
|
62
|
-
a = !0,
|
|
63
|
-
u = !1;
|
|
64
|
-
return {
|
|
65
|
-
s: function () {
|
|
66
|
-
t = t.call(r);
|
|
67
|
-
},
|
|
68
|
-
n: function () {
|
|
69
|
-
var r = t.next();
|
|
70
|
-
return a = r.done, r;
|
|
71
|
-
},
|
|
72
|
-
e: function (r) {
|
|
73
|
-
u = !0, o = r;
|
|
74
|
-
},
|
|
75
|
-
f: function () {
|
|
76
|
-
try {
|
|
77
|
-
a || null == t.return || t.return();
|
|
78
|
-
} finally {
|
|
79
|
-
if (u) throw o;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function _defineProperty(e, r, t) {
|
|
85
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
86
|
-
value: t,
|
|
87
|
-
enumerable: !0,
|
|
88
|
-
configurable: !0,
|
|
89
|
-
writable: !0
|
|
90
|
-
}) : e[r] = t, e;
|
|
91
|
-
}
|
|
92
|
-
function _iterableToArray(r) {
|
|
93
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
94
|
-
}
|
|
95
|
-
function _nonIterableSpread() {
|
|
96
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
97
|
-
}
|
|
98
|
-
function ownKeys(e, r) {
|
|
99
|
-
var t = Object.keys(e);
|
|
100
|
-
if (Object.getOwnPropertySymbols) {
|
|
101
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
102
|
-
r && (o = o.filter(function (r) {
|
|
103
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
104
|
-
})), t.push.apply(t, o);
|
|
105
|
-
}
|
|
106
|
-
return t;
|
|
107
|
-
}
|
|
108
|
-
function _objectSpread2(e) {
|
|
109
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
110
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
111
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
112
|
-
_defineProperty(e, r, t[r]);
|
|
113
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
114
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return e;
|
|
118
|
-
}
|
|
119
|
-
function _regeneratorRuntime() {
|
|
120
|
-
_regeneratorRuntime = function () {
|
|
121
|
-
return r;
|
|
122
|
-
};
|
|
123
|
-
var t,
|
|
124
|
-
r = {},
|
|
125
|
-
e = Object.prototype,
|
|
126
|
-
n = e.hasOwnProperty,
|
|
127
|
-
o = "function" == typeof Symbol ? Symbol : {},
|
|
128
|
-
i = o.iterator || "@@iterator",
|
|
129
|
-
a = o.asyncIterator || "@@asyncIterator",
|
|
130
|
-
u = o.toStringTag || "@@toStringTag";
|
|
131
|
-
function c(t, r, e, n) {
|
|
132
|
-
return Object.defineProperty(t, r, {
|
|
133
|
-
value: e,
|
|
134
|
-
enumerable: !n,
|
|
135
|
-
configurable: !n,
|
|
136
|
-
writable: !n
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
try {
|
|
140
|
-
c({}, "");
|
|
141
|
-
} catch (t) {
|
|
142
|
-
c = function (t, r, e) {
|
|
143
|
-
return t[r] = e;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function h(r, e, n, o) {
|
|
147
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
148
|
-
a = Object.create(i.prototype);
|
|
149
|
-
return c(a, "_invoke", function (r, e, n) {
|
|
150
|
-
var o = 1;
|
|
151
|
-
return function (i, a) {
|
|
152
|
-
if (3 === o) throw Error("Generator is already running");
|
|
153
|
-
if (4 === o) {
|
|
154
|
-
if ("throw" === i) throw a;
|
|
155
|
-
return {
|
|
156
|
-
value: t,
|
|
157
|
-
done: !0
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
for (n.method = i, n.arg = a;;) {
|
|
161
|
-
var u = n.delegate;
|
|
162
|
-
if (u) {
|
|
163
|
-
var c = d(u, n);
|
|
164
|
-
if (c) {
|
|
165
|
-
if (c === f) continue;
|
|
166
|
-
return c;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
170
|
-
if (1 === o) throw o = 4, n.arg;
|
|
171
|
-
n.dispatchException(n.arg);
|
|
172
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
173
|
-
o = 3;
|
|
174
|
-
var h = s(r, e, n);
|
|
175
|
-
if ("normal" === h.type) {
|
|
176
|
-
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
177
|
-
return {
|
|
178
|
-
value: h.arg,
|
|
179
|
-
done: n.done
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
}(r, n, new Context(o || [])), !0), a;
|
|
186
|
-
}
|
|
187
|
-
function s(t, r, e) {
|
|
188
|
-
try {
|
|
189
|
-
return {
|
|
190
|
-
type: "normal",
|
|
191
|
-
arg: t.call(r, e)
|
|
192
|
-
};
|
|
193
|
-
} catch (t) {
|
|
194
|
-
return {
|
|
195
|
-
type: "throw",
|
|
196
|
-
arg: t
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
r.wrap = h;
|
|
201
|
-
var f = {};
|
|
202
|
-
function Generator() {}
|
|
203
|
-
function GeneratorFunction() {}
|
|
204
|
-
function GeneratorFunctionPrototype() {}
|
|
205
|
-
var l = {};
|
|
206
|
-
c(l, i, function () {
|
|
207
|
-
return this;
|
|
208
|
-
});
|
|
209
|
-
var p = Object.getPrototypeOf,
|
|
210
|
-
y = p && p(p(x([])));
|
|
211
|
-
y && y !== e && n.call(y, i) && (l = y);
|
|
212
|
-
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
213
|
-
function g(t) {
|
|
214
|
-
["next", "throw", "return"].forEach(function (r) {
|
|
215
|
-
c(t, r, function (t) {
|
|
216
|
-
return this._invoke(r, t);
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function AsyncIterator(t, r) {
|
|
221
|
-
function e(o, i, a, u) {
|
|
222
|
-
var c = s(t[o], t, i);
|
|
223
|
-
if ("throw" !== c.type) {
|
|
224
|
-
var h = c.arg,
|
|
225
|
-
f = h.value;
|
|
226
|
-
return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
227
|
-
e("next", t, a, u);
|
|
228
|
-
}, function (t) {
|
|
229
|
-
e("throw", t, a, u);
|
|
230
|
-
}) : r.resolve(f).then(function (t) {
|
|
231
|
-
h.value = t, a(h);
|
|
232
|
-
}, function (t) {
|
|
233
|
-
return e("throw", t, a, u);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
u(c.arg);
|
|
237
|
-
}
|
|
238
|
-
var o;
|
|
239
|
-
c(this, "_invoke", function (t, n) {
|
|
240
|
-
function i() {
|
|
241
|
-
return new r(function (r, o) {
|
|
242
|
-
e(t, n, r, o);
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
return o = o ? o.then(i, i) : i();
|
|
246
|
-
}, !0);
|
|
247
|
-
}
|
|
248
|
-
function d(r, e) {
|
|
249
|
-
var n = e.method,
|
|
250
|
-
o = r.i[n];
|
|
251
|
-
if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
252
|
-
var i = s(o, r.i, e.arg);
|
|
253
|
-
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
254
|
-
var a = i.arg;
|
|
255
|
-
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
256
|
-
}
|
|
257
|
-
function w(t) {
|
|
258
|
-
this.tryEntries.push(t);
|
|
259
|
-
}
|
|
260
|
-
function m(r) {
|
|
261
|
-
var e = r[4] || {};
|
|
262
|
-
e.type = "normal", e.arg = t, r[4] = e;
|
|
263
|
-
}
|
|
264
|
-
function Context(t) {
|
|
265
|
-
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
266
|
-
}
|
|
267
|
-
function x(r) {
|
|
268
|
-
if (null != r) {
|
|
269
|
-
var e = r[i];
|
|
270
|
-
if (e) return e.call(r);
|
|
271
|
-
if ("function" == typeof r.next) return r;
|
|
272
|
-
if (!isNaN(r.length)) {
|
|
273
|
-
var o = -1,
|
|
274
|
-
a = function e() {
|
|
275
|
-
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
276
|
-
return e.value = t, e.done = !0, e;
|
|
277
|
-
};
|
|
278
|
-
return a.next = a;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
throw new TypeError(typeof r + " is not iterable");
|
|
282
|
-
}
|
|
283
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
284
|
-
var r = "function" == typeof t && t.constructor;
|
|
285
|
-
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
286
|
-
}, r.mark = function (t) {
|
|
287
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
288
|
-
}, r.awrap = function (t) {
|
|
289
|
-
return {
|
|
290
|
-
__await: t
|
|
291
|
-
};
|
|
292
|
-
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
293
|
-
return this;
|
|
294
|
-
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
295
|
-
void 0 === i && (i = Promise);
|
|
296
|
-
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
297
|
-
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
298
|
-
return t.done ? t.value : a.next();
|
|
299
|
-
});
|
|
300
|
-
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
301
|
-
return this;
|
|
302
|
-
}), c(v, "toString", function () {
|
|
303
|
-
return "[object Generator]";
|
|
304
|
-
}), r.keys = function (t) {
|
|
305
|
-
var r = Object(t),
|
|
306
|
-
e = [];
|
|
307
|
-
for (var n in r) e.unshift(n);
|
|
308
|
-
return function t() {
|
|
309
|
-
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
310
|
-
return t.done = !0, t;
|
|
311
|
-
};
|
|
312
|
-
}, r.values = x, Context.prototype = {
|
|
313
|
-
constructor: Context,
|
|
314
|
-
reset: function (r) {
|
|
315
|
-
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
316
|
-
},
|
|
317
|
-
stop: function () {
|
|
318
|
-
this.done = !0;
|
|
319
|
-
var t = this.tryEntries[0][4];
|
|
320
|
-
if ("throw" === t.type) throw t.arg;
|
|
321
|
-
return this.rval;
|
|
322
|
-
},
|
|
323
|
-
dispatchException: function (r) {
|
|
324
|
-
if (this.done) throw r;
|
|
325
|
-
var e = this;
|
|
326
|
-
function n(t) {
|
|
327
|
-
a.type = "throw", a.arg = r, e.next = t;
|
|
328
|
-
}
|
|
329
|
-
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
330
|
-
var i = this.tryEntries[o],
|
|
331
|
-
a = i[4],
|
|
332
|
-
u = this.prev,
|
|
333
|
-
c = i[1],
|
|
334
|
-
h = i[2];
|
|
335
|
-
if (-1 === i[0]) return n("end"), !1;
|
|
336
|
-
if (!c && !h) throw Error("try statement without catch or finally");
|
|
337
|
-
if (null != i[0] && i[0] <= u) {
|
|
338
|
-
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
339
|
-
if (u < h) return n(h), !1;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
abrupt: function (t, r) {
|
|
344
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
345
|
-
var n = this.tryEntries[e];
|
|
346
|
-
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
347
|
-
var o = n;
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
352
|
-
var i = o ? o[4] : {};
|
|
353
|
-
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
354
|
-
},
|
|
355
|
-
complete: function (t, r) {
|
|
356
|
-
if ("throw" === t.type) throw t.arg;
|
|
357
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
358
|
-
},
|
|
359
|
-
finish: function (t) {
|
|
360
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
361
|
-
var e = this.tryEntries[r];
|
|
362
|
-
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
catch: function (t) {
|
|
366
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
367
|
-
var e = this.tryEntries[r];
|
|
368
|
-
if (e[0] === t) {
|
|
369
|
-
var n = e[4];
|
|
370
|
-
if ("throw" === n.type) {
|
|
371
|
-
var o = n.arg;
|
|
372
|
-
m(e);
|
|
373
|
-
}
|
|
374
|
-
return o;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
throw Error("illegal catch attempt");
|
|
378
|
-
},
|
|
379
|
-
delegateYield: function (r, e, n) {
|
|
380
|
-
return this.delegate = {
|
|
381
|
-
i: x(r),
|
|
382
|
-
r: e,
|
|
383
|
-
n: n
|
|
384
|
-
}, "next" === this.method && (this.arg = t), f;
|
|
385
|
-
}
|
|
386
|
-
}, r;
|
|
387
|
-
}
|
|
388
|
-
function _toConsumableArray(r) {
|
|
389
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
390
|
-
}
|
|
391
|
-
function _toPrimitive(t, r) {
|
|
392
|
-
if ("object" != typeof t || !t) return t;
|
|
393
|
-
var e = t[Symbol.toPrimitive];
|
|
394
|
-
if (void 0 !== e) {
|
|
395
|
-
var i = e.call(t, r || "default");
|
|
396
|
-
if ("object" != typeof i) return i;
|
|
397
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
398
|
-
}
|
|
399
|
-
return ("string" === r ? String : Number)(t);
|
|
400
|
-
}
|
|
401
|
-
function _toPropertyKey(t) {
|
|
402
|
-
var i = _toPrimitive(t, "string");
|
|
403
|
-
return "symbol" == typeof i ? i : i + "";
|
|
404
|
-
}
|
|
405
|
-
function _unsupportedIterableToArray(r, a) {
|
|
406
|
-
if (r) {
|
|
407
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
408
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
409
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
exports._asyncToGenerator = _asyncToGenerator;
|
|
414
|
-
exports._createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
415
|
-
exports._objectSpread2 = _objectSpread2;
|
|
416
|
-
exports._regeneratorRuntime = _regeneratorRuntime;
|
|
417
|
-
exports._toConsumableArray = _toConsumableArray;
|