@unicitylabs/sphere-sdk 0.14.11-dev.8 → 0.15.0-dev.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/README.md +55 -17
- package/dist/connect/index.cjs +10 -17
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +10 -17
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +98 -99
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +5 -14
- package/dist/core/index.d.ts +5 -14
- package/dist/core/index.js +98 -99
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +3 -3
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +3 -3
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +2 -2
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.js +2 -2
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/impl/wallet-api-v2/index.cjs +95 -1
- package/dist/impl/wallet-api-v2/index.cjs.map +1 -1
- package/dist/impl/wallet-api-v2/index.js +95 -1
- package/dist/impl/wallet-api-v2/index.js.map +1 -1
- package/dist/index.cjs +98 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -11
- package/dist/index.d.ts +6 -11
- package/dist/index.js +98 -99
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +149 -193
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +8 -5
- package/dist/modules/payments-v2/index.d.ts +8 -5
- package/dist/modules/payments-v2/index.js +146 -192
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/dist/token-engine/index.cjs +43 -57
- package/dist/token-engine/index.cjs.map +1 -1
- package/dist/token-engine/index.d.cts +0 -4
- package/dist/token-engine/index.d.ts +0 -4
- package/dist/token-engine/index.js +43 -57
- package/dist/token-engine/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -309,7 +309,7 @@ function createRequestId() {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
// connect/version.ts
|
|
312
|
-
var SDK_VERSION = "0.
|
|
312
|
+
var SDK_VERSION = "0.15.0-dev.1";
|
|
313
313
|
|
|
314
314
|
// connect/permissions.ts
|
|
315
315
|
var PERMISSION_SCOPES = {
|
|
@@ -370,7 +370,7 @@ function toLegacyRequest(view, status) {
|
|
|
370
370
|
return { ...view, symbol: view.symbol ?? "", status };
|
|
371
371
|
}
|
|
372
372
|
function legacyRequestPayload(sphere, update) {
|
|
373
|
-
const view = sphere.
|
|
373
|
+
const view = sphere.payments.requests.list().find((request) => request.id === update.id);
|
|
374
374
|
if (!view) {
|
|
375
375
|
return {
|
|
376
376
|
id: update.id,
|
|
@@ -449,7 +449,7 @@ var COMPAT_ATTACHERS = /* @__PURE__ */ new Map([
|
|
|
449
449
|
forward({ providerId: "wallet-api", error: "wallet-api connection degraded" });
|
|
450
450
|
})],
|
|
451
451
|
["sync:completed", (sphere, forward) => sphere.on("inventory:updated", () => {
|
|
452
|
-
forward({ source: "payments", count: sphere.
|
|
452
|
+
forward({ source: "payments", count: sphere.payments.tokens().length });
|
|
453
453
|
})],
|
|
454
454
|
["sync:remote-update", remoteUpdateAttacher]
|
|
455
455
|
]);
|