@compilot/web-sdk 2.205.0-dev → 2.206.0-dev
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.
|
@@ -22,19 +22,17 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22
22
|
i = 0;
|
|
23
23
|
}
|
|
24
24
|
_regeneratorDefine = function (e, r, n, t) {
|
|
25
|
-
|
|
25
|
+
function o(r, n) {
|
|
26
|
+
_regeneratorDefine(e, r, function (e) {
|
|
27
|
+
return this._invoke(r, n, e);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
r ? i ? i(e, r, {
|
|
26
31
|
value: n,
|
|
27
32
|
enumerable: !t,
|
|
28
33
|
configurable: !t,
|
|
29
34
|
writable: !t
|
|
30
|
-
}) : e[r] = n;
|
|
31
|
-
function o(r, n) {
|
|
32
|
-
_regeneratorDefine(e, r, function (e) {
|
|
33
|
-
return this._invoke(r, n, e);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
37
|
-
}
|
|
35
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
38
36
|
}, _regeneratorDefine(e, r, n, t);
|
|
39
37
|
}
|
|
40
38
|
|
|
@@ -1293,7 +1291,7 @@ var createConfig = function createConfig(params) {
|
|
|
1293
1291
|
},
|
|
1294
1292
|
onMessage: function () {
|
|
1295
1293
|
var _onMessage = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref5) {
|
|
1296
|
-
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5
|
|
1294
|
+
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5;
|
|
1297
1295
|
return _regenerator().w(function (_context3) {
|
|
1298
1296
|
while (1) switch (_context3.n) {
|
|
1299
1297
|
case 0:
|
|
@@ -1337,12 +1335,11 @@ var createConfig = function createConfig(params) {
|
|
|
1337
1335
|
message: _t3,
|
|
1338
1336
|
signature: _t4
|
|
1339
1337
|
};
|
|
1340
|
-
|
|
1338
|
+
_context3.n = 6;
|
|
1339
|
+
return _t2.postMessage.call(_t2, {
|
|
1341
1340
|
type: "walletSignResponse",
|
|
1342
1341
|
data: _t5
|
|
1343
|
-
};
|
|
1344
|
-
_context3.n = 6;
|
|
1345
|
-
return _t2.postMessage.call(_t2, _t6);
|
|
1342
|
+
});
|
|
1346
1343
|
case 6:
|
|
1347
1344
|
return _context3.a(3, 19);
|
|
1348
1345
|
case 7:
|
|
@@ -1501,7 +1498,7 @@ var createWeb3AuthAdapter = function createWeb3AuthAdapter(params) {
|
|
|
1501
1498
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(loginParams) {
|
|
1502
1499
|
var address, blockchainId, challengeRes, signatureRes, VerifyWalletChallengeRequest, res, _t;
|
|
1503
1500
|
return _regenerator().w(function (_context) {
|
|
1504
|
-
while (1) switch (_context.n) {
|
|
1501
|
+
while (1) switch (_context.p = _context.n) {
|
|
1505
1502
|
case 0:
|
|
1506
1503
|
_context.n = 1;
|
|
1507
1504
|
return wallet.getAddress();
|
|
@@ -1628,7 +1625,7 @@ var attachWalletToIdentity = /*#__PURE__*/function () {
|
|
|
1628
1625
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, options) {
|
|
1629
1626
|
var authSession, wallet, identityApiClient$1, address, origin, blockchainId, sessionData, workflowId, challengeRes, signatureRes, walletAddRes, _err$body, _t, _t2, _t3;
|
|
1630
1627
|
return _regenerator().w(function (_context) {
|
|
1631
|
-
while (1) switch (_context.n) {
|
|
1628
|
+
while (1) switch (_context.p = _context.n) {
|
|
1632
1629
|
case 0:
|
|
1633
1630
|
if (isAuthenticated(config)) {
|
|
1634
1631
|
_context.n = 1;
|
|
@@ -1763,7 +1760,7 @@ var authenticate = /*#__PURE__*/function () {
|
|
|
1763
1760
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
1764
1761
|
var authAdapter, widgetStateStore, auth, authSession, _t;
|
|
1765
1762
|
return _regenerator().w(function (_context) {
|
|
1766
|
-
while (1) switch (_context.n) {
|
|
1763
|
+
while (1) switch (_context.p = _context.n) {
|
|
1767
1764
|
case 0:
|
|
1768
1765
|
authAdapter = config._internal.authAdapter;
|
|
1769
1766
|
widgetStateStore = config._internal.widgetStateStore;
|
|
@@ -1989,7 +1986,7 @@ var getCustomerStatus = /*#__PURE__*/function () {
|
|
|
1989
1986
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config) {
|
|
1990
1987
|
var authenticated, _t;
|
|
1991
1988
|
return _regenerator().w(function (_context) {
|
|
1992
|
-
while (1) switch (_context.n) {
|
|
1989
|
+
while (1) switch (_context.p = _context.n) {
|
|
1993
1990
|
case 0:
|
|
1994
1991
|
_context.n = 1;
|
|
1995
1992
|
return load(config);
|
|
@@ -2136,7 +2133,7 @@ var getTxAuthDataSignature = /*#__PURE__*/function () {
|
|
|
2136
2133
|
config, input) {
|
|
2137
2134
|
var authenticated, _t;
|
|
2138
2135
|
return _regenerator().w(function (_context) {
|
|
2139
|
-
while (1) switch (_context.n) {
|
|
2136
|
+
while (1) switch (_context.p = _context.n) {
|
|
2140
2137
|
case 0:
|
|
2141
2138
|
_context.n = 1;
|
|
2142
2139
|
return load(config);
|
|
@@ -2265,7 +2262,7 @@ var openWidget = /*#__PURE__*/function () {
|
|
|
2265
2262
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
2266
2263
|
var authenticated, _t;
|
|
2267
2264
|
return _regenerator().w(function (_context) {
|
|
2268
|
-
while (1) switch (_context.n) {
|
|
2265
|
+
while (1) switch (_context.p = _context.n) {
|
|
2269
2266
|
case 0:
|
|
2270
2267
|
_context.n = 1;
|
|
2271
2268
|
return load(config);
|
|
@@ -22,19 +22,17 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22
22
|
i = 0;
|
|
23
23
|
}
|
|
24
24
|
_regeneratorDefine = function (e, r, n, t) {
|
|
25
|
-
|
|
25
|
+
function o(r, n) {
|
|
26
|
+
_regeneratorDefine(e, r, function (e) {
|
|
27
|
+
return this._invoke(r, n, e);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
r ? i ? i(e, r, {
|
|
26
31
|
value: n,
|
|
27
32
|
enumerable: !t,
|
|
28
33
|
configurable: !t,
|
|
29
34
|
writable: !t
|
|
30
|
-
}) : e[r] = n;
|
|
31
|
-
function o(r, n) {
|
|
32
|
-
_regeneratorDefine(e, r, function (e) {
|
|
33
|
-
return this._invoke(r, n, e);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
37
|
-
}
|
|
35
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
38
36
|
}, _regeneratorDefine(e, r, n, t);
|
|
39
37
|
}
|
|
40
38
|
|
|
@@ -1293,7 +1291,7 @@ var createConfig = function createConfig(params) {
|
|
|
1293
1291
|
},
|
|
1294
1292
|
onMessage: function () {
|
|
1295
1293
|
var _onMessage = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref5) {
|
|
1296
|
-
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5
|
|
1294
|
+
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5;
|
|
1297
1295
|
return _regenerator().w(function (_context3) {
|
|
1298
1296
|
while (1) switch (_context3.n) {
|
|
1299
1297
|
case 0:
|
|
@@ -1337,12 +1335,11 @@ var createConfig = function createConfig(params) {
|
|
|
1337
1335
|
message: _t3,
|
|
1338
1336
|
signature: _t4
|
|
1339
1337
|
};
|
|
1340
|
-
|
|
1338
|
+
_context3.n = 6;
|
|
1339
|
+
return _t2.postMessage.call(_t2, {
|
|
1341
1340
|
type: "walletSignResponse",
|
|
1342
1341
|
data: _t5
|
|
1343
|
-
};
|
|
1344
|
-
_context3.n = 6;
|
|
1345
|
-
return _t2.postMessage.call(_t2, _t6);
|
|
1342
|
+
});
|
|
1346
1343
|
case 6:
|
|
1347
1344
|
return _context3.a(3, 19);
|
|
1348
1345
|
case 7:
|
|
@@ -1501,7 +1498,7 @@ var createWeb3AuthAdapter = function createWeb3AuthAdapter(params) {
|
|
|
1501
1498
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(loginParams) {
|
|
1502
1499
|
var address, blockchainId, challengeRes, signatureRes, VerifyWalletChallengeRequest, res, _t;
|
|
1503
1500
|
return _regenerator().w(function (_context) {
|
|
1504
|
-
while (1) switch (_context.n) {
|
|
1501
|
+
while (1) switch (_context.p = _context.n) {
|
|
1505
1502
|
case 0:
|
|
1506
1503
|
_context.n = 1;
|
|
1507
1504
|
return wallet.getAddress();
|
|
@@ -1628,7 +1625,7 @@ var attachWalletToIdentity = /*#__PURE__*/function () {
|
|
|
1628
1625
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, options) {
|
|
1629
1626
|
var authSession, wallet, identityApiClient$1, address, origin, blockchainId, sessionData, workflowId, challengeRes, signatureRes, walletAddRes, _err$body, _t, _t2, _t3;
|
|
1630
1627
|
return _regenerator().w(function (_context) {
|
|
1631
|
-
while (1) switch (_context.n) {
|
|
1628
|
+
while (1) switch (_context.p = _context.n) {
|
|
1632
1629
|
case 0:
|
|
1633
1630
|
if (isAuthenticated(config)) {
|
|
1634
1631
|
_context.n = 1;
|
|
@@ -1763,7 +1760,7 @@ var authenticate = /*#__PURE__*/function () {
|
|
|
1763
1760
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
1764
1761
|
var authAdapter, widgetStateStore, auth, authSession, _t;
|
|
1765
1762
|
return _regenerator().w(function (_context) {
|
|
1766
|
-
while (1) switch (_context.n) {
|
|
1763
|
+
while (1) switch (_context.p = _context.n) {
|
|
1767
1764
|
case 0:
|
|
1768
1765
|
authAdapter = config._internal.authAdapter;
|
|
1769
1766
|
widgetStateStore = config._internal.widgetStateStore;
|
|
@@ -1989,7 +1986,7 @@ var getCustomerStatus = /*#__PURE__*/function () {
|
|
|
1989
1986
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config) {
|
|
1990
1987
|
var authenticated, _t;
|
|
1991
1988
|
return _regenerator().w(function (_context) {
|
|
1992
|
-
while (1) switch (_context.n) {
|
|
1989
|
+
while (1) switch (_context.p = _context.n) {
|
|
1993
1990
|
case 0:
|
|
1994
1991
|
_context.n = 1;
|
|
1995
1992
|
return load(config);
|
|
@@ -2136,7 +2133,7 @@ var getTxAuthDataSignature = /*#__PURE__*/function () {
|
|
|
2136
2133
|
config, input) {
|
|
2137
2134
|
var authenticated, _t;
|
|
2138
2135
|
return _regenerator().w(function (_context) {
|
|
2139
|
-
while (1) switch (_context.n) {
|
|
2136
|
+
while (1) switch (_context.p = _context.n) {
|
|
2140
2137
|
case 0:
|
|
2141
2138
|
_context.n = 1;
|
|
2142
2139
|
return load(config);
|
|
@@ -2265,7 +2262,7 @@ var openWidget = /*#__PURE__*/function () {
|
|
|
2265
2262
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
2266
2263
|
var authenticated, _t;
|
|
2267
2264
|
return _regenerator().w(function (_context) {
|
|
2268
|
-
while (1) switch (_context.n) {
|
|
2265
|
+
while (1) switch (_context.p = _context.n) {
|
|
2269
2266
|
case 0:
|
|
2270
2267
|
_context.n = 1;
|
|
2271
2268
|
return load(config);
|
|
@@ -15,19 +15,17 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
15
15
|
i = 0;
|
|
16
16
|
}
|
|
17
17
|
_regeneratorDefine = function (e, r, n, t) {
|
|
18
|
-
|
|
18
|
+
function o(r, n) {
|
|
19
|
+
_regeneratorDefine(e, r, function (e) {
|
|
20
|
+
return this._invoke(r, n, e);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
r ? i ? i(e, r, {
|
|
19
24
|
value: n,
|
|
20
25
|
enumerable: !t,
|
|
21
26
|
configurable: !t,
|
|
22
27
|
writable: !t
|
|
23
|
-
}) : e[r] = n;
|
|
24
|
-
function o(r, n) {
|
|
25
|
-
_regeneratorDefine(e, r, function (e) {
|
|
26
|
-
return this._invoke(r, n, e);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
30
|
-
}
|
|
28
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
31
29
|
}, _regeneratorDefine(e, r, n, t);
|
|
32
30
|
}
|
|
33
31
|
|
|
@@ -1286,7 +1284,7 @@ var createConfig = function createConfig(params) {
|
|
|
1286
1284
|
},
|
|
1287
1285
|
onMessage: function () {
|
|
1288
1286
|
var _onMessage = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref5) {
|
|
1289
|
-
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5
|
|
1287
|
+
var message, rawEvent, txHash, _message$data, _t, _t2, _t3, _t4, _t5;
|
|
1290
1288
|
return _regenerator().w(function (_context3) {
|
|
1291
1289
|
while (1) switch (_context3.n) {
|
|
1292
1290
|
case 0:
|
|
@@ -1330,12 +1328,11 @@ var createConfig = function createConfig(params) {
|
|
|
1330
1328
|
message: _t3,
|
|
1331
1329
|
signature: _t4
|
|
1332
1330
|
};
|
|
1333
|
-
|
|
1331
|
+
_context3.n = 6;
|
|
1332
|
+
return _t2.postMessage.call(_t2, {
|
|
1334
1333
|
type: "walletSignResponse",
|
|
1335
1334
|
data: _t5
|
|
1336
|
-
};
|
|
1337
|
-
_context3.n = 6;
|
|
1338
|
-
return _t2.postMessage.call(_t2, _t6);
|
|
1335
|
+
});
|
|
1339
1336
|
case 6:
|
|
1340
1337
|
return _context3.a(3, 19);
|
|
1341
1338
|
case 7:
|
|
@@ -1494,7 +1491,7 @@ var createWeb3AuthAdapter = function createWeb3AuthAdapter(params) {
|
|
|
1494
1491
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(loginParams) {
|
|
1495
1492
|
var address, blockchainId, challengeRes, signatureRes, VerifyWalletChallengeRequest, res, _t;
|
|
1496
1493
|
return _regenerator().w(function (_context) {
|
|
1497
|
-
while (1) switch (_context.n) {
|
|
1494
|
+
while (1) switch (_context.p = _context.n) {
|
|
1498
1495
|
case 0:
|
|
1499
1496
|
_context.n = 1;
|
|
1500
1497
|
return wallet.getAddress();
|
|
@@ -1621,7 +1618,7 @@ var attachWalletToIdentity = /*#__PURE__*/function () {
|
|
|
1621
1618
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, options) {
|
|
1622
1619
|
var authSession, wallet, identityApiClient, address, origin, blockchainId, sessionData, workflowId, challengeRes, signatureRes, walletAddRes, _err$body, _t, _t2, _t3;
|
|
1623
1620
|
return _regenerator().w(function (_context) {
|
|
1624
|
-
while (1) switch (_context.n) {
|
|
1621
|
+
while (1) switch (_context.p = _context.n) {
|
|
1625
1622
|
case 0:
|
|
1626
1623
|
if (isAuthenticated(config)) {
|
|
1627
1624
|
_context.n = 1;
|
|
@@ -1756,7 +1753,7 @@ var authenticate = /*#__PURE__*/function () {
|
|
|
1756
1753
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
1757
1754
|
var authAdapter, widgetStateStore, auth, authSession, _t;
|
|
1758
1755
|
return _regenerator().w(function (_context) {
|
|
1759
|
-
while (1) switch (_context.n) {
|
|
1756
|
+
while (1) switch (_context.p = _context.n) {
|
|
1760
1757
|
case 0:
|
|
1761
1758
|
authAdapter = config._internal.authAdapter;
|
|
1762
1759
|
widgetStateStore = config._internal.widgetStateStore;
|
|
@@ -1982,7 +1979,7 @@ var getCustomerStatus = /*#__PURE__*/function () {
|
|
|
1982
1979
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config) {
|
|
1983
1980
|
var authenticated, _t;
|
|
1984
1981
|
return _regenerator().w(function (_context) {
|
|
1985
|
-
while (1) switch (_context.n) {
|
|
1982
|
+
while (1) switch (_context.p = _context.n) {
|
|
1986
1983
|
case 0:
|
|
1987
1984
|
_context.n = 1;
|
|
1988
1985
|
return load(config);
|
|
@@ -2129,7 +2126,7 @@ var getTxAuthDataSignature = /*#__PURE__*/function () {
|
|
|
2129
2126
|
config, input) {
|
|
2130
2127
|
var authenticated, _t;
|
|
2131
2128
|
return _regenerator().w(function (_context) {
|
|
2132
|
-
while (1) switch (_context.n) {
|
|
2129
|
+
while (1) switch (_context.p = _context.n) {
|
|
2133
2130
|
case 0:
|
|
2134
2131
|
_context.n = 1;
|
|
2135
2132
|
return load(config);
|
|
@@ -2258,7 +2255,7 @@ var openWidget = /*#__PURE__*/function () {
|
|
|
2258
2255
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, loginParams) {
|
|
2259
2256
|
var authenticated, _t;
|
|
2260
2257
|
return _regenerator().w(function (_context) {
|
|
2261
|
-
while (1) switch (_context.n) {
|
|
2258
|
+
while (1) switch (_context.p = _context.n) {
|
|
2262
2259
|
case 0:
|
|
2263
2260
|
_context.n = 1;
|
|
2264
2261
|
return load(config);
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilot/web-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.206.0",
|
|
4
4
|
"description": "Unblockt Web SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@nexeraid/logger": "workspace:*",
|
|
51
51
|
"eventemitter3": "^5.0.1",
|
|
52
52
|
"jwt-decode": "^3.1.2",
|
|
53
|
-
"pino": "^9.
|
|
53
|
+
"pino": "^9.9.4",
|
|
54
54
|
"remeda": "^1.61.0",
|
|
55
|
-
"zod": "^3.25.
|
|
55
|
+
"zod": "^3.25.76"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@unblokttechnology/eslint-config": "workspace:*",
|
|
59
59
|
"eslint": "^8.57.1",
|
|
60
|
-
"prettier": "^3.
|
|
61
|
-
"typescript": "^5.
|
|
60
|
+
"prettier": "^3.6.2",
|
|
61
|
+
"typescript": "^5.9.2"
|
|
62
62
|
},
|
|
63
63
|
"preconstruct": {
|
|
64
64
|
"entrypoints": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilot/web-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.206.0-dev",
|
|
4
4
|
"description": "Unblockt Web SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"eventemitter3": "^5.0.1",
|
|
36
36
|
"jwt-decode": "^3.1.2",
|
|
37
|
-
"pino": "^9.
|
|
37
|
+
"pino": "^9.9.4",
|
|
38
38
|
"remeda": "^1.61.0",
|
|
39
|
-
"zod": "^3.25.
|
|
39
|
+
"zod": "^3.25.76",
|
|
40
40
|
"@nexeraid/identity-api-client": "2.35.3-dev",
|
|
41
|
-
"@nexeraid/
|
|
42
|
-
"@nexeraid/
|
|
41
|
+
"@nexeraid/logger": "2.35.3-dev",
|
|
42
|
+
"@nexeraid/identity-schemas": "2.204.0-dev"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"eslint": "^8.57.1",
|
|
46
|
-
"prettier": "^3.
|
|
47
|
-
"typescript": "^5.
|
|
46
|
+
"prettier": "^3.6.2",
|
|
47
|
+
"typescript": "^5.9.2",
|
|
48
48
|
"@unblokttechnology/eslint-config": "0.1.1"
|
|
49
49
|
},
|
|
50
50
|
"preconstruct": {
|