@peable.to/sdk 0.2.7-oxy-one.1 → 0.2.7
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContributionsResource = void 0;
|
|
4
|
+
// Browser entry (`@peable.to/sdk/contributions`) — organization contribution
|
|
5
|
+
// management over a caller-supplied transport (the wallet's Oxy linked client).
|
|
6
|
+
// Deliberately separate from the server entry, which carries the merchant-authed
|
|
7
|
+
// service-token and billing-verification code (`node:crypto`) a browser or
|
|
8
|
+
// React Native bundle must never pull in.
|
|
9
|
+
var contributions_1 = require("./resources/contributions");
|
|
10
|
+
Object.defineProperty(exports, "ContributionsResource", { enumerable: true, get: function () { return contributions_1.ContributionsResource; } });
|
|
@@ -115,6 +115,7 @@ class BillingResource {
|
|
|
115
115
|
// delayed webhook must remain recoverable after the original quote expires.
|
|
116
116
|
if (authority.method === 'faircoin') {
|
|
117
117
|
const paid = await this.retrievePaidInvoice(subscriptionRef, invoiceRef);
|
|
118
|
+
// biome-ignore lint/style/noNonNullAssertion: FairCoin quote presence and bounds were verified above before signature verification.
|
|
118
119
|
const quote = authority.invoice.faircoinQuote;
|
|
119
120
|
const paidAt = Date.parse(paid.paidAt);
|
|
120
121
|
if (paid.invoiceId !== invoiceRef ||
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Browser entry (`@peable.to/sdk/contributions`) — organization contribution
|
|
2
|
+
// management over a caller-supplied transport (the wallet's Oxy linked client).
|
|
3
|
+
// Deliberately separate from the server entry, which carries the merchant-authed
|
|
4
|
+
// service-token and billing-verification code (`node:crypto`) a browser or
|
|
5
|
+
// React Native bundle must never pull in.
|
|
6
|
+
export { ContributionsResource } from './resources/contributions.js';
|
|
@@ -112,6 +112,7 @@ export class BillingResource {
|
|
|
112
112
|
// delayed webhook must remain recoverable after the original quote expires.
|
|
113
113
|
if (authority.method === 'faircoin') {
|
|
114
114
|
const paid = await this.retrievePaidInvoice(subscriptionRef, invoiceRef);
|
|
115
|
+
// biome-ignore lint/style/noNonNullAssertion: FairCoin quote presence and bounds were verified above before signature verification.
|
|
115
116
|
const quote = authority.invoice.faircoinQuote;
|
|
116
117
|
const paidAt = Date.parse(paid.paidAt);
|
|
117
118
|
if (paid.invoiceId !== invoiceRef ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/sdk",
|
|
3
|
-
"version": "0.2.7
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Peable SDK — a Stripe-ergonomics TypeScript client over the Peable Gateway REST + realtime contract. Server entry (`@peable.to/sdk`) mints Oxy service tokens from an ApplicationCredential and exposes paymentIntents/paymentLinks/checkout.sessions/webhooks; browser entry (`@peable.to/sdk/checkout`) is the anonymous payer-side client core.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"registry": "https://registry.npmjs.org/"
|
|
13
|
-
"tag": "oxy-one"
|
|
12
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
13
|
},
|
|
15
14
|
"exports": {
|
|
16
15
|
".": {
|
|
@@ -44,6 +43,18 @@
|
|
|
44
43
|
"types": "./dist/types/display.d.ts",
|
|
45
44
|
"default": "./dist/esm/display.js"
|
|
46
45
|
}
|
|
46
|
+
},
|
|
47
|
+
"./contributions": {
|
|
48
|
+
"react-native": "./dist/esm/contributions.js",
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/types/contributions.d.ts",
|
|
51
|
+
"default": "./dist/esm/contributions.js"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/types/contributions.d.ts",
|
|
55
|
+
"default": "./dist/cjs/contributions.js"
|
|
56
|
+
},
|
|
57
|
+
"default": "./dist/esm/contributions.js"
|
|
47
58
|
}
|
|
48
59
|
},
|
|
49
60
|
"files": [
|
|
@@ -79,7 +90,7 @@
|
|
|
79
90
|
"prepublishOnly": "bun run clean && bun run build"
|
|
80
91
|
},
|
|
81
92
|
"dependencies": {
|
|
82
|
-
"@peable.to/shared-types": "0.3.4
|
|
93
|
+
"@peable.to/shared-types": "0.3.4",
|
|
83
94
|
"qrcode-generator": "^2.0.4",
|
|
84
95
|
"socket.io-client": "^4.8.3",
|
|
85
96
|
"@peable.to/contracts": "0.1.0",
|