@swype-org/deposit 0.3.19 → 0.3.20
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 +21 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -174,6 +174,27 @@ import type {
|
|
|
174
174
|
import type { DepositErrorCode } from '@swype-org/deposit';
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
+
## Security & content integrity
|
|
178
|
+
|
|
179
|
+
The deposit UI loads live from `https://pay.blink.cash` every render — the
|
|
180
|
+
standard model for embedded payment UIs (it lets us ship security/fraud fixes
|
|
181
|
+
instantly). We do not version-pin the iframe; instead:
|
|
182
|
+
|
|
183
|
+
- **Verifiable build manifest** — every deploy publishes
|
|
184
|
+
[`https://pay.blink.cash/manifest.json`](https://pay.blink.cash/manifest.json)
|
|
185
|
+
with the build version, source commit, and a SHA-256 of every served file, so
|
|
186
|
+
you can confirm exactly what we serve.
|
|
187
|
+
- **Lock the iframe origin** — add a CSP to your page so the iframe can only ever
|
|
188
|
+
load from Swype:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
Content-Security-Policy: frame-src https://pay.blink.cash; script-src 'self';
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
See [docs/iframe-security.md](../docs/iframe-security.md) for the full security
|
|
195
|
+
model (CSP, postMessage hardening, Privy origin allow-listing, passkey
|
|
196
|
+
delegation, and SRI rationale).
|
|
197
|
+
|
|
177
198
|
## Backward Compatibility
|
|
178
199
|
|
|
179
200
|
The previous `Checkout`-named symbols are re-exported as deprecated aliases:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swype-org/deposit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "Lightweight merchant deposit SDK — open a hosted payment flow, handle completion, zero dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"license": "MIT",
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
|
58
|
-
"url": "https://github.com/swype-org/
|
|
58
|
+
"url": "https://github.com/swype-org/mono-repo.git",
|
|
59
59
|
"directory": "deposit-sdk"
|
|
60
60
|
},
|
|
61
61
|
"keywords": [
|