sealnet 1.4.0 → 1.5.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 +9 -9
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/index.cjs +679 -144
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +679 -144
- package/dist/seal.global.js +2 -2
- package/dist/seal.global.js.sha384 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ and the SDK arrives as one global.
|
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
22
|
<script
|
|
23
|
-
src="https://seal.net/sdk/v1.
|
|
24
|
-
integrity="sha384-
|
|
23
|
+
src="https://seal.net/sdk/v1.5.1/seal.js"
|
|
24
|
+
integrity="sha384-umXk1O37adiOwisfe53csecMymrXfiJq3nIe9XJvv71LVldK36c79yffRotoVxcB"
|
|
25
25
|
crossorigin="anonymous"
|
|
26
26
|
></script>
|
|
27
27
|
<script>
|
|
@@ -54,7 +54,7 @@ const seal = new SealClient()
|
|
|
54
54
|
const result = await seal.send({
|
|
55
55
|
file: fileInput.files[0], // File | Blob | ArrayBuffer | Uint8Array
|
|
56
56
|
filename: 'contract.pdf', // what the RECIPIENT sees; overrides the File own name
|
|
57
|
-
ttl: '7d', //
|
|
57
|
+
ttl: '7d', // one of the lifetimes seal.net offers
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
result.shareUrl // give to the recipient
|
|
@@ -95,17 +95,17 @@ await seal.send({
|
|
|
95
95
|
|
|
96
96
|
### Files over 1 GB
|
|
97
97
|
|
|
98
|
-
Up to 1 GB is free. Above it the person pays once by card for a tier
|
|
99
|
-
|
|
100
|
-
payment
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
Up to 1 GB is free. Above it the person pays once by card for a tier (prices
|
|
99
|
+
and terms: seal.net/pricing). Show them the payment page; `send` waits for the
|
|
100
|
+
payment and finishes the upload into the same seal. Not paid in time (the
|
|
101
|
+
seal's expiry, at most 23 hours): the seal is revoked and `send` throws
|
|
102
|
+
`PAYMENT_REQUIRED`.
|
|
103
103
|
|
|
104
104
|
```typescript
|
|
105
105
|
await seal.send({
|
|
106
106
|
file,
|
|
107
107
|
filename: 'dump.sql',
|
|
108
|
-
ttl: '1d', //
|
|
108
|
+
ttl: '1d', // a lifetime the server allows a paid seal
|
|
109
109
|
tier: '5gb',
|
|
110
110
|
onPaymentRequired: (checkoutUrl) => window.open(checkoutUrl),
|
|
111
111
|
})
|
package/THIRD-PARTY-NOTICES.txt
CHANGED